From: <Daire.McNamara@microchip.com>
To: <lorenzo.pieralisi@arm.com>, <u.kleine-koenig@pengutronix.de>
Cc: <robh@kernel.org>, <kw@linux.com>, <bhelgaas@google.com>,
<kernel@pengutronix.de>, <linux-pci@vger.kernel.org>,
<gregkh@linuxfoundation.org>, <ian@linux.cowan.aero>
Subject: Re: [PATCH] PCI: microchip: Add a missing semicolon
Date: Wed, 20 Apr 2022 10:40:09 +0000 [thread overview]
Message-ID: <079e0051d1c88935d49c80f3f68a2c26c7658c5c.camel@microchip.com> (raw)
In-Reply-To: <20220420065832.14173-1-u.kleine-koenig@pengutronix.de>
works fine too. No particular reason to keep it bool.
Acked-by: Daire McNamara <daire.mcnamara@microchip.com>
On Wed, 2022-04-20 at 08:58 +0200, Uwe Kleine-König wrote:
> [You don't often get email from u.kleine-koenig@pengutronix.de. Learn
> why this is important at http://aka.ms/LearnAboutSenderIdentification
> .]
>
> EXTERNAL EMAIL: Do not click links or open attachments unless you
> know the content is safe
>
> If the driver is configured as a module (after allowing this by
> changing
> PCIE_MICROCHIP_HOST from bool to tristate) the missing semicolon
> makes the
> compiler very unhappy. While there isn't a real problem as
> MODULE_DEVICE_TABLE always evaluates to nothing for a built-in
> driver,
> do it right for consistency with other drivers.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Hello,
>
> I wonder if there is a technical reason to have PCIE_MICROCHIP_HOST
> (and
> some others) only bool. With this patch applied the driver compiles
> just
> fine with PCIE_MICROCHIP_HOST=m.
>
> Best regards
> Uwe
>
> drivers/pci/controller/pcie-microchip-host.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/controller/pcie-microchip-host.c
> b/drivers/pci/controller/pcie-microchip-host.c
> index 29d8e81e4181..4b1e130f88a3 100644
> --- a/drivers/pci/controller/pcie-microchip-host.c
> +++ b/drivers/pci/controller/pcie-microchip-host.c
> @@ -1115,7 +1115,7 @@ static const struct of_device_id
> mc_pcie_of_match[] = {
> {},
> };
>
> -MODULE_DEVICE_TABLE(of, mc_pcie_of_match)
> +MODULE_DEVICE_TABLE(of, mc_pcie_of_match);
>
> static struct platform_driver mc_pcie_driver = {
> .probe = pci_host_common_probe,
> --
> 2.35.1
>
next prev parent reply other threads:[~2022-04-20 10:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-20 6:58 [PATCH] PCI: microchip: Add a missing semicolon Uwe Kleine-König
2022-04-20 7:54 ` Conor.Dooley
2022-04-20 10:40 ` Daire.McNamara [this message]
2022-04-20 13:27 ` Rob Herring
2022-04-20 14:43 ` Uwe Kleine-König
2022-04-25 13:02 ` Lorenzo Pieralisi
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=079e0051d1c88935d49c80f3f68a2c26c7658c5c.camel@microchip.com \
--to=daire.mcnamara@microchip.com \
--cc=bhelgaas@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=ian@linux.cowan.aero \
--cc=kernel@pengutronix.de \
--cc=kw@linux.com \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=robh@kernel.org \
--cc=u.kleine-koenig@pengutronix.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;
as well as URLs for NNTP newsgroup(s).