PCI: microchip: Make the struct event_descs static
authorKrzysztof Wilczyński <kw@linux.com>
Sun, 9 May 2021 04:19:32 +0000 (04:19 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 3 Jun 2021 16:11:45 +0000 (17:11 +0100)
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?

Link: https://lore.kernel.org/r/20210509041932.560340-1-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pcie-microchip-host.c

index 89c68c56d93b3a34568e95ecd7b717fb0413ed01..fdab8202ae5d119f5346e7d461fd50bfb7b07c62 100644 (file)
@@ -341,7 +341,7 @@ static struct event_map local_status_to_event[] = {
        LOCAL_STATUS_TO_EVENT_MAP(PM_MSI_INT_SYS_ERR),
 };
 
-struct {
+static struct {
        u32 base;
        u32 offset;
        u32 mask;