linux/arch/loongarch/kernel
Huacai Chen be100a8460 LoongArch: Mark 3 symbol exports as non-GPL
commit dce5ea1d0f upstream.

vm_map_base, empty_zero_page and invalid_pmd_table could be accessed
widely by some out-of-tree non-GPL but important file systems or drivers
(e.g. OpenZFS). Let's use EXPORT_SYMBOL() instead of EXPORT_SYMBOL_GPL()
to export them, so as to avoid build errors.

1, Details about vm_map_base:

This is a LoongArch-specific symbol and may be referenced through macros
PCI_IOBASE, VMALLOC_START and VMALLOC_END.

2, Details about empty_zero_page:

As it stands today, only 3 architectures export empty_zero_page as a GPL
symbol: IA64, LoongArch and MIPS. LoongArch gets the GPL export by
inheriting from MIPS, and the MIPS export was first introduced in commit
497d2adcbf ("[MIPS] Export empty_zero_page for sake of the ext4
module."). The IA64 export was similar: commit a7d57ecf42 ("[IA64]
Export three symbols for module use") did so for kvm.

In both IA64 and MIPS, the export of empty_zero_page was done for
satisfying some in-kernel component built as module (kvm and ext4
respectively), and given its reasonably low-level nature, GPL is a
reasonable choice. But looking at the bigger picture it is evident most
other architectures do not regard it as GPL, so in effect the symbol
probably should not be treated as such, in favor of consistency.

3, Details about invalid_pmd_table:

Keep consistency with invalid_pte_table and make it be possible by some
modules.

Cc: stable@vger.kernel.org
Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-26 14:28:38 +02:00
..
.gitignore
access-helper.h
acpi.c LoongArch: Combine acpi_boot_table_init() and acpi_boot_init() 2022-11-21 19:02:57 +08:00
asm-offsets.c
cacheinfo.c
cpu-probe.c LoongArch: Mark 3 symbol exports as non-GPL 2023-04-26 14:28:38 +02:00
crash_dump.c
dma.c
efi-header.S
efi.c
elf.c
entry.S
env.c
fpu.S
genex.S
head.S LoongArch: Remove unused kernel stack padding 2022-10-29 16:29:31 +08:00
idle.c
image-vars.h
inst.c
io.c
irq.c LoongArch: SMP: Change prefix from loongson3 to loongson 2022-11-21 19:02:57 +08:00
machine_kexec.c
Makefile LoongArch changes for v6.1 2022-10-12 10:35:20 -07:00
mem.c
module-sections.c
module.c
numa.c
perf_event.c
perf_regs.c
proc.c LoongArch: Fix probing of the CRC32 feature 2023-04-26 14:28:38 +02:00
process.c LoongArch: Get frame info in unwind_start() when regs is not available 2023-02-06 08:06:32 +01:00
ptrace.c
relocate_kernel.S
reset.c
setup.c LoongArch: Combine acpi_boot_table_init() and acpi_boot_init() 2022-11-21 19:02:57 +08:00
signal.c
smp.c LoongArch: Export symbol for function smp_send_reschedule() 2022-12-08 14:59:15 +08:00
stacktrace.c
switch.S LoongArch: Remove unused kernel stack padding 2022-10-29 16:29:31 +08:00
syscall.c
sysrq.c
time.c LoongArch: Only call get_timer_irq() once in constant_clockevent_init() 2023-03-22 13:33:54 +01:00
topology.c
traps.c
unwind_guess.c LoongArch: Get frame info in unwind_start() when regs is not available 2023-02-06 08:06:32 +01:00
unwind_prologue.c LoongArch: Get frame info in unwind_start() when regs is not available 2023-02-06 08:06:32 +01:00
vdso.c
vmlinux.lds.S