# 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/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 736706bee3298208343a76096370e4f6a5c55915 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc512x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc512x_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc512x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /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/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2594:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1855:6: warning: 'ret' 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/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/mtd/nand/raw/mpc5121_nfc.c: In function 'ads5121_select_chip': /kisskb/src/drivers/mtd/nand/raw/mpc5121_nfc.c:306:19: warning: unused variable 'mtd' [-Wunused-variable] INFO: Uncompressed kernel (size 0x6011dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.0.0-g736706bee329 Created: Tue Mar 5 07:02:04 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3070166 Bytes = 2998.21 KiB = 2.93 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/linus_mpc512x_defconfig_powerpc-gcc4.6 # Build took: 0:00:36.441411