archive mirror
 help / color / mirror / Atom feed
From: "Krzysztof Wilczyński" <>
To: Bjorn Helgaas <>
Cc: Lorenzo Pieralisi <>,
	Daire McNamara <>,
	Rob Herring <>,
Subject: [PATCH] PCI: microchip: Make the struct event_descs static
Date: Sun,  9 May 2021 04:19:32 +0000	[thread overview]
Message-ID: <> (raw)

The struct event_descs does not have any users outside the
pcie-microchip-host.c file, and has no previous declaration,
thus it can be made static.

This resolves the following sparse warning:

  drivers/pci/controller/pcie-microchip-host.c:352:3: warning: symbol 'event_descs' was not declared. Should it be static?

Signed-off-by: Krzysztof Wilczyński <>
 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 89c68c56d93b..fdab8202ae5d 100644
--- a/drivers/pci/controller/pcie-microchip-host.c
+++ b/drivers/pci/controller/pcie-microchip-host.c
@@ -341,7 +341,7 @@ static struct event_map local_status_to_event[] = {
-struct {
+static struct {
 	u32 base;
 	u32 offset;
 	u32 mask;

             reply	other threads:[~2021-05-09  4:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-09  4:19 Krzysztof Wilczyński [this message]
2021-06-03 16:12 ` [PATCH] PCI: microchip: Make the struct event_descs static 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* 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).