mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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: 6104c37094 ("fbcon: Make fbcon a built-time depency for fbdev")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Cc: Sean Paul <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
13 lines
281 B
C
13 lines
281 B
C
#ifndef _LINUX_FBCON_H
|
|
#define _LINUX_FBCON_H
|
|
|
|
#ifdef CONFIG_FRAMEBUFFER_CONSOLE
|
|
void __init fb_console_init(void);
|
|
void __exit fb_console_exit(void);
|
|
#else
|
|
static inline void fb_console_init(void) {}
|
|
static inline void fb_console_exit(void) {}
|
|
#endif
|
|
|
|
#endif /* _LINUX_FBCON_H */
|