]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fbdev: matrox: hide unused 'hotplug' variable
authorArnd Bergmann <arnd@arndb.de>
Mon, 7 Aug 2017 15:22:14 +0000 (17:22 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 7 Aug 2017 15:22:14 +0000 (17:22 +0200)
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 <arnd@arndb.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/matrox/matroxfb_base.c

index fd1589fcdf15cf09696c656a298de33c9d3570fa..00ea4e4ab95a8a0376713c6798c7e72c2db7d7a5 100644 (file)
@@ -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)
 {