require EXPORT_SYMBOL_GPL symbols for symbol_get v2

From: Christoph Hellwig
Date: Tue Aug 01 2023 - 13:36:31 EST


Hi all,

this series changes symbol_get to only work on EXPORT_SYMBOL_GPL
as nvidia is abusing the lack of this check to bypass restrictions
on importing symbols from proprietary modules.

Changes since v1:
- stop using symbol_get for sharpsl_pm.c (Arnd)
- stop using symbol_get for au1xmmc platform irq handlers
- better (and simpler) error reporting

Diffstat:
arch/arm/mach-pxa/sharpsl_pm.c | 2 --
arch/arm/mach-pxa/spitz.c | 14 +-------------
arch/mips/alchemy/devboards/db1000.c | 8 +-------
arch/mips/alchemy/devboards/db1200.c | 19 ++-----------------
arch/mips/alchemy/devboards/db1300.c | 10 +---------
drivers/mmc/host/Kconfig | 4 ++--
drivers/net/ethernet/freescale/enetc/enetc_ptp.c | 2 +-
drivers/rtc/rtc-ds1685.c | 2 +-
kernel/module/main.c | 14 +++++++++++---
9 files changed, 20 insertions(+), 55 deletions(-)