# 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/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 736706bee3298208343a76096370e4f6a5c55915 # < make -s -j 120 ARCH=x86_64 O=/kisskb/build/linus_x86_64-allnoconfig_x86_64-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- allnoconfig # make -s -j 120 ARCH=x86_64 O=/kisskb/build/linus_x86_64-allnoconfig_x86_64-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-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/arch/x86/kernel/apic/io_apic.c: In function 'mp_map_pin_to_irq': /kisskb/src/arch/x86/kernel/apic/io_apic.c:1034:6: warning: 'irq' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/x86/kernel/e820.c: In function 'e820__setup_pci_gap': /kisskb/src/arch/x86/kernel/e820.c:650:16: warning: 'gapstart' may be used uninitialized in this function [-Wuninitialized] Completed OK # rm -rf /kisskb/build/linus_x86_64-allnoconfig_x86_64-gcc4.6 # Build took: 0:00:09.718901