https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63837
Bug ID: 63837 Summary: [5 Regression] r217391 causes kernel build errors with GCC_COMPARE_DEBUG=1 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: manu at gcc dot gnu.org For example: trippels@gcc2-power8 linux-3.17.2 % GCC_COMPARE_DEBUG=1 make CC="/home/trippels/gcc_bisect/usr/local/bin/gcc -Werror -std=gnu89" CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/bin2c CC kernel/bounds.s GEN include/generated/bounds.h CC arch/powerpc/kernel/asm-offsets.s In file included from include/linux/kobject.h:21:0, from include/linux/device.h:17, from include/linux/node.h:17, from include/linux/swap.h:10, from include/linux/suspend.h:4, from arch/powerpc/kernel/asm-offsets.c:24: include/linux/sysfs.h: In function ‘sysfs_get_dirent’: include/linux/sysfs.h:457:37: error: pointer targets in passing argument 2 of ‘kernfs_find_and_get’ differ in signedness [-Werror=pointer-sign] return kernfs_find_and_get(parent, name); ^ In file included from include/linux/cgroup.h:23:0, from include/linux/memcontrol.h:22, from include/linux/swap.h:8, from include/linux/suspend.h:4, from arch/powerpc/kernel/asm-offsets.c:24: include/linux/kernfs.h:411:1: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’ kernfs_find_and_get(struct kernfs_node *kn, const char *name) ^ cc1: all warnings being treated as errors make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 Without GCC_COMPARE_DEBUG=1 the kernel builds fine. Started with r217391.