# git rev-parse -q --verify 736706bee3298208343a76096370e4f6a5c55915^{commit} 736706bee3298208343a76096370e4f6a5c55915 already have revision, skipping fetch # git checkout -q -f -B kisskb 736706bee3298208343a76096370e4f6a5c55915 # git clean -qxdf # < git log -1 # commit 736706bee3298208343a76096370e4f6a5c55915 # Author: Linus Torvalds # Date: Mon Mar 4 10:39:05 2019 -0800 # # get rid of legacy 'get_ds()' function # # Every in-kernel use of this function defined it to KERNEL_DS (either as # an actual define, or as an inline function). It's an entirely # historical artifact, and long long long ago used to actually read the # segment selector valueof '%ds' on x86. # # Which in the kernel is always KERNEL_DS. # # Inspired by a patch from Jann Horn that just did this for a very small # subset of users (the ones in fs/), along with Al who suggested a script. # I then just took it to the logical extreme and removed all the remaining # gunk. # # Roughly scripted with # # git grep -l '(get_ds())' -- :^tools/ | xargs sed -i 's/(get_ds())/(KERNEL_DS)/' # git grep -lw 'get_ds' -- :^tools/ | xargs sed -i '/^#define get_ds()/d' # # plus manual fixups to remove a few unusual usage patterns, the couple of # inline function cases and to fix up a comment that had become stale. # # The 'get_ds()' function remains in an x86 kvm selftest, since in user # space it actually does something relevant. # # Inspired-by: Jann Horn # Inspired-by: Al Viro # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 736706bee3298208343a76096370e4f6a5c55915 # < make -s -j 120 ARCH=sh O=/kisskb/build/linus_rsk7203_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- rsk7203_defconfig # make -s -j 120 ARCH=sh O=/kisskb/build/linus_rsk7203_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1318:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] :1321:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] :1324:2: warning: #warning syscall pkey_free not implemented [-Wcpp] :1327:2: warning: #warning syscall statx not implemented [-Wcpp] :1333:2: warning: #warning syscall io_pgetevents not implemented [-Wcpp] :1336:2: warning: #warning syscall rseq not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh2a/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh2a/../../entry-common.S:385: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2a/../../entry-common.S:388: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /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/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /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 *' /kisskb/src/net/ipv4/ip_output.c: In function '__ip_append_data': /kisskb/src/include/linux/skbuff.h:1338:6: warning: 'extra_uref' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/ipv4/ip_output.c:885:14: note: 'extra_uref' was declared here Image Name: Linux-5.0.0+ Created: Tue Mar 5 07:59:17 2019 Image Type: SuperH Linux Kernel Image (gzip compressed) Data Size: 2689294 Bytes = 2626.26 KiB = 2.56 MiB Load Address: 0c001000 Entry Point: 0c002000 Image arch/sh/boot/uImage is ready Completed OK # rm -rf /kisskb/build/linus_rsk7203_defconfig_sh4 # Build took: 0:00:27.756514