lib/test_printf.c:215: warning: "PTR" redefined
215 | #define PTR ((void *)0xffff0123456789abUL)
|
In file included from /git/arm-soc/arch/loongarch/include/asm/vdso/vdso.h:9,
from
/git/arm-soc/arch/loongarch/include/asm/vdso/gettimeofday.h:13,
from /git/arm-soc/include/vdso/datapage.h:137,
from /git/arm-soc/arch/loongarch/include/asm/vdso.h:11,
from /git/arm-soc/arch/loongarch/include/asm/elf.h:13,
from /git/arm-soc/include/linux/elf.h:6,
from /git/arm-soc/include/linux/module.h:19,
from /git/arm-soc/lib/test_printf.c:10:
/git/arm-soc/arch/loongarch/include/asm/asm.h:182: note: this is the
location of the previous definition
182 | #define PTR .dword
|
Not sure what the best fix is for this, maybe the contents of asm/asm.h could
just be hidden in an "#idef __ASSEMBLER__" check. This can be a follow-up
patch when the branch is merged.