From 22bf290e881fdde508cae50dfcd549b46723eaa5 Mon Sep 17 00:00:00 2001 From: Rashika Kheria Date: Sat, 21 Dec 2013 15:44:13 +0530 Subject: [PATCH] drivers: sm7xxfb: Mark function as static in sm7xxfb.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Josh Triplett Acked-by: Javier M. Mellid Signed-off-by: Greg Kroah-Hartman --- drivers/staging/sm7xxfb/sm7xxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 805c3fa36d8f..6176d98744cc 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -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: -- 2.39.5