Skip to content

Commit 1243106

Browse files
kwilczynskiLorenzo Pieralisi
authored andcommitted
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]>
1 parent 6efb943 commit 1243106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/pcie-microchip-host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ static struct event_map local_status_to_event[] = {
341341
LOCAL_STATUS_TO_EVENT_MAP(PM_MSI_INT_SYS_ERR),
342342
};
343343

344-
struct {
344+
static struct {
345345
u32 base;
346346
u32 offset;
347347
u32 mask;

0 commit comments

Comments
 (0)