• R
    PCI: Add pci_get_domain_bus_and_slot() stub · 7912af5c
    Randy Dunlap 提交于
    The coretemp driver build fails when CONFIG_PCI is not enabled because it
    uses a function that does not have a stub for that config case, so add the
    function stub.
    
      ../drivers/hwmon/coretemp.c: In function 'adjust_tjmax':
      ../drivers/hwmon/coretemp.c:250:9: error: implicit declaration of function 'pci_get_domain_bus_and_slot' [-Werror=implicit-function-declaration]
        struct pci_dev *host_bridge = pci_get_domain_bus_and_slot(0, 0, devfn);
      ../drivers/hwmon/coretemp.c:250:32: warning: initialization makes pointer from integer without a cast [enabled by default]
        struct pci_dev *host_bridge = pci_get_domain_bus_and_slot(0, 0, devfn);
    Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
    [bhelgaas: identical patch also by Arnd Bergmann <arnd@arndb.de>]
    Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
    Acked-by: NGuenter Roeck <linux@roeck-us.net>
    7912af5c
pci.h 79.7 KB