# 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-4.6.3-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < git log --format=%s --max-count=1 cafa0010cd51fb711fdcb50fc55f394c5f167a0a # < make -s -j 10 ARCH=sh O=/kisskb/build/linus_se7721_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- se7721_defconfig # make -s -j 10 ARCH=sh O=/kisskb/build/linus_se7721_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1317:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] :1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] :1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp] :1326:2: warning: #warning syscall statx not implemented [-Wcpp] :1332:2: warning: #warning syscall io_pgetevents not implemented [-Wcpp] :1335:2: warning: #warning syscall rseq not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh3/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh3/../../entry-common.S:389: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh3/../../entry-common.S:392: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here /kisskb/src/drivers/sh/clk/cpg.c: In function 'r8': /kisskb/src/drivers/sh/clk/cpg.c:41:2: warning: passing argument 1 of 'ioread8' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:29:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r16': /kisskb/src/drivers/sh/clk/cpg.c:46:2: warning: passing argument 1 of 'ioread16' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:30:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r32': /kisskb/src/drivers/sh/clk/cpg.c:51:2: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:32:21: note: expected 'void *' but argument is of type 'const void *' Kernel: arch/sh/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_se7721_defconfig_sh4 # Build took: 0:00:54.534155