diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-05-16 21:35:43 +0200 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2023-05-18 20:56:18 +0200 |
commit | 29bf464cb8ee1b119d23aec88cbf17f9941610ad (patch) | |
tree | 4fc6cc6278952010d2c5fe0827c3e12bb53d3e5b /arch/x86/video | |
parent | x86/hibernate: Declare global functions in suspend.h (diff) | |
download | linux-29bf464cb8ee1b119d23aec88cbf17f9941610ad.tar.xz linux-29bf464cb8ee1b119d23aec88cbf17f9941610ad.zip |
x86/fbdev: Include asm/fb.h as needed
fb_is_primary_device() is defined as a global function on x86, unlike
the others that have an inline version. The file that defines is
however needs to include the declaration to avoid a warning:
arch/x86/video/fbdev.c:14:5: error: no previous prototype for 'fb_is_primary_device' [-Werror=missing-prototypes]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/all/20230516193549.544673-15-arnd%40kernel.org
Diffstat (limited to 'arch/x86/video')
-rw-r--r-- | arch/x86/video/fbdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/video/fbdev.c b/arch/x86/video/fbdev.c index 9fd24846d094..9e9143085d19 100644 --- a/arch/x86/video/fbdev.c +++ b/arch/x86/video/fbdev.c @@ -10,6 +10,7 @@ #include <linux/pci.h> #include <linux/module.h> #include <linux/vgaarb.h> +#include <asm/fb.h> int fb_is_primary_device(struct fb_info *info) { |