From: Arnd Bergmann Date: Mon, 7 Aug 2017 15:22:14 +0000 (+0200) Subject: fbdev: matrox: hide unused 'hotplug' variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ad3f3f6eb1fbec716a61dbe46565dcd9ca94387;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fbdev: matrox: hide unused 'hotplug' variable The variable has become unused in modular configurations which triggers a harmless warning: drivers/video/fbdev/matrox/matroxfb_base.c:1583:12: error: 'hotplug' defined but not used [-Werror=unused-variable] This moves it into an #ifdef section of the file, matching all its references. Fixes: 376b3ff54c9a ("fbdev: Nuke FBINFO_MODULE") Signed-off-by: Arnd Bergmann Reviewed-by: Daniel Vetter Cc: Dan Carpenter Cc: Sean Paul Cc: Arvind Yadav Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c index fd1589fcdf15..00ea4e4ab95a 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.c +++ b/drivers/video/fbdev/matrox/matroxfb_base.c @@ -1578,9 +1578,9 @@ static struct fb_videomode defaultmode = { NULL, 60, 640, 480, 39721, 40, 24, 32, 11, 96, 2, 0, FB_VMODE_NONINTERLACED }; -#endif /* !MODULE */ static int hotplug = 0; +#endif /* !MODULE */ static void setDefaultOutputs(struct matrox_fb_info *minfo) {