Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: au1100fb: Fix build on MIPS64

Fix an error reported by the kernel test robot:
au1100fb.c: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'?

arch/mips/include/asm/addrspace.h defines KSEG1ADDR only for 32 bit
configurations. So provide its compile-test stub also for 64bit mips builds.

Fixes: 6f366e86481a ("fbdev: au1100fb: Make driver compilable on non-mips platforms")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603042127.PT6LuKqi-lkp@intel.com/
Signed-off-by: Helge Deller <deller@gmx.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

+6 -2
+6 -2
drivers/video/fbdev/au1100fb.c
··· 380 380 #define panel_is_color(panel) (panel->control_base & LCD_CONTROL_PC) 381 381 #define panel_swap_rgb(panel) (panel->control_base & LCD_CONTROL_CCO) 382 382 383 - #if defined(CONFIG_COMPILE_TEST) && !defined(CONFIG_MIPS) 384 - /* This is only defined to be able to compile this driver on non-mips platforms */ 383 + #if defined(CONFIG_COMPILE_TEST) && (!defined(CONFIG_MIPS) || defined(CONFIG_64BIT)) 384 + /* 385 + * KSEG1ADDR() is defined in arch/mips/include/asm/addrspace.h 386 + * for 32 bit configurations. Provide a stub for compile testing 387 + * on other platforms. 388 + */ 385 389 #define KSEG1ADDR(x) (x) 386 390 #endif 387 391