PCI: Move pci_set_flags() from asm-generic/pci-bridge.h to linux/pci.h
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Feb 2016 20:57:47 +0000 (14:57 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Feb 2016 22:28:11 +0000 (16:28 -0600)
commit5bbe029ff7bc8ff82ef31d3480d68c95642a3c7a
treec84de09e2bf7af2691b13ac15ab3a21684c608b4
parent41ccebaecef50e56f822791a52b7bd9e9608e5e6
PCI: Move pci_set_flags() from asm-generic/pci-bridge.h to linux/pci.h

The PCI flag management constants and functions were previously declared in
include/asm-generic/pci-bridge.h.  But they are not specific to bridges,
and arches did not include pci-bridge.h consistently.

Move the following interfaces and related constants to include/linux/pci.h
and remove pci-bridge.h:

  pci_set_flags()
  pci_add_flags()
  pci_clear_flags()
  pci_has_flag()

This fixes these warnings when building for some arches:

  drivers/pci/host/pcie-designware.c:562:20: error: 'PCI_PROBE_ONLY' undeclared (first use in this function)
  drivers/pci/host/pcie-designware.c:562:7: error: implicit declaration of function 'pci_has_flag' [-Werror=implicit-function-declaration]

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
include/asm-generic/pci-bridge.h
include/linux/pci.h
This page took 0.027482 seconds and 5 git commands to generate.