linux_dsm_epyc7002/arch/nds32/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
..
assembler.h
barrier.h nds32: Atomic operations 2018-02-22 10:44:32 +08:00
bitfield.h nds32: support hardware prefetcher 2018-11-22 18:13:51 +08:00
cache_info.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cache.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cacheflush.h nds32: To implement these icache invalidation APIs since nds32 cores don't snoop 2018-07-03 11:11:56 +08:00
current.h nds32: Process management 2018-02-22 10:44:32 +08:00
delay.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
elf.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
fixmap.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
fpu.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
fpuemu.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
ftrace.h nds32/ftrace: Support dynamic function tracer 2018-09-04 14:45:18 +08:00
futex.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
highmem.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
io.h nds32: Fix the unknown type u8 issue. 2018-05-23 13:26:21 +08:00
irqflags.h nds32: IRQ handling 2018-02-22 10:44:32 +08:00
Kbuild nds32: remove redundant kernel-space generic-y 2019-01-06 09:46:51 +09:00
l2_cache.h nds32: L2 cache support 2018-02-22 10:44:34 +08:00
linkage.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
memory.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
mmu_context.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
mmu.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
module.h nds32: Loadable modules 2018-02-22 10:44:34 +08:00
nds32_fpu_inst.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
nds32.h nds32: Add macro definition for offset of lp register on stack 2018-09-04 14:45:19 +08:00
page.h nds32: Fix the symbols undefined issue by exporting them. 2018-05-23 13:26:20 +08:00
perf_event.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
pgalloc.h mm: treewide: remove unused address argument from pte_alloc functions 2019-01-04 13:13:47 -08:00
pgtable.h mm: make the __PAGETABLE_PxD_FOLDED defines non-empty 2018-11-02 08:31:52 +01:00
pmu.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
proc-fns.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
processor.h nds32: nds32 FPU port 2018-11-22 18:13:13 +08:00
ptrace.h nds32: Exception handling 2018-02-22 10:44:31 +08:00
sfp-machine.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
shmparam.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
stacktrace.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
string.h nds32: Library functions 2018-02-22 10:44:33 +08:00
suspend.h nds32: Power management for nds32 2018-11-06 18:01:41 +08:00
swab.h nds32: Library functions 2018-02-22 10:44:33 +08:00
syscall.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
syscalls.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
thread_info.h nds32: Process management 2018-02-22 10:44:32 +08:00
tlb.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
tlbflush.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
uaccess.h get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
unistd.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
vdso_datapage.h nds32: VDSO support 2018-02-22 10:44:33 +08:00
vdso_timer_info.h nds32: VDSO support 2018-02-22 10:44:33 +08:00
vdso.h nds32: VDSO support 2018-02-22 10:44:33 +08:00