From: Genjian Zhang <zhanggenjian123@gmail.com>
To: tsbogend@alpha.franken.de, maz@kernel.org, keescook@chromium.org,
mark.rutland@arm.com, nathan@kernel.org, siyanteng01@gmail.com,
yyuasa@linux.com, ralf@linux-mips.org
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
huhai@kylinos.cn, k2ci <kernel-bot@kylinos.cn>
Subject: [PATCH] irq: mips: Export irq_err_count to modules
Date: Mon, 23 May 2022 16:16:25 +0800 [thread overview]
Message-ID: <20220523081625.2074527-1-zhanggenjian@kylinos.cn> (raw)
From: huhai <huhai@kylinos.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@kylinos.cn>
Signed-off-by: huhai <huhai@kylinos.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
next reply other threads:[~2022-05-23 8:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-23 8:16 Genjian Zhang [this message]
2022-05-23 9:16 ` [PATCH] irq: mips: Export irq_err_count to modules Thomas Bogendoerfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220523081625.2074527-1-zhanggenjian@kylinos.cn \
--to=zhanggenjian123@gmail.com \
--cc=huhai@kylinos.cn \
--cc=keescook@chromium.org \
--cc=kernel-bot@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=nathan@kernel.org \
--cc=ralf@linux-mips.org \
--cc=siyanteng01@gmail.com \
--cc=tsbogend@alpha.franken.de \
--cc=yyuasa@linux.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).