aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <[email protected]>2021-05-09 04:19:32 +0000
committerLorenzo Pieralisi <[email protected]>2021-06-03 17:11:45 +0100
commit1243106474294ea4ea95d9fc076549817814ce1d (patch)
treec74f779e559c55b8508881084ce81f9c600353bc
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
PCI: microchip: Make the struct event_descs static
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/[email protected] Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
-rw-r--r--drivers/pci/controller/pcie-microchip-host.c2
1 files changed, 1 insertions, 1 deletions
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[] = {
LOCAL_STATUS_TO_EVENT_MAP(PM_MSI_INT_SYS_ERR),
};
-struct {
+static struct {
u32 base;
u32 offset;
u32 mask;