# 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/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 736706bee3298208343a76096370e4f6a5c55915 # < make -s -j 120 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allmodconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_HAVE_FTRACE_MCOUNT_RECORD=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_MODULE_SIG=n # yes \n | make -s -j 120 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allmodconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 120 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allmodconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- :1336:2: warning: #warning syscall rseq not implemented [-Wcpp] /kisskb/src/drivers/input/joystick/analog.c:172:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. ^ In file included from /kisskb/src/include/linux/rwsem.h:16:0, from /kisskb/src/include/linux/notifier.h:15, from /kisskb/src/include/linux/clk.h:17, from /kisskb/src/drivers/tty/serial/sh-sci.c:24: /kisskb/src/drivers/tty/serial/sh-sci.c: In function 'sci_submit_rx': /kisskb/src/include/linux/spinlock.h:279:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] _raw_spin_unlock_irqrestore(lock, flags); \ ^ /kisskb/src/drivers/tty/serial/sh-sci.c:1338:16: note: 'flags' was declared here unsigned long flags; ^ /kisskb/src/drivers/scsi/myrs.c: In function 'myrs_log_event': /kisskb/src/drivers/scsi/myrs.c:821:24: warning: 'sshdr.sense_key' may be used uninitialized in this function [-Wmaybe-uninitialized] struct scsi_sense_hdr sshdr; ^ kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_sparc64-allmodconfig_sparc64 # Build took: 0:06:13.926419