From: Guenter Roeck Date: Wed, 15 Sep 2021 03:52:27 +0000 (-0700) Subject: alpha: Use absolute_pointer to define COMMAND_LINE X-Git-Tag: accepted/tizen/unified/20230118.172025~6361^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebdc20d7bc74e8b6a242ff1f30e9017ffca9092c;p=platform%2Fkernel%2Flinux-rpi.git alpha: Use absolute_pointer to define COMMAND_LINE alpha:allmodconfig fails to build with the following error when using gcc 11.x. arch/alpha/kernel/setup.c: In function 'setup_arch': arch/alpha/kernel/setup.c:493:13: error: 'strcmp' reading 1 or more bytes from a region of size 0 Avoid the problem by declaring COMMAND_LINE as absolute_pointer(). Signed-off-by: Guenter Roeck Signed-off-by: Linus Torvalds --- diff --git a/arch/alpha/include/asm/setup.h b/arch/alpha/include/asm/setup.h index 58fe3f4..262aab9 100644 --- a/arch/alpha/include/asm/setup.h +++ b/arch/alpha/include/asm/setup.h @@ -36,7 +36,7 @@ * place. */ #define PARAM ZERO_PGE -#define COMMAND_LINE ((char *)(PARAM + 0x0000)) +#define COMMAND_LINE ((char *)(absolute_pointer(PARAM + 0x0000))) #define INITRD_START (*(unsigned long *) (PARAM+0x100)) #define INITRD_SIZE (*(unsigned long *) (PARAM+0x108))