linux-bl808/arch/riscv/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
..
asm-offsets.h
asm-prototypes.h
asm.h
atomic.h
barrier.h
bitops.h
bug.h
cache.h
cacheflush.h
cmpxchg.h
csr.h
current.h
delay.h
elf.h
fence.h
ftrace.h
futex.h
hwcap.h
io.h
irq.h
irqflags.h
Kbuild riscv: remove redundant kernel-space generic-y 2019-01-06 09:46:51 +09:00
kprobes.h
linkage.h
mmu.h
mmu_context.h
module.h RISC-V: Support MODULE_SECTIONS mechanism on RV32 2019-01-07 08:19:20 -08:00
page.h RISC-V: asm/page.h: fix spelling mistake "CONFIG_64BITS" -> "CONFIG_64BIT" 2019-01-23 12:56:20 -08:00
pci.h
perf_event.h
pgalloc.h mm: treewide: remove unused address argument from pte_alloc functions 2019-01-04 13:13:47 -08:00
pgtable-32.h
pgtable-64.h
pgtable-bits.h riscv: Add pte bit to distinguish swap from invalid 2019-02-11 15:24:45 -08:00
pgtable.h riscv: Add pte bit to distinguish swap from invalid 2019-02-11 15:24:45 -08:00
processor.h riscv: Adjust mmap base address at a third of task size 2019-01-25 10:50:53 -08:00
ptrace.h riscv: add audit support 2019-01-07 08:22:39 -08:00
sbi.h
smp.h
spinlock.h
spinlock_types.h
string.h
switch_to.h
syscall.h riscv: add audit support 2019-01-07 08:22:39 -08:00
thread_info.h riscv: add audit support 2019-01-07 08:22:39 -08:00
timex.h
tlb.h
tlbflush.h
uaccess.h get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
unistd.h riscv: define NR_syscalls in unistd.h 2019-01-07 08:22:41 -08:00
vdso.h
word-at-a-time.h