Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <linux@roeck-us.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Guenter Roeck and committed by
Linus Torvalds
ebdc20d7 3cb8b153

+1 -1
+1 -1
arch/alpha/include/asm/setup.h
··· 36 36 * place. 37 37 */ 38 38 #define PARAM ZERO_PGE 39 - #define COMMAND_LINE ((char *)(PARAM + 0x0000)) 39 + #define COMMAND_LINE ((char *)(absolute_pointer(PARAM + 0x0000))) 40 40 #define INITRD_START (*(unsigned long *) (PARAM+0x100)) 41 41 #define INITRD_SIZE (*(unsigned long *) (PARAM+0x108)) 42 42