x86/fbdev: Include asm/fb.h as needed
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 19:35:43 +0000 (21:35 +0200)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 18 May 2023 18:56:18 +0000 (11:56 -0700)
commit29bf464cb8ee1b119d23aec88cbf17f9941610ad
tree4fc6cc6278952010d2c5fe0827c3e12bb53d3e5b
parent8a3e82d38674066f4cbed3588b78b0d9b8b15ed7
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
arch/x86/video/fbdev.c