Skip to content

Commit 29bf464

Browse files
arndbhansendc
authored andcommitted
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
1 parent 8a3e82d commit 29bf464

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/video/fbdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/pci.h>
1111
#include <linux/module.h>
1212
#include <linux/vgaarb.h>
13+
#include <asm/fb.h>
1314

1415
int fb_is_primary_device(struct fb_info *info)
1516
{

0 commit comments

Comments
 (0)