Skip to content

Commit fb07430

Browse files
committed
Merge tag 'fbdev-for-7.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev
Pull fbdev fix from Helge Deller: "Silence build error in au1100fb driver found by kernel test robot" * tag 'fbdev-for-7.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: fbdev: au1100fb: Fix build on MIPS64
2 parents 6deccaf + e31a374 commit fb07430

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/video/fbdev/au1100fb.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,12 @@ static struct au1100fb_panel known_lcd_panels[] =
380380
#define panel_is_color(panel) (panel->control_base & LCD_CONTROL_PC)
381381
#define panel_swap_rgb(panel) (panel->control_base & LCD_CONTROL_CCO)
382382

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+
*/
385389
#define KSEG1ADDR(x) (x)
386390
#endif
387391

0 commit comments

Comments
 (0)