Skip to content

Commit 90cc7be

Browse files
committed
parisc: Use absolute_pointer() to define PAGE0
Use absolute_pointer() wrapper for PAGE0 to avoid this compiler warning: arch/parisc/kernel/setup.c: In function 'start_parisc': error: '__builtin_memcmp_eq' specified bound 8 exceeds source size 0 Signed-off-by: Helge Deller <deller@gmx.de> Co-Developed-by: Guenter Roeck <linux@roeck-us.net> Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ff1ffd7 commit 90cc7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/include/asm/page.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ extern int npmem_ranges;
184184
#include <asm-generic/getorder.h>
185185
#include <asm/pdc.h>
186186

187-
#define PAGE0 ((struct zeropage *)__PAGE_OFFSET)
187+
#define PAGE0 ((struct zeropage *)absolute_pointer(__PAGE_OFFSET))
188188

189189
/* DEFINITION OF THE ZERO-PAGE (PAG0) */
190190
/* based on work by Jason Eckhardt (jason@equator.com) */

0 commit comments

Comments
 (0)