drivers: sm7xxfb: Mark function as static in sm7xxfb.c
authorRashika Kheria <rashika.kheria@gmail.com>
Sat, 21 Dec 2013 10:14:13 +0000 (15:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 23:45:24 +0000 (15:45 -0800)
Mark function smtcfb_setmode() as static in sm7xxfb.c because it is not
used outside this file.

This eliminates the following warning in sm7xxfb.c:
drivers/staging/sm7xxfb/sm7xxfb.c:588:6: warning: no previous prototype for ‘smtcfb_setmode’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Javier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c

index 805c3fa36d8fdd13b179c0329ffbc7ee131e47ae..6176d98744cc669a1d11305f5bc34631f1a55525 100644 (file)
@@ -585,7 +585,7 @@ static void smtc_set_timing(struct smtcfb_info *sfb)
        }
 }
 
-void smtcfb_setmode(struct smtcfb_info *sfb)
+static void smtcfb_setmode(struct smtcfb_info *sfb)
 {
        switch (sfb->fb.var.bits_per_pixel) {
        case 32: