Skip to contentSkip to conversation

ACPI / lpat: make it explicitly non-modular

PATCH Applied Paul Gortmaker 2 participants 2 messages Jul 11, 2016 – Jul 19, 2016 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI / lpat: make it explicitly non-modular

The Makefile for building this is "acpi-y" 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 is rather heavy handed.

The license info is found at the top of the file, so we just remove the MODULE_LICENSE and the include of module.h

We add an include of export.h since the file exports some symbols.

---
 drivers/acpi/acpi_lpat.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/acpi/acpi_lpat.c +1 -3
index feb61c1630eb..c1c4877ca96c 100644
@@ -13,7 +13,7 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/acpi.h>
 #include <acpi/acpi_lpat.h>
 
@@ -157,5 +157,3 @@ void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
 	}
 }
 EXPORT_SYMBOL_GPL(acpi_lpat_free_conversion_table);
-
-MODULE_LICENSE("GPL");
Signature · 1 line
2.8.4
#1 lore raw
Quoted 7 lines · Paul Gortmaker

The Makefile for building this is "acpi-y" 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 is rather heavy handed.

The license info is found at the top of the file, so we just remove the MODULE_LICENSE and the include of module.h

Quoted 6 lines

We add an include of export.h since the file exports some symbols.

Applied, thanks!