]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: switchtec: Add missing __iomem and __user tags to fix sparse warnings
authorLogan Gunthorpe <logang@deltatee.com>
Tue, 28 Jul 2020 19:24:33 +0000 (13:24 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 31 Jul 2020 16:23:34 +0000 (11:23 -0500)
commitc789e5005638dca008a4d3da4377fb9584f84781
treee62a121b85ad6ffcba362f8d9e35eead9ad84afc
parent2e0873da09585b8a2daf9ca8c2facd15f454ec3f
PCI: switchtec: Add missing __iomem and __user tags to fix sparse warnings

Fix a number of missing __iomem and __user tags in the ioctl functions of
the switchtec driver. This fixes a number of sparse warnings of the form:

  $ make C=2 drivers/pci/switch/
  drivers/pci/switch/switchtec.c:... incorrect type in ... (different address spaces)

Fixes: ccf4665a7745 ("switchtec: Add IOCTLs to the Switchtec driver")
Link: https://lore.kernel.org/r/20200728192434.18993-1-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c