| From ddbf456ce97e78602ee0ae2057d1bf7f1b2092a1 Mon Sep 17 00:00:00 2001 | |
| From: Sasha Levin <sashal@kernel.org> | |
| Date: Thu, 13 Aug 2026 16:29:34 -0700 | |
| Subject: fbdev: maxine: fix 64-bit build error | |
| From: Randy Dunlap <rdunlap@infradead.org> | |
| [ Upstream commit 3adec5c640dc09dca5605043e138412fd5a0629d ] | |
| The KSEG1ADDR() macro is only defined for non-64BIT builds. | |
| Use the CKSEG1ADDR() macro instead. | |
| In file included from ../drivers/video/fbdev/maxinefb.c:34: | |
| ../drivers/video/fbdev/maxinefb.c: In function 'maxinefb_ims332_write_register': | |
| ../include/video/maxinefb.h:16:41: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Wimplicit-function-declaration] | |
| 16 | #define MAXINEFB_IMS332_ADDRESS KSEG1ADDR(0x1c140000) | |
| ../drivers/video/fbdev/maxinefb.c:66:49: note: in expansion of macro 'MAXINEFB_IMS332_ADDRESS' | |
| 66 | register unsigned char *regs = (char *) MAXINEFB_IMS332_ADDRESS; | |
| ../drivers/video/fbdev/maxinefb.c:66:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] | |
| 66 | register unsigned char *regs = (char *) MAXINEFB_IMS332_ADDRESS; | |
| Signed-off-by: Randy Dunlap <rdunlap@infradead.org> | |
| Acked-by: Maciej W. Rozycki <macro@orcam.me.uk> | |
| Signed-off-by: Helge Deller <deller@gmx.de> | |
| Signed-off-by: Sasha Levin <sashal@kernel.org> | |
| --- | |
| include/video/maxinefb.h | 4 ++-- | |
| 1 file changed, 2 insertions(+), 2 deletions(-) | |
| diff --git a/include/video/maxinefb.h b/include/video/maxinefb.h | |
| index 6aeb4acca2bdb..2b66b32f355cf 100644 | |
| --- a/include/video/maxinefb.h | |
| +++ b/include/video/maxinefb.h | |
| @@ -13,13 +13,13 @@ | |
| /* | |
| * IMS332 video controller register base address | |
| */ | |
| -#define MAXINEFB_IMS332_ADDRESS KSEG1ADDR(0x1c140000) | |
| +#define MAXINEFB_IMS332_ADDRESS CKSEG1ADDR(0x1c140000) | |
| /* | |
| * Begin of DECstation 5000/xx onboard framebuffer memory, default resolution | |
| * is 1024x768x8 | |
| */ | |
| -#define DS5000_xx_ONBOARD_FBMEM_START KSEG1ADDR(0x0a000000) | |
| +#define DS5000_xx_ONBOARD_FBMEM_START CKSEG1ADDR(0x0a000000) | |
| /* | |
| * The IMS 332 video controller used in the DECstation 5000/xx series | |
| -- | |
| 2.53.0 | |