diff options
| author | Krzysztof Wilczyński <[email protected]> | 2021-07-06 00:31:45 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2022-03-22 16:23:51 +0000 |
| commit | cb2d0f846139b620ff2d11da15daa0eeb581d1a6 (patch) | |
| tree | 7c8856612e420df46a83be22310c4e3b954eae96 /drivers/pci/controller/dwc | |
| parent | PCI/AER: Update aer-inject URL (diff) | |
| download | kernel-cb2d0f846139b620ff2d11da15daa0eeb581d1a6.tar.gz kernel-cb2d0f846139b620ff2d11da15daa0eeb581d1a6.zip | |
PCI: Declare pci_filp_private only when HAVE_PCI_MMAP
The struct pci_filp_private has no users outside drivers/pci/proc.c and is
only used when HAVE_PCI_MMAP is defined.
Wrap the struct pci_filp_private definition itself in #ifdef HAVE_PCI_MMAP.
Found by cppcheck:
$ cppcheck --enable=all --force drivers/pci/proc.c
drivers/pci/proc.c:192:6: style: struct member 'pci_filp_private::write_combine' is never used. [unusedStructMember]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions
