* [PATCH] ACPI / PCI: make pci_slot explicitly non-modular
@ 2016-07-11 22:17 Paul Gortmaker
2016-07-19 20:09 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Paul Gortmaker @ 2016-07-11 22:17 UTC (permalink / raw)
To: linux-kernel; +Cc: Paul Gortmaker, Rafael J. Wysocki, Len Brown, linux-acpi
The Kconfig for this file is:
drivers/acpi/Kconfig:config ACPI_PCI_SLOT
drivers/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.
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
drivers/acpi/pci_slot.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/acpi/pci_slot.c b/drivers/acpi/pci_slot.c
index 1236fb04a708..f62c68e24317 100644
--- a/drivers/acpi/pci_slot.c
+++ b/drivers/acpi/pci_slot.c
@@ -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 <achiang@hp.com>"
-#define DRIVER_DESC "ACPI PCI Slot Detection Driver"
-MODULE_AUTHOR(DRIVER_AUTHOR);
-MODULE_DESCRIPTION(DRIVER_DESC);
-MODULE_LICENSE("GPL");
-
#define _COMPONENT ACPI_PCI_COMPONENT
ACPI_MODULE_NAME("pci_slot");
--
2.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI / PCI: make pci_slot explicitly non-modular
2016-07-11 22:17 [PATCH] ACPI / PCI: make pci_slot explicitly non-modular Paul Gortmaker
@ 2016-07-19 20:09 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2016-07-19 20:09 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-kernel, Len Brown, linux-acpi
On Monday, July 11, 2016 06:17:23 PM Paul Gortmaker wrote:
> The Kconfig for this file is:
>
> drivers/acpi/Kconfig:config ACPI_PCI_SLOT
> drivers/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.
>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Len Brown <lenb@kernel.org>
> Cc: linux-acpi@vger.kernel.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-19 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-11 22:17 [PATCH] ACPI / PCI: make pci_slot explicitly non-modular Paul Gortmaker
2016-07-19 20:09 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).