# 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_ppc40x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc40x_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_ppc40x_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/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /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] INFO: Uncompressed kernel (size 0x54157c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54157c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x530f08) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54157c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54157c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.0.0-g736706bee329 Created: Tue Mar 5 06:31:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2642245 Bytes = 2580.32 KiB = 2.52 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.0.0-g736706bee329 Created: Tue Mar 5 06:31:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2676532 Bytes = 2613.80 KiB = 2.55 MiB Load Address: 00600000 Entry Point: 00601758 Image Name: Linux-5.0.0-g736706bee329 Created: Tue Mar 5 06:31:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2677134 Bytes = 2614.39 KiB = 2.55 MiB Load Address: 00600000 Entry Point: 006019cc Completed OK # rm -rf /kisskb/build/linus_ppc40x_defconfig_powerpc-gcc4.6 # Build took: 0:00:37.650227