summaryrefslogtreecommitdiffstats
path: root/drivers/pci/switch
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-05 11:01:45 +0100
committerBjorn Helgaas <bhelgaas@google.com>2017-10-05 16:08:34 -0500
commitf05f7355de3e66438619c97c612d63cc8a1be125 (patch)
treefcdd2e7885e178b0a240a30bd20076a71f7ba06e /drivers/pci/switch
parent9e66317d3c92ddaab330c125dfe9d06eee268aff (diff)
downloadlinux-f05f7355de3e66438619c97c612d63cc8a1be125.tar.gz
linux-f05f7355de3e66438619c97c612d63cc8a1be125.tar.bz2
linux-f05f7355de3e66438619c97c612d63cc8a1be125.zip
switchtec: Make struct event_regs static
The structure event_regs is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'event_regs' was not declared. Should it be static Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Logan Gunthorpe <logang@deltatee.com>
Diffstat (limited to 'drivers/pci/switch')
-rw-r--r--drivers/pci/switch/switchtec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c
index af81b2dec42e..da45dbea20ce 100644
--- a/drivers/pci/switch/switchtec.c
+++ b/drivers/pci/switch/switchtec.c
@@ -943,7 +943,7 @@ static u32 __iomem *pff_ev_reg(struct switchtec_dev *stdev,
#define EV_PAR(i, r)[i] = {offsetof(struct part_cfg_regs, r), part_ev_reg}
#define EV_PFF(i, r)[i] = {offsetof(struct pff_csr_regs, r), pff_ev_reg}
-const struct event_reg {
+static const struct event_reg {
size_t offset;
u32 __iomem *(*map_reg)(struct switchtec_dev *stdev,
size_t offset, int index);