ACPI / PCI: make pci_slot explicitly non-modular
PATCH 1/1 ACPI / PCI: make pci_slot explicitly non-modular
The Kconfig for this file is:
drivers/acpi/Kconfig:config ACPI_PCI_SLOTdrivers/acpi/Kconfig: bool "PCI slot detection driver"
...and so it is not built as a module. Hence including module.h and everything that comes with it just for the no-op MODULE_LICENSE and friends is rather heavy handed.
The license/author info is found at the top of the file, so we just remove the MODULE_LICENSE etc and the include of module.h
We delete the DRIVER_VERSION macro as well since it is unused.
--- drivers/acpi/pci_slot.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/acpi/pci_slot.c +0 -8
@@ -25,7 +25,6 @@#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/types.h>
@@ -37,13 +36,6 @@static int check_sta_before_sun; -#define DRIVER_VERSION "0.1" -#define DRIVER_AUTHOR "Alex Chiang <[email protected]>" -#define DRIVER_DESC "ACPI PCI Slot Detection Driver" -MODULE_AUTHOR (DRIVER_AUTHOR ); -MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE ("GPL" ); -#define _COMPONENT ACPI_PCI_COMPONENTACPI_MODULE_NAME ("pci_slot" );
Signature · 1 line
2.8.4
Rafael J. Wysocki
AppliedQuoted 12 lines · Paul Gortmaker
The
Kconfigfor this file is:drivers/acpi/Kconfig:config
ACPI_PCI_SLOTdrivers/acpi/Kconfig: bool "PCI slot detection driver"...and so it is not built as a module. Hence including
module.hand everything that comes with it just for the no-opMODULE_LICENSEand friends is rather heavy handed.The license/author info is found at the top of the file, so we just remove the
MODULE_LICENSEetc and the include ofmodule.h
Quoted 6 lines
We delete the
DRIVER_VERSIONmacro as well since it is unused.Cc "Rafael J. Wysocki" <[email protected]>Cc Len Brown <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Applied, thanks!