OSDN Git Service

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)
commit5f11723b204aaf461e7a5242fc732222d2f0aa17
treee62a121b85ad6ffcba362f8d9e35eead9ad84afc
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
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: 52eabba5bcdb ("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