]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
PCI/ACPI: Make acpi_pci_osc_control_set() static
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Jun 2020 20:56:55 +0000 (15:56 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 27 Jan 2021 15:37:40 +0000 (09:37 -0600)
acpi_pci_osc_control_set() is only called from pci_root.c, so stop
exporting it and make it static.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_root.c
include/linux/acpi.h

index 0bf072cef6cfd32057edece53d01b634357d95fe..7d5a4bd4207c6589ab9c53cd866f6a9dffb7f446 100644 (file)
@@ -353,7 +353,7 @@ EXPORT_SYMBOL_GPL(acpi_get_pci_dev);
  * _OSC bits the BIOS has granted control of, but its contents are meaningless
  * on failure.
  **/
-acpi_status acpi_pci_osc_control_set(acpi_handle handle, u32 *mask, u32 req)
+static acpi_status acpi_pci_osc_control_set(acpi_handle handle, u32 *mask, u32 req)
 {
        struct acpi_pci_root *root;
        acpi_status status = AE_OK;
@@ -406,7 +406,6 @@ out:
        mutex_unlock(&osc_lock);
        return status;
 }
-EXPORT_SYMBOL(acpi_pci_osc_control_set);
 
 static void negotiate_os_control(struct acpi_pci_root *root, int *no_aspm,
                                 bool is_pcie)
index 053bf05fb1f7606e23fb7949c8f0132a82a9c10e..4703daafcce9e0140daeabf89ebb53a7d3545f85 100644 (file)
@@ -581,9 +581,6 @@ extern bool osc_pc_lpi_support_confirmed;
 #define ACPI_GSB_ACCESS_ATTRIB_RAW_BYTES       0x0000000E
 #define ACPI_GSB_ACCESS_ATTRIB_RAW_PROCESS     0x0000000F
 
-extern acpi_status acpi_pci_osc_control_set(acpi_handle handle,
-                                            u32 *mask, u32 req);
-
 /* Enable _OST when all relevant hotplug operations are enabled */
 #if defined(CONFIG_ACPI_HOTPLUG_CPU) &&                        \
        defined(CONFIG_ACPI_HOTPLUG_MEMORY) &&          \