From: "Arnd Bergmann" <arnd@arndb.de>
To: "Huacai Chen" <chenhuacai@loongson.cn>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Marc Zyngier" <maz@kernel.org>
Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org,
"Xuefeng Li" <lixuefeng@loongson.cn>,
"Huacai Chen" <chenhuacai@gmail.com>,
"Jiaxun Yang" <jiaxun.yang@flygoat.com>
Subject: Re: [PATCH] irqchip: Make irqchip_init() usable on pure ACPI systems
Date: Tue, 27 Sep 2022 09:51:04 +0200 [thread overview]
Message-ID: <e0efb8a9-b4b0-47bf-ab84-ea71c3630f9d@www.fastmail.com> (raw)
In-Reply-To: <20220927045514.2762299-1-chenhuacai@loongson.cn>
On Tue, Sep 27, 2022, at 6:55 AM, Huacai Chen wrote:
> @@ -28,7 +28,9 @@ extern struct of_device_id __irqchip_of_table[];
>
> void __init irqchip_init(void)
> {
> +#ifdef CONFIG_OF_IRQ
> of_irq_init(__irqchip_of_table);
> +#endif
> acpi_probe_device_table(irqchip);
> }
I think that #ifdef should be in the include/linux/of_irq.h
header, with an empty inline function in the #else path.
Arnd
next prev parent reply other threads:[~2022-09-27 7:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-27 4:55 Huacai Chen
2022-09-27 7:51 ` Arnd Bergmann [this message]
2022-09-27 11:37 ` Marc Zyngier
2022-09-27 12:32 ` Huacai Chen
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=e0efb8a9-b4b0-47bf-ab84-ea71c3630f9d@www.fastmail.com \
--to=arnd@arndb.de \
--cc=chenhuacai@gmail.com \
--cc=chenhuacai@loongson.cn \
--cc=jiaxun.yang@flygoat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lixuefeng@loongson.cn \
--cc=loongarch@lists.linux.dev \
--cc=maz@kernel.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®