From 0d62f010d991a32153c23e7dad5283723b60c7f8 Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Thu, 26 Aug 2004 20:35:03 -0700 Subject: [PATCH] [PATCH] cast PAGE_OFFSET math to void* in early printk __pa() should take a void*. This adds the proper cast. Signed-off-by: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/x86_64/kernel/early_printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86_64/kernel/early_printk.c b/arch/x86_64/kernel/early_printk.c index 785f792839d52..215a9b9471828 100644 --- a/arch/x86_64/kernel/early_printk.c +++ b/arch/x86_64/kernel/early_printk.c @@ -8,7 +8,7 @@ /* Simple VGA output */ #ifdef __i386__ -#define VGABASE __pa(__PAGE_OFFSET + 0xb8000UL) +#define VGABASE __pa((void *)(__PAGE_OFFSET + 0xb8000UL)) #else #define VGABASE 0xffffffff800b8000UL #endif -- 2.53.0