linux-xiaomi-chiron/arch/mips/include/asm
Masahiro Yamada 62d0fd591d arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
As the bug report [1] pointed out, <linux/vermagic.h> must be included
after <linux/module.h>.

I believe we should not impose any include order restriction. We often
sort include directives alphabetically, but it is just coding style
convention. Technically, we can include header files in any order by
making every header self-contained.

Currently, arch-specific MODULE_ARCH_VERMAGIC is defined in
<asm/module.h>, which is not included from <linux/vermagic.h>.

Hence, the straight-forward fix-up would be as follows:

|--- a/include/linux/vermagic.h
|+++ b/include/linux/vermagic.h
|@@ -1,5 +1,6 @@
| /* SPDX-License-Identifier: GPL-2.0 */
| #include <generated/utsrelease.h>
|+#include <linux/module.h>
|
| /* Simply sanity version stamp for modules. */
| #ifdef CONFIG_SMP

This works enough, but for further cleanups, I split MODULE_ARCH_VERMAGIC
definitions into <asm/vermagic.h>.

With this, <linux/module.h> and <linux/vermagic.h> will be orthogonal,
and the location of MODULE_ARCH_VERMAGIC definitions will be consistent.

For arc and ia64, MODULE_PROC_FAMILY is only used for defining
MODULE_ARCH_VERMAGIC. I squashed it.

For hexagon, nds32, and xtensa, I removed <asm/modules.h> entirely
because they contained nothing but MODULE_ARCH_VERMAGIC definition.
Kbuild will automatically generate <asm/modules.h> at build-time,
wrapping <asm-generic/module.h>.

[1] https://lore.kernel.org/lkml/20200411155623.GA22175@zn.tnic

Reported-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Jessica Yu <jeyu@kernel.org>
2020-04-23 10:50:26 +09:00
..
dec
emma
fw
ip32
lasat
mach-ar7 MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-ath25
mach-ath79 MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-au1x00 MIPS: Alchemy: remove no longer used au1xxx_ide.h header 2020-03-24 15:53:47 +01:00
mach-bcm47xx
mach-bcm63xx
mach-bmips
mach-cavium-octeon
mach-cobalt
mach-db1x00
mach-dec
mach-emma2rh MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-generic
mach-ip22 MIPS: SGI-IP22/28: Use PROM for memory detection 2019-10-09 14:55:57 -07:00
mach-ip27 MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-ip28
mach-ip30 MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-ip32
mach-jazz
mach-jz4740
mach-lantiq MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-lasat MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-loongson2ef MIPS: Loongson2ef: Convert to early_printk_8250 2019-11-11 10:45:00 -08:00
mach-loongson32 MIPS: Loongson{2ef, 32, 64} convert to generic fw cmdline 2019-11-11 10:44:56 -08:00
mach-loongson64 MIPS: Loongson64: Load built-in dtbs 2020-03-25 16:07:12 +01:00
mach-malta MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-netlogic
mach-paravirt
mach-pic32 MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-pistachio MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-pmcs-msp71xx
mach-pnx833x
mach-ralink MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-rc32434
mach-rm MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-sibyte
mach-tx39xx
mach-tx49xx
mach-vr41xx MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mach-xilfpga MIPS: Add header files reference with path prefix 2020-03-19 13:12:27 +01:00
mips-boards
netlogic
octeon MIPS: octeon: remove typedef declaration for cvmx_pko_command_word0 2020-02-12 13:50:33 -08:00
pci MIPS: PCI: Support mapping of INTB/C/D for pci-xtalk-bridge 2020-01-09 15:30:53 -08:00
sgi MIPS: add support for SGI Octane (IP30) 2019-11-01 14:58:56 -07:00
sibyte
sn MIPS: PCI: Add detection of IOC3 on IO7, IO8, IO9 and Fuel 2020-01-24 11:37:45 -08:00
txx9
vdso mips: vdso: Enable mips to use common headers 2020-03-21 15:24:02 +01:00
vr41xx
xtalk
abi.h
addrspace.h
amon.h
arch_hweight.h
asm-eva.h
asm-offsets.h
asm-prototypes.h
asm.h
asmmacro-32.h
asmmacro-64.h
asmmacro.h sched/rt, MIPS: Use CONFIG_PREEMPTION 2019-12-08 14:37:34 +01:00
atomic.h MIPS: atomic: Deduplicate 32b & 64b read, set, xchg, cmpxchg 2019-10-07 09:42:36 -07:00
barrier.h MIPS: barrier: Make __smp_mb__before_atomic() a no-op for Loongson3 2019-10-07 09:43:08 -07:00
bcache.h
bitops.h MIPS: bitops: Use smp_mb__before_atomic in test_* ops 2019-10-07 09:42:58 -07:00
bitrev.h
bmips-spaces.h
bmips.h MIPS: bmips: mark exception vectors as char arrays 2019-10-23 21:07:28 -07:00
bootinfo.h MIPS: X1830: Add X1830 system type. 2020-01-09 09:48:42 -08:00
branch.h
break.h
bug.h
bugs.h MIPS: r4k-bugs64: Limit R4k bug checks to affected systems 2019-10-07 09:38:53 -07:00
cache.h
cacheflush.h
cacheops.h
cdmm.h
cevt-r4k.h
checksum.h
clock.h
clocksource.h mips: Introduce asm/vdso/clocksource.h 2020-03-21 15:23:55 +01:00
cmp.h
cmpxchg.h A few MIPS fixes: 2019-11-01 14:36:44 -07:00
compat-signal.h
compat.h compat: provide compat_ptr() on all architectures 2020-01-03 09:32:51 +01:00
compiler.h
cop2.h MIPS: Loongson64: Rename CPU TYPES 2019-10-31 15:03:10 -07:00
cpu-features.h MIPS: Add MAC2008 Support 2020-01-22 15:56:08 -08:00
cpu-info.h
cpu-type.h MIPS: Fix boot on Fuloong2 systems 2019-11-27 10:27:45 -08:00
cpu.h MIPS: Add MAC2008 Support 2020-01-22 15:56:08 -08:00
cpufeature.h
debug.h
delay.h
div64.h
dma-coherence.h
dma-direct.h dma-direct: unify the dma_capable definitions 2019-11-20 20:31:40 +01:00
dma-mapping.h
dma.h
dmi.h MIPS: Add support for Desktop Management Interface (DMI) 2020-03-23 15:44:05 +01:00
ds1287.h
dsemul.h
dsp.h
edac.h
elf.h Use ELF_BASE_PLATFORM to pass ISA level 2020-03-19 13:09:33 +01:00
errno.h
eva.h
exec.h
extable.h
fb.h
fixmap.h mips: add support for folded p4d page tables 2019-11-22 10:51:22 -08:00
floppy.h
fpregdef.h
fpu.h
fpu_emulator.h
ftrace.h
futex.h futex: arch_futex_atomic_op_inuser() calling conventions change 2020-03-27 23:58:51 -04:00
ginvt.h
gio_device.h MIPS: ip22-gio: Make gio_match_device() static 2020-01-13 10:55:40 -08:00
gt64120.h
hardirq.h
hazards.h MIPS: Loongson64: Bump ISA level to MIPSR2 2020-01-23 10:26:48 -08:00
highmem.h
hpet.h
hugetlb.h
hw_irq.h
i8259.h irqchip: Add driver for Loongson-3 HyperTransport PIC controller 2020-03-25 10:56:43 +01:00
ide.h
idle.h
inst.h
io.h remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
irq.h
irq_cpu.h
irq_gt641xx.h
irq_regs.h
irqflags.h MIPS: Make DIEI support as a config option 2020-01-23 10:26:16 -08:00
isa-rev.h
isadep.h
jazz.h
jazzdma.h
jump_label.h
Kbuild asm-generic: make more kernel-space headers mandatory 2020-04-02 09:35:25 -07:00
kdebug.h
kexec.h
kgdb.h
kmap_types.h
kprobes.h
kvm_host.h KVM: Simplify kvm_free_memslot() and all its descendents 2020-03-16 17:57:22 +01:00
kvm_para.h
linkage.h
llsc.h MIPS: bitops: Use BIT_WORD() & BITS_PER_LONG 2019-10-07 09:42:55 -07:00
local.h MIPS: asm: local: add barriers for Loongson 2020-01-23 10:21:53 -08:00
m48t37.h
maar.h
machine.h
mc146818-time.h
mc146818rtc.h
mips-cm.h
mips-cpc.h
mips-cps.h
mips-gic.h
mips-r2-to-r6-emul.h
mips_machine.h
mips_mt.h
mipsmtregs.h
mipsprom.h
mipsregs.h MIPS: Add MAC2008 Support 2020-01-22 15:56:08 -08:00
mmiowb.h
mmu.h
mmu_context.h
mmzone.h
module.h arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h> 2020-04-23 10:50:26 +09:00
msa.h
msc01_ic.h
nile4.h
paccess.h
page.h mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS 2020-04-10 15:36:21 -07:00
pci.h
perf_event.h
pgalloc.h mips: add support for folded p4d page tables 2019-11-22 10:51:22 -08:00
pgtable-32.h mips: add support for folded p4d page tables 2019-11-22 10:51:22 -08:00
pgtable-64.h mips: add support for folded p4d page tables 2019-11-22 10:51:22 -08:00
pgtable-bits.h
pgtable.h mm/special: create generic fallbacks for pte_special() and pte_mkspecial() 2020-04-10 15:36:21 -07:00
pm-cps.h
pm.h
prefetch.h
processor.h MIPS updates for v5.7: 2020-03-31 08:51:45 -07:00
prom.h
ptrace.h
r4k-timer.h
r4kcache.h MIPS: Loongson64: Rename CPU TYPES 2019-10-31 15:03:10 -07:00
reboot.h
reg.h
regdef.h
rtlx.h
seccomp.h
setup.h
sgialib.h MIPS: arc: use function argument for passing argc/argv to prom_init_cmdline 2019-10-23 21:10:34 -07:00
sgiarcs.h MIPS: fw: arc: use call_o32 to call ARC prom from 64bit kernel 2019-10-09 14:55:51 -07:00
shmparam.h
sigcontext.h
signal.h
sim.h
smp-cps.h
smp-ops.h
smp.h
sni.h MIPS: Replace setup_irq() by request_irq() 2020-03-05 16:47:35 +01:00
socket.h
sparsemem.h
spinlock.h
spinlock_types.h
spram.h
stackframe.h
stackprotector.h
stacktrace.h
string.h MIPS: Drop 32-bit asm string functions 2019-10-09 12:48:05 -07:00
switch_to.h
sync.h MIPS: cavium_octeon: Fix syncw generation. 2020-02-15 12:44:03 -08:00
syscall.h
termios.h
thread_info.h MIPS: Avoid VDSO ABI breakage due to global register variable 2020-01-02 16:41:16 -08:00
time.h
timex.h
tlb.h
tlbdebug.h
tlbex.h
tlbflush.h
tlbmisc.h
topology.h
traps.h
txx9irq.h
txx9pio.h
txx9tmr.h
types.h
uaccess.h
uasm.h
unistd.h MIPS: Wire up clone3 syscall 2019-10-02 14:06:41 -07:00
unroll.h mips: Fix unroll macro when building with Clang 2019-10-10 14:01:47 -07:00
uprobes.h
vdso.h
vermagic.h arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h> 2020-04-23 10:50:26 +09:00
vga.h
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
vpe.h
war.h
watch.h
wbflush.h
yamon-dt.h