alistair23-linux/arch/openrisc/include/asm
Linus Torvalds 736706bee3 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 <jannh@google.com>
Inspired-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-04 10:50:14 -08:00
..
bitops fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
asm-offsets.h
atomic.h atomics/treewide: Rename __atomic_add_unless() => atomic_fetch_add_unless() 2018-06-21 14:22:32 +02:00
bitops.h
cache.h
cacheflush.h openrisc: add cacheflush support to fix icache aliasing 2017-11-03 14:01:15 +09:00
cmpxchg.h locking/atomics/openrisc: Don't pull in all of <linux/bitops.h> in <asm/cmpxchg.h> 2018-06-21 12:52:11 +02:00
cpuinfo.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
delay.h
elf.h
fixmap.h
futex.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
io.h openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it. 2018-02-22 10:44:30 +08:00
irq.h openrisc: Use the new GENERIC_IRQ_MULTI_HANDLER 2018-08-03 12:14:09 +02:00
irqflags.h
Kbuild arch: unexport asm/shmparam.h for all architectures 2019-02-01 15:46:22 -08:00
linkage.h
mmu.h
mmu_context.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
page.h
pgalloc.h mm: treewide: remove unused address argument from pte_alloc functions 2019-01-04 13:13:47 -08:00
pgtable.h openrisc: add cacheflush support to fix icache aliasing 2017-11-03 14:01:15 +09:00
processor.h treewide: remove current_text_addr 2018-10-31 08:54:12 -07:00
ptrace.h
serial.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
smp.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
spinlock.h openrisc: use qspinlocks and qrwlocks 2017-11-03 14:01:12 +09:00
spinlock_types.h openrisc: use qspinlocks and qrwlocks 2017-11-03 14:01:12 +09:00
spr.h
spr_defs.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
string.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscall.h
syscalls.h
thread_info.h Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
time.h openrisc: add tick timer multi-core sync logic 2017-11-03 14:01:16 +09:00
timex.h
tlb.h
tlbflush.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
uaccess.h get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
unaligned.h
unwinder.h openrisc: support framepointers and STACKTRACE_SUPPORT 2017-11-03 14:01:15 +09:00