summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-08-07 17:22:14 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-08-07 17:22:14 +0200
commitdfc8e9165cfe0b50438f51df5a82ab1dcc08baf4 (patch)
treeef07a138f7f487e583fa5a034c7a5e7dfd9b28d7
parent6d7e653300e30fd433a845c8c9f48557e799a8de (diff)
downloadlinux-dfc8e9165cfe0b50438f51df5a82ab1dcc08baf4.tar.bz2
fbcon: mark dummy functions 'inline'
The newly introduced fb_console_init/exit declarations have a dummy alternative that is marked 'static' in the header but not inline, leading to a warning whenever the header gets included: In file included from drivers/video/fbdev/core/fbmem.c:35:0: include/linux/fbcon.h:9:13: error: 'fb_console_exit' defined but not used [-Werror=unused-function] This adds the intended 'inline'. Fixes: 6104c37094e7 ("fbcon: Make fbcon a built-time depency for fbdev") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Sean Paul <seanpaul@chromium.org> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r--include/linux/fbcon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fbcon.h b/include/linux/fbcon.h
index 0fac6305d51c..f68a7db14165 100644
--- a/include/linux/fbcon.h
+++ b/include/linux/fbcon.h
@@ -5,8 +5,8 @@
void __init fb_console_init(void);
void __exit fb_console_exit(void);
#else
-static void fb_console_init(void) {}
-static void fb_console_exit(void) {}
+static inline void fb_console_init(void) {}
+static inline void fb_console_exit(void) {}
#endif
#endif /* _LINUX_FBCON_H */