Skip to content

Commit

Permalink
PCI: microchip: Make the struct event_descs static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Wilczyński authored and Lorenzo Pieralisi committed Jun 3, 2021
1 parent 6efb943 commit 1243106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/controller/pcie-microchip-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1243106

Please sign in to comment.