From: Narendra_K@Dell.com Date: Mon, 7 Mar 2011 20:55:56 +0000 (-0800) Subject: PCI: label: Fix compilation error when CONFIG_ACPI is unset X-Git-Tag: firefly_0821_release~7613^2~2144^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=07eefe1ca542129c24833c96ceb83b9aaa3b458d;p=firefly-linux-kernel-4.4.55.git PCI: label: Fix compilation error when CONFIG_ACPI is unset This patch fixes compilation error descibed below introduced by the commit 6058989bad05b82e78baacce69ec14f27a11b5fd drivers/pci/pci-label.c: In function ‘pci_create_firmware_label_files’: drivers/pci/pci-label.c:366:2: error: implicit declaration of function ‘device_has_dsm’ Signed-off-by: Narendra K Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/pci-label.c b/drivers/pci/pci-label.c index 824e247edc58..8c80138bb66f 100644 --- a/drivers/pci/pci-label.c +++ b/drivers/pci/pci-label.c @@ -174,6 +174,12 @@ pci_remove_acpi_index_label_files(struct pci_dev *pdev) return -1; } +static inline bool +device_has_dsm(struct device *dev) +{ + return false; +} + #else static const char device_label_dsm_uuid[] = {