# git rev-parse -q --verify cafa0010cd51fb711fdcb50fc55f394c5f167a0a^{commit} cafa0010cd51fb711fdcb50fc55f394c5f167a0a already have revision, skipping fetch # git checkout -q -f -B kisskb cafa0010cd51fb711fdcb50fc55f394c5f167a0a # git clean -qxdf # < git log -1 # commit cafa0010cd51fb711fdcb50fc55f394c5f167a0a # Author: Joe Perches # Date: Mon Aug 20 13:15:26 2018 -0700 # # Raise the minimum required gcc version to 4.6 # # Various architectures fail to build properly with older versions of the # gcc compiler. # # An example from Guenter Roeck in thread [1]: # > # > In file included from ./include/linux/mm.h:17:0, # > from ./include/linux/pid_namespace.h:7, # > from ./include/linux/ptrace.h:10, # > from arch/openrisc/kernel/asm-offsets.c:32: # > ./include/linux/mm_types.h:497:16: error: flexible array member in otherwise empty struct # > # > This is just an example with gcc 4.5.1 for or32. I have seen the problem # > with gcc 4.4 (for unicore32) as well. # # So update the minimum required version of gcc to 4.6. # # [1] https://lore.kernel.org/lkml/20180814170904.GA12768@roeck-us.net/ # # Miscellanea: # # - Update Documentation/process/changes.rst # # - Remove and consolidate version test blocks in compiler-gcc.h for # versions lower than 4.6 # # Signed-off-by: Joe Perches # Reviewed-by: Kees Cook # Reviewed-by: Nick Desaulniers # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux-gcc --version # < git log --format=%s --max-count=1 cafa0010cd51fb711fdcb50fc55f394c5f167a0a # < make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_allmodconfig+ppc64le_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- allmodconfig # Added to kconfig CONFIG_CPU_LITTLE_ENDIAN=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # yes \n | make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_allmodconfig+ppc64le_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_allmodconfig+ppc64le_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- In file included from /kisskb/src/include/linux/io.h:25:0, from /kisskb/src/include/linux/of_address.h:7, from /kisskb/src/drivers/ata/ahci_qoriq.c:18: /kisskb/src/drivers/ata/ahci_qoriq.c: In function 'ahci_qoriq_hardreset': /kisskb/src/arch/powerpc/include/asm/io.h:160:2: warning: 'px_is' may be used uninitialized in this function [-Wmaybe-uninitialized] __asm__ __volatile__("sync;"#insn"%U0%X0 %1,%0" \ ^ /kisskb/src/drivers/ata/ahci_qoriq.c:86:14: note: 'px_is' was declared here u32 px_cmd, px_is, px_val; ^ In file included from /kisskb/src/include/linux/io.h:25:0, from /kisskb/src/include/linux/of_address.h:7, from /kisskb/src/drivers/ata/ahci_qoriq.c:18: /kisskb/src/arch/powerpc/include/asm/io.h:160:2: warning: 'px_cmd' may be used uninitialized in this function [-Wmaybe-uninitialized] __asm__ __volatile__("sync;"#insn"%U0%X0 %1,%0" \ ^ /kisskb/src/drivers/ata/ahci_qoriq.c:86:6: note: 'px_cmd' was declared here u32 px_cmd, px_is, px_val; ^ /kisskb/src/drivers/bluetooth/hci_h5.c:920:22: warning: 'rtl_vnd' defined but not used [-Wunused-variable] static struct h5_vnd rtl_vnd = { ^ WARNING: vmlinux.o(.text+0x36b4): Section mismatch in reference from the variable __boot_from_prom to the function .init.text:prom_init() The function __boot_from_prom() references the function __init prom_init(). This is often because __boot_from_prom lacks a __init annotation or the annotation of prom_init is wrong. WARNING: vmlinux.o(.text+0x3944): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:early_setup() The function start_here_multiplatform() references the function __init early_setup(). This is often because start_here_multiplatform lacks a __init annotation or the annotation of early_setup is wrong. WARNING: vmlinux.o(.text+0x3978): Section mismatch in reference from the variable start_here_common to the function .init.text:start_kernel() The function start_here_common() references the function __init start_kernel(). This is often because start_here_common lacks a __init annotation or the annotation of start_kernel is wrong. Completed OK # rm -rf /kisskb/build/linus_allmodconfig+ppc64le_ppc64le # Build took: 0:26:23.925491