Reputation: 1
While building kernel i get error:
In file included from ../arch/arm64/kernel/sys.c:27:
../include/linux/syscalls.h:195:18: warning: ‘sys_arm64_personality’ alias between functions of incompatible types ‘long int(unsigned int)’ and ‘long int(long int)’ [-Wattribute-alias=]
error, forbidden warning: syscalls.h:195
make[2]: *** [../scripts/Makefile.build:339: arch/arm64/kernel/sys.o] Error 1
make[1]: *** [/home/z/kernel_dev/kernel_olive_lolz-stock/Makefile:1100: arch/arm64/kernel] Error 2
make[1]: *** Waiting for unfinished jobs....
Full log in pastebin.
Kernel source, what i try to build.
And it's not official source, because the are broken.
Upvotes: 0
Views: 960
Reputation: 1
You can silence "attribute-alias" warning by adding following line in kernel/Makefile to fix it:
KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)
Upvotes: 0