[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210820210610.GA23698@ef1ee8e5bb1c>
Date: Sat, 21 Aug 2021 05:06:10 +0800
From: kernel test robot <lkp@...el.com>
To: "Rafael J. Wysocki" <rjw@...ysocki.net>,
Linux PCI <linux-pci@...r.kernel.org>,
Jonathan Derrick <jonathan.derrick@...el.com>
Cc: kbuild-all@...ts.01.org, Wendy Wang <wendy.wang@...el.com>,
Linux ACPI <linux-acpi@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Bjorn Helgaas <helgaas@...nel.org>,
David Box <david.e.box@...ux.intel.com>
Subject: [RFC PATCH] PCI: VMD: ACPI: pci_acpi_companion_lookup_key can be
static
drivers/pci/pci-acpi.c:1164:1: warning: symbol 'pci_acpi_companion_lookup_key' was not declared. Should it be static?
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: kernel test robot <lkp@...el.com>
---
pci-acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 535f43034a073..c8718aeafae5d 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -1161,7 +1161,7 @@ void acpi_pci_remove_bus(struct pci_bus *bus)
/* ACPI bus type */
-DEFINE_STATIC_KEY_FALSE(pci_acpi_companion_lookup_key);
+static DEFINE_STATIC_KEY_FALSE(pci_acpi_companion_lookup_key);
static DEFINE_MUTEX(pci_acpi_companion_lookup_mtx);
static struct acpi_device *(*pci_acpi_find_companion_hook)(struct pci_dev *);
Powered by blists - more mailing lists