lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 23 May 2022 16:16:25 +0800
From:   Genjian Zhang <zhanggenjian123@...il.com>
To:     tsbogend@...ha.franken.de, maz@...nel.org, keescook@...omium.org,
        mark.rutland@....com, nathan@...nel.org, siyanteng01@...il.com,
        yyuasa@...ux.com, ralf@...ux-mips.org
Cc:     linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
        huhai@...inos.cn, k2ci <kernel-bot@...inos.cn>
Subject: [PATCH] irq: mips: Export irq_err_count to modules

From: huhai <huhai@...inos.cn>

modpost complains once these drivers become modules.
  ERROR: modpost: "irq_err_count" [drivers/gpio/gpio-vr41xx.ko] undefined!

Fix it by export them when that symbol is =m.

Fixes: 27fdd325dace ("MIPS: Update VR41xx GPIO driver to use gpiolib")
Reported-by: k2ci <kernel-bot@...inos.cn>
Signed-off-by: huhai <huhai@...inos.cn>
---
 arch/mips/kernel/irq.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c
index 5e11582fe308..b0038b715008 100644
--- a/arch/mips/kernel/irq.c
+++ b/arch/mips/kernel/irq.c
@@ -38,6 +38,9 @@ void ack_bad_irq(unsigned int irq)
 }
 
 atomic_t irq_err_count;
+#ifdef CONFIG_GPIO_VR41XX_MODULE
+EXPORT_SYMBOL_GPL(irq_err_count);
+#endif
 
 int arch_show_interrupts(struct seq_file *p, int prec)
 {
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ