linux_dsm_epyc7002/arch/csky/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
..
addrspace.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
atomic.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
barrier.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
bitops.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
bug.h csky: Debug and Ptrace GDB 2018-10-26 00:54:25 +08:00
cache.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
cacheflush.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
checksum.h csky: Misc headers 2018-10-26 00:54:26 +08:00
cmpxchg.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
elf.h csky: Add EM_CSKY_OLD 39 2018-12-31 23:17:24 +08:00
fixmap.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
ftrace.h csky: ftrace call graph supported. 2018-12-31 23:17:23 +08:00
highmem.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
io.h csky: fixup CACHEV1 store instruction fast retire 2019-01-08 23:42:42 +08:00
irqflags.h csky: IRQ handling 2018-10-26 00:54:22 +08:00
Kbuild
mmu_context.h csky: bugfix tlb_get_pgd error. 2018-12-03 10:49:11 +08:00
mmu.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
page.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
perf_event.h csky: Add perf support for C-SKY 2019-01-02 22:17:11 +08:00
pgalloc.h csky: fixup compile error with pte_alloc 2019-01-09 00:18:33 +08:00
pgtable.h csky: Fixup io-range page attribute for mmap("/dev/mem") 2019-02-13 09:48:14 +08:00
processor.h csky: coding convention: Use task_stack_page 2019-02-13 09:48:14 +08:00
reg_ops.h csky: Misc headers 2018-10-26 00:54:26 +08:00
segment.h get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
shmparam.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
smp.h csky: CPU-hotplug supported for SMP 2018-12-31 23:03:53 +08:00
spinlock_types.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
spinlock.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
string.h csky: Library functions 2018-10-26 00:54:24 +08:00
switch_to.h csky: Process management and Signal 2018-10-26 00:54:13 +08:00
syscall.h csky: define syscall_get_arch() 2018-12-30 21:21:24 +08:00
syscalls.h csky: System Call 2018-10-25 23:36:19 +08:00
thread_info.h csky: stacktrace supported. 2018-12-31 23:12:22 +08:00
tlb.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
tlbflush.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
traps.h
uaccess.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
unistd.h
vdso.h csky: VDSO and rt_sigreturn 2018-10-26 00:54:22 +08:00