kernel: bump 5.15 to 5.15.138
[openwrt/openwrt.git] / target / linux / ath79 / patches-5.15 / 351-MIPS-ath79-common-exports.patch
1 From: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2 Subject: [PATCH] ath79: export ath79_pll_base
3
4 This symbol is declared as extern but nobody exported it.
5 Any module including arch/mips/include/asm/mach-ath79/ath79.h
6 will not build. Without this export, ag71xx.ko will not build
7 as a module and the build will fail like this:
8
9 ERROR: modpost: "ath79_pll_base" [drivers/net/ethernet/atheros/ag71xx/ag71xx.ko] undefined!
10
11 The ath79_pll_base symbol is accessed in the ath79_pll_wr() inline function.
12
13 ---
14 arch/mips/ath79/common.c | 1 +
15 1 file changed, 1 insertions(+)
16
17 --- a/arch/mips/ath79/common.c
18 +++ b/arch/mips/ath79/common.c
19 @@ -34,6 +34,7 @@ unsigned int ath79_soc_rev;
20 EXPORT_SYMBOL_GPL(ath79_soc_rev);
21
22 void __iomem *ath79_pll_base;
23 +EXPORT_SYMBOL_GPL(ath79_pll_base);
24 void __iomem *ath79_reset_base;
25 EXPORT_SYMBOL_GPL(ath79_reset_base);
26 void __iomem *ath79_ddr_base;