linux_dsm_epyc7002/arch/nios2/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-macros.h
asm-offsets.h
cache.h
cacheflush.h page cache: use xa_lock 2018-04-11 10:28:39 -07:00
checksum.h ipv4: Update parameters for csum_tcpudp_magic to their original types 2016-03-13 23:55:13 -04:00
cpuinfo.h nios2: Add CDX support 2017-05-08 16:59:19 +08:00
delay.h
elf.h
entry.h
io.h nios2: add ioremap_nocache declaration before include asm-generic/io.h. 2018-03-16 15:45:21 +08:00
irq.h
irqflags.h
Kbuild nios2: use generic dma_noncoherent_ops 2018-07-25 13:33:09 +02:00
kgdb.h nios2: add kgdb support 2015-02-16 19:26:43 +08:00
linkage.h
mmu_context.h sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
mmu.h
page.h nios2: Convert pfn_valid to static inline 2016-12-13 17:13:17 +08:00
pgalloc.h mm: treewide: remove unused address argument from pte_alloc functions 2019-01-04 13:13:47 -08:00
pgtable-bits.h nios2: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:32 -08:00
pgtable.h arch, mm: convert all architectures to use 5level-fixup.h 2017-03-09 11:48:47 -08:00
processor.h treewide: remove current_text_addr 2018-10-31 08:54:12 -07:00
ptrace.h nios2: update pt_regs 2015-03-12 13:35:06 +08:00
registers.h
setup.h nios2: remove custom early console implementation 2017-05-11 17:44:21 +08:00
shmparam.h nios2: rework cache 2015-04-24 14:49:53 +08:00
string.h
switch_to.h
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
timex.h
tlb.h
tlbflush.h
traps.h
uaccess.h get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00