Skip to contentSkip to conversation

MODULE_LICENSE removals, second tranche

PATCH Applied Nick Alcock 16 participants 42 messages Feb 17, 2023 – Apr 5, 2023

Subsystems (34)
lore
Share & tools
lore
#0 lore raw

cover MODULE_LICENSE removals, second tranche

This series, based on current modules-next, is part of a treewide cleanup suggested by Luis Chamberlain, to remove the LICENSE_MODULE usage from files/objects that are not tristate. Due to recent changes to kbuild, these uses are now problematic. See the commit logs for more details.

(The commit log prefixes and Cc lists are automatically determined using the script mentioned below. I've eyeballed them, and they seem reasonable:
my apologies if they are not.)

I'll be sending a third 24-patch tranche in a few days if this one doesn't blow up.

(In total, there are 121 patches in this series.)

The series at a whole can be found here:
https://github.com/nickalcock/linux module-license

The patch splitter (not for upstreaming!) used to prepare these commits can be found here:
https://github.com/nickalcock/linux mass-split

Nick Alcock (24):
kbuild, soc: fujitsu: remove MODULE_LICENSE in non-modules kbuild, PCI: remove MODULE_LICENSE in non-modules
kbuild, mfd: altera-sysmgr: remove MODULE_LICENSE in non-modules kbuild, irqchip/al-fic: remove MODULE_LICENSE in non-modules kbuild, cpufreq: amd-pstate: remove MODULE_LICENSE in non-modules kbuild, binder: remove MODULE_LICENSE in non-modules kbuild, bus: arm-integrator-lm: remove MODULE_LICENSE in non-modules kbuild, drivers/perf: remove MODULE_LICENSE in non-modules kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules kbuild, pinctrl: actions: remove MODULE_LICENSE in non-modules kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in
non-modules
kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules kbuild, clk: bm1880: remove MODULE_LICENSE in non-modules kbuild, firmware: imx: remove MODULE_LICENSE in non-modules kbuild, bus: ixp4xx: remove MODULE_LICENSE in non-modules kbuild, irqchip/mvebu-pic: remove MODULE_LICENSE in non-modules kbuild, pinctrl: nuvoton: npcm7xx: remove MODULE_LICENSE in
non-modules
kbuild, bus: qcom: remove MODULE_LICENSE in non-modules kbuild, bus: remove MODULE_LICENSE in non-modules
kbuild, gpio: remove MODULE_LICENSE in non-modules kbuild, serial: remove MODULE_LICENSE in non-modules kbuild, dmaengine: s3c24xx: remove MODULE_LICENSE in non-modules kbuild, EDAC, altera: remove MODULE_LICENSE in non-modules kbuild, power: reset: keystone-reset: remove MODULE_LICENSE in
non-modules

 drivers/amba/tegra-ahb.c                  | 1 -
 drivers/android/binder.c                  | 1 -
 drivers/bus/arm-integrator-lm.c           | 1 -
 drivers/bus/imx-weim.c                    | 1 -
 drivers/bus/intel-ixp4xx-eb.c             | 1 -
 drivers/bus/qcom-ebi2.c                   | 1 -
 drivers/bus/qcom-ssc-block-bus.c          | 1 -
 drivers/clk/clk-bm1880.c                  | 1 -
 drivers/cpufreq/amd-pstate.c              | 1 -
 drivers/dma/s3c24xx-dma.c                 | 1 -
 drivers/edac/altera_edac.c                | 1 -
 drivers/firmware/imx/imx-scu.c            | 1 -
 drivers/firmware/imx/scu-pd.c             | 1 -
 drivers/gpio/gpio-rda.c                   | 1 -
 drivers/irqchip/irq-al-fic.c              | 1 -
 drivers/irqchip/irq-mvebu-pic.c           | 1 -
 drivers/mfd/altera-sysmgr.c               | 1 -
 drivers/pci/hotplug/acpiphp_core.c        | 1 -
 drivers/perf/apple_m1_cpu_pmu.c           | 1 -
 drivers/pinctrl/actions/pinctrl-s500.c    | 1 -
 drivers/pinctrl/actions/pinctrl-s700.c    | 1 -
 drivers/pinctrl/actions/pinctrl-s900.c    | 1 -
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 1 -
 drivers/power/reset/keystone-reset.c      | 1 -
 drivers/soc/apple/apple-pmgr-pwrstate.c   | 1 -
 drivers/soc/fujitsu/a64fx-diag.c          | 1 -
 drivers/soc/sunxi/sunxi_sram.c            | 1 -
 drivers/tty/serial/rda-uart.c             | 1 -
 28 files changed, 28 deletions(-)
Signature · 1 line
2.39.1.268.g9de2f9a303
#1 lore raw

PATCH 1/24 kbuild, soc: fujitsu: remove MODULE_LICENSE in non-modules

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/soc/fujitsu/a64fx-diag.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/fujitsu/a64fx-diag.c +0 -1
index d87f348427bf..524fbfeb94e3 100644
@@ -149,6 +149,5 @@ static struct platform_driver a64fx_diag_driver = {
 
 module_platform_driver(a64fx_diag_driver);
 
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Hitomi Hasegawa <[email protected]>");
 MODULE_DESCRIPTION("A64FX diag driver");
Signature · 1 line
2.39.1.268.g9de2f9a303
#2 lore raw

PATCH 2/24 kbuild, PCI: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/pci/hotplug/acpiphp_core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/hotplug/acpiphp_core.c +0 -1
index 853e04ad272c..c02257f4b61c 100644
@@ -45,7 +45,6 @@ static struct acpiphp_attention_info *attention_info;
 
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
-MODULE_LICENSE("GPL");
 MODULE_PARM_DESC(disable, "disable acpiphp driver");
 module_param_named(disable, acpiphp_disabled, bool, 0444);
 
Signature · 1 line
2.39.1.268.g9de2f9a303
#3 lore raw

Re: [PATCH 02/24] kbuild, PCI: remove MODULE_LICENSE in non-modules

Quoted 10 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Quoted 10 lines

I squashed this one into my pci/kbuild branch for v6.3, thanks!

Quoted 19 lines
---
 drivers/pci/hotplug/acpiphp_core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/hotplug/acpiphp_core.c +0 -1
index 853e04ad272c..c02257f4b61c 100644
@@ -45,7 +45,6 @@ static struct acpiphp_attention_info *attention_info;
 
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
-MODULE_LICENSE("GPL");
 MODULE_PARM_DESC(disable, "disable acpiphp driver");
 module_param_named(disable, acpiphp_disabled, bool, 0444);
 
Signature · 1 line
2.39.1.268.g9de2f9a303
#4 lore raw

PATCH 3/24 kbuild, mfd: altera-sysmgr: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/mfd/altera-sysmgr.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mfd/altera-sysmgr.c +0 -1
index 5d3715a28b28..af205813b281 100644
@@ -198,4 +198,3 @@ module_exit(altr_sysmgr_exit);
 
 MODULE_AUTHOR("Thor Thayer <>");
 MODULE_DESCRIPTION("SOCFPGA System Manager driver");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#5 lore raw

PATCH 4/24 kbuild, irqchip/al-fic: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Talel Shenhar <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
---
 drivers/irqchip/irq-al-fic.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-al-fic.c +0 -1
index 886de028a901..dfb761e86c9c 100644
@@ -26,7 +26,6 @@
 
 MODULE_AUTHOR("Talel Shenhar");
 MODULE_DESCRIPTION("Amazon's Annapurna Labs Interrupt Controller Driver");
-MODULE_LICENSE("GPL v2");
 
 enum al_fic_state {
 	AL_FIC_UNCONFIGURED = 0,
Signature · 1 line
2.39.1.268.g9de2f9a303
#6 lore raw

PATCH 5/24 kbuild, cpufreq: amd-pstate: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/cpufreq/amd-pstate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cpufreq/amd-pstate.c +0 -1
index c17bd845f5fc..adbc7b0921aa 100644
@@ -686,4 +686,3 @@ early_param("amd_pstate", amd_pstate_param);
 
 MODULE_AUTHOR("Huang Rui <[email protected]>");
 MODULE_DESCRIPTION("AMD Processor P-state Frequency Driver");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer Applied
#7 lore raw

Re: [PATCH 05/24] kbuild, cpufreq: amd-pstate: remove MODULE_LICENSE in non-modules

Quoted 30 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/cpufreq/amd-pstate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cpufreq/amd-pstate.c +0 -0
index c17bd845f5fc..adbc7b0921aa 100644

drivers/cpufreq/amd-pstate.c early_param("amd_pstate", amd_pstate_param);

Quoted 5 lines
drivers/cpufreq/amd-pstate.c +0 -2
@@ -686,4 +686,3 @@ early_param("amd_pstate", amd_pstate_param);
 
 MODULE_AUTHOR("Huang Rui <[email protected]>");
 MODULE_DESCRIPTION("AMD Processor P-state Frequency Driver");
-MODULE_LICENSE("GPL");
--

Applied as 6.3-rc material, thanks!

#8 lore raw

PATCH 6/24 kbuild, binder: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Arve Hjønnevåg" <[email protected]>
Cc Todd Kjos <[email protected]>
Cc Martijn Coenen <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Carlos Llamas <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
---
 drivers/android/binder.c | 1 -
 1 file changed, 1 deletion(-)
drivers/android/binder.c +0 -1
index 880224ec6abb..e36164108da6 100644
@@ -6597,4 +6597,3 @@ device_initcall(binder_init);
 #define CREATE_TRACE_POINTS
 #include "binder_trace.h"
 
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer Acked-by on v1 6/24
#9 lore raw

Re: [PATCH 06/24] kbuild, binder: remove MODULE_LICENSE in non-modules

Quoted 40 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Arve Hjønnevåg" <[email protected]>
Cc Todd Kjos <[email protected]>
Cc Martijn Coenen <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Carlos Llamas <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
---
 drivers/android/binder.c | 1 -
 1 file changed, 1 deletion(-)
drivers/android/binder.c +0 -1
index 880224ec6abb..e36164108da6 100644
@@ -6597,4 +6597,3 @@ device_initcall(binder_init);
 #define CREATE_TRACE_POINTS
 #include "binder_trace.h"
 
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303

Thanks

#10 lore raw

PATCH 7/24 kbuild, bus: arm-integrator-lm: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/bus/arm-integrator-lm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/arm-integrator-lm.c +0 -1
index 2344d560b144..b715c8ab36e8 100644
@@ -126,4 +126,3 @@ static struct platform_driver integrator_ap_lm_driver = {
 module_platform_driver(integrator_ap_lm_driver);
 MODULE_AUTHOR("Linus Walleij <[email protected]>");
 MODULE_DESCRIPTION("Integrator AP Logical Module driver");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#11 lore raw

PATCH 8/24 kbuild, drivers/perf: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/perf/apple_m1_cpu_pmu.c | 1 -
 1 file changed, 1 deletion(-)
drivers/perf/apple_m1_cpu_pmu.c +0 -1
index 979a7c2b4f56..7123beeb992f 100644
@@ -581,4 +581,3 @@ static struct platform_driver m1_pmu_driver = {
 };
 
 module_platform_driver(m1_pmu_driver);
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#12 lore raw

PATCH 9/24 kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/amba/tegra-ahb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/amba/tegra-ahb.c +0 -1
index 0b2c20fddb7c..c0e8b765522d 100644
@@ -285,5 +285,4 @@ module_platform_driver(tegra_ahb_driver);
 
 MODULE_AUTHOR("Hiroshi DOYU <[email protected]>");
 MODULE_DESCRIPTION("Tegra AHB driver");
-MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:" DRV_NAME);
Signature · 1 line
2.39.1.268.g9de2f9a303
#13 lore raw

Re: (subset) [PATCH 09/24] kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules

From: Thierry Reding <[email protected]>

Quoted 8 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

[...]

Applied, thanks!

[09/24] kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules
(no commit info)

Best regards,

Signature · 1 line
Thierry Reding <[email protected]>
#14 lore raw

PATCH 10/24 kbuild, pinctrl: actions: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/pinctrl/actions/pinctrl-s500.c | 1 -
 drivers/pinctrl/actions/pinctrl-s700.c | 1 -
 drivers/pinctrl/actions/pinctrl-s900.c | 1 -
 3 files changed, 3 deletions(-)
drivers/pinctrl/actions/pinctrl-s500.c +0 -1
index ced778079b76..3bed4b8d08e6 100644
@@ -1724,4 +1724,3 @@ module_exit(s500_pinctrl_exit);
 MODULE_AUTHOR("Actions Semi Inc.");
 MODULE_AUTHOR("Cristian Ciocaltea <[email protected]>");
 MODULE_DESCRIPTION("Actions Semi S500 SoC Pinctrl Driver");
-MODULE_LICENSE("GPL");
drivers/pinctrl/actions/pinctrl-s700.c +0 -1
index fd00940a5799..c2b472660e53 100644
@@ -1908,4 +1908,3 @@ module_exit(s700_pinctrl_exit);
 
 MODULE_AUTHOR("Actions Semi Inc.");
 MODULE_DESCRIPTION("Actions Semi S700 Soc Pinctrl Driver");
-MODULE_LICENSE("GPL");
drivers/pinctrl/actions/pinctrl-s900.c +0 -1
index 811249a8011e..8638d3007cd9 100644
@@ -1827,4 +1827,3 @@ module_exit(s900_pinctrl_exit);
 MODULE_AUTHOR("Actions Semi Inc.");
 MODULE_AUTHOR("Manivannan Sadhasivam <[email protected]>");
 MODULE_DESCRIPTION("Actions Semi S900 SoC Pinctrl Driver");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
#15 lore raw

PATCH 11/24 kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/soc/apple/apple-pmgr-pwrstate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/apple/apple-pmgr-pwrstate.c +0 -1
index e1122288409a..2c15474c7b53 100644
@@ -319,6 +319,5 @@ static struct platform_driver apple_pmgr_ps_driver = {
 
 MODULE_AUTHOR("Hector Martin <[email protected]>");
 MODULE_DESCRIPTION("PMGR power state driver for Apple SoCs");
-MODULE_LICENSE("GPL v2");
 
 module_platform_driver(apple_pmgr_ps_driver);
Signature · 1 line
2.39.1.268.g9de2f9a303
Acked-by on v1 11/24
#16 lore raw

Re: [PATCH 11/24] kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in non-modules

Quoted 21 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Quoted 1 line

---

Sven

Quoted 18 lines
 drivers/soc/apple/apple-pmgr-pwrstate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/apple/apple-pmgr-pwrstate.c +0 -1
index e1122288409a..2c15474c7b53 100644
@@ -319,6 +319,5 @@ static struct platform_driver apple_pmgr_ps_driver 
 = {
 
 MODULE_AUTHOR("Hector Martin <[email protected]>");
 MODULE_DESCRIPTION("PMGR power state driver for Apple SoCs");
-MODULE_LICENSE("GPL v2");
 

module_platform_driver(apple_pmgr_ps_driver);

Signature · 1 line
2.39.1.268.g9de2f9a303
Reviewed-by on v1 11/24
#17 lore raw

Re: [PATCH 11/24] kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock
Quoted 22 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Quoted 1 line

---

Is mise le meas/Regards,

Eric Curtin

Quoted 18 lines
 drivers/soc/apple/apple-pmgr-pwrstate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/apple/apple-pmgr-pwrstate.c +0 -2
index e1122288409a..2c15474c7b53 100644
@@ -319,6 +319,5 @@ static struct platform_driver apple_pmgr_ps_driver = {
 
 MODULE_AUTHOR("Hector Martin <[email protected]>");
 MODULE_DESCRIPTION("PMGR power state driver for Apple SoCs");
-MODULE_LICENSE("GPL v2");
 
 module_platform_driver(apple_pmgr_ps_driver);
--

2.39.1.268.g9de2f9a303

#18 lore raw

PATCH 12/24 kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/soc/sunxi/sunxi_sram.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/sunxi/sunxi_sram.c +0 -1
index 92f9186c1c42..21116d47d26d 100644
@@ -421,4 +421,3 @@ builtin_platform_driver_probe(sunxi_sram_driver, sunxi_sram_probe);
 
 MODULE_AUTHOR("Maxime Ripard <[email protected]>");
 MODULE_DESCRIPTION("Allwinner sunXi SRAM Controller Driver");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer Acked-by on v1 12/24
#19 lore raw

Re: [PATCH 12/24] kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules

Dne petek, 17. februar 2023 ob 15:10:47 CET je Nick Alcock napisal(a):

Quoted 10 lines

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Quoted 11 lines

Best regards,
Jernej

maintainer Applied
#20 lore raw

Re: [PATCH 12/24] kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Dne petek, 17. februar 2023 ob 15:10:47 CET je Nick Alcock napisal(a):

Quoted 10 lines

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Quoted 11 lines

Applied, thanks!

Best regards,
Jernej

Quoted 14 lines
---
 drivers/soc/sunxi/sunxi_sram.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/sunxi/sunxi_sram.c +0 -1
index 92f9186c1c42..21116d47d26d 100644
@@ -421,4 +421,3 @@ builtin_platform_driver_probe(sunxi_sram_driver,
 sunxi_sram_probe);
 
 MODULE_AUTHOR("Maxime Ripard <[email protected]>");
 MODULE_DESCRIPTION("Allwinner sunXi SRAM Controller Driver");
-MODULE_LICENSE("GPL");
#21 lore raw

PATCH 13/24 kbuild, clk: bm1880: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/clk/clk-bm1880.c | 1 -
 1 file changed, 1 deletion(-)
drivers/clk/clk-bm1880.c +0 -1
index fad78a22218e..2a19e50fff68 100644
@@ -949,4 +949,3 @@ module_platform_driver(bm1880_clk_driver);
 
 MODULE_AUTHOR("Manivannan Sadhasivam <[email protected]>");
 MODULE_DESCRIPTION("Clock driver for Bitmain BM1880 SoC");
-MODULE_LICENSE("GPL v2");
Signature · 7 lines
2.39.1.268.g9de2f9a303


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Acked-by on v1 13/24
#22 lore raw

Re: [PATCH 13/24] kbuild, clk: bm1880: remove MODULE_LICENSE in non-modules

Quoting Nick Alcock (2023-02-17 06:10:48)

Quoted 21 lines

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Quoted 1 line

---

#23 lore raw

PATCH 14/24 kbuild, firmware: imx: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/bus/imx-weim.c         | 1 -
 drivers/firmware/imx/imx-scu.c | 1 -
 drivers/firmware/imx/scu-pd.c  | 1 -
 3 files changed, 3 deletions(-)
drivers/bus/imx-weim.c +0 -1
index 828c66bbaa67..a3a99299ad15 100644
@@ -405,4 +405,3 @@ module_exit(weim_exit);
 
 MODULE_AUTHOR("Freescale Semiconductor Inc.");
 MODULE_DESCRIPTION("i.MX EIM Controller Driver");
-MODULE_LICENSE("GPL");
drivers/firmware/imx/imx-scu.c +0 -1
index dca79caccd01..886bbc81e0b4 100644
@@ -358,4 +358,3 @@ builtin_platform_driver(imx_scu_driver);
 
 MODULE_AUTHOR("Dong Aisheng <[email protected]>");
 MODULE_DESCRIPTION("IMX SCU firmware protocol driver");
-MODULE_LICENSE("GPL v2");
drivers/firmware/imx/scu-pd.c +0 -1
index 2a4f07423365..7e8810bdfe0e 100644
@@ -421,4 +421,3 @@ builtin_platform_driver(imx_sc_pd_driver);
 
 MODULE_AUTHOR("Dong Aisheng <[email protected]>");
 MODULE_DESCRIPTION("IMX SCU Power Domain driver");
-MODULE_LICENSE("GPL v2");
Signature · 7 lines
2.39.1.268.g9de2f9a303


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#24 lore raw

Re: [PATCH 14/24] kbuild, firmware: imx: remove MODULE_LICENSE in non-modules

Quoted 7 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

Quoted 5 lines

So remove it in the files in this commit, none of which can be built as modules.

Should I apply it as a fix for 6.3-rc with Cc stable tag, or can it be a material for -next?

Shawn

#25 lore raw

Re: [PATCH 14/24] kbuild, firmware: imx: remove MODULE_LICENSE in non-modules

On 14 Mar 2023, Shawn Guo verbalised:

Quoted 8 lines · Nick Alcock
Quoted 7 lines

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

Quoted 8 lines
Quoted 5 lines

So remove it in the files in this commit, none of which can be built as modules.

Should I apply it as a fix for 6.3-rc with Cc stable tag, or can it be a material for -next?

This is currently built against -next, but Luis has indicated an intent to pull the lot in via -rc3 (hence my scrambling to get the series polished up for him, tags attached etc now). So, er... yes? :)

Signature · 6 lines
NULL && (void)

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#26 lore raw

Re: [PATCH 14/24] kbuild, firmware: imx: remove MODULE_LICENSE in non-modules

Quoted 18 lines · Nick Alcock

On 14 Mar 2023, Shawn Guo verbalised:

Quoted 16 lines · Nick Alcock
Quoted 7 lines

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

Quoted 5 lines

So remove it in the files in this commit, none of which can be built as modules.

Should I apply it as a fix for 6.3-rc with Cc stable tag, or can it be a material for -next?

These are not stable critical patches.

Quoted 3 lines

This is currently built against -next, but Luis has indicated an intent to pull the lot in via -rc3 (hence my scrambling to get the series polished up for him, tags attached etc now). So, er... yes? :)

Those patches which don't get this simply can't benefit from future tooling enhancements which Nick is working on which will leverage correct mapping.

So yes, my goal is to pull up straggler patches except where some maintainer explicitly don't want them. For instance, I will not be taking in the patches for trees that Greg KH maintains as he would prefer an alternative, but yet hasn't recommended an alternative strategy to help with Nick's work.

Luis

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#27 lore raw

PATCH 15/24 kbuild, bus: ixp4xx: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/bus/intel-ixp4xx-eb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/intel-ixp4xx-eb.c +0 -1
index 91db001eb69a..f5ba6bee6fd8 100644
@@ -423,4 +423,3 @@ static struct platform_driver ixp4xx_exp_driver = {
 module_platform_driver(ixp4xx_exp_driver);
 MODULE_AUTHOR("Linus Walleij <[email protected]>");
 MODULE_DESCRIPTION("Intel IXP4xx external bus driver");
-MODULE_LICENSE("GPL");
Signature · 7 lines
2.39.1.268.g9de2f9a303


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#28 lore raw

PATCH 16/24 kbuild, irqchip/mvebu-pic: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Gregory Clement <[email protected]>
Cc Sebastian Hesselbarth <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
---
 drivers/irqchip/irq-mvebu-pic.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-mvebu-pic.c +0 -1
index ef3d3646ccc2..37ea3fb6e928 100644
@@ -195,6 +195,5 @@ module_platform_driver(mvebu_pic_driver);
 
 MODULE_AUTHOR("Yehuda Yitschak <[email protected]>");
 MODULE_AUTHOR("Thomas Petazzoni <[email protected]>");
-MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:mvebu_pic");
 
Signature · 7 lines
2.39.1.268.g9de2f9a303


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#29 lore raw

PATCH 17/24 kbuild, pinctrl: nuvoton: npcm7xx: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c +0 -1
index ff5bcea172e8..4e12b3768d65 100644
@@ -2046,7 +2046,6 @@ static int __init npcm7xx_pinctrl_register(void)
 }
 arch_initcall(npcm7xx_pinctrl_register);
 
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("[email protected]");
 MODULE_AUTHOR("[email protected]");
 MODULE_DESCRIPTION("Nuvoton NPCM7XX Pinctrl and GPIO driver");
Signature · 1 line
2.39.1.268.g9de2f9a303
#30 lore raw

PATCH 18/24 kbuild, bus: qcom: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/bus/qcom-ebi2.c | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/qcom-ebi2.c +0 -1
index 663c82749222..c1fef1b4bd89 100644
@@ -403,4 +403,3 @@ static struct platform_driver qcom_ebi2_driver = {
 module_platform_driver(qcom_ebi2_driver);
 MODULE_AUTHOR("Linus Walleij <[email protected]>");
 MODULE_DESCRIPTION("Qualcomm EBI2 driver");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
#31 lore raw

PATCH 19/24 kbuild, bus: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/bus/qcom-ssc-block-bus.c | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/qcom-ssc-block-bus.c +0 -1
index eedeb29a5ff3..3fef18a43c01 100644
@@ -386,4 +386,3 @@ module_platform_driver(qcom_ssc_block_bus_driver);
 
 MODULE_DESCRIPTION("A driver for handling the init sequence needed for accessing the SSC block on (some) qcom SoCs over AHB");
 MODULE_AUTHOR("Michael Srba <[email protected]>");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#32 lore raw

PATCH 20/24 kbuild, gpio: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/gpio/gpio-rda.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/gpio-rda.c +0 -1
index 62ba18b3a602..ab4137de5889 100644
@@ -286,4 +286,3 @@ module_platform_driver_probe(rda_gpio_driver, rda_gpio_probe);
 
 MODULE_DESCRIPTION("RDA Micro GPIO driver");
 MODULE_AUTHOR("Manivannan Sadhasivam <[email protected]>");
-MODULE_LICENSE("GPL v2");
Signature · 7 lines
2.39.1.268.g9de2f9a303


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#33 lore raw

Re: [PATCH 20/24] kbuild, gpio: remove MODULE_LICENSE in non-modules

Quoted 11 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

Applied, thanks!

Bart

#34 lore raw

PATCH 21/24 kbuild, serial: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/tty/serial/rda-uart.c | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/rda-uart.c +0 -1
index be5c842b5ba9..c3b29d124759 100644
@@ -825,4 +825,3 @@ module_exit(rda_uart_exit);
 
 MODULE_AUTHOR("Manivannan Sadhasivam <[email protected]>");
 MODULE_DESCRIPTION("RDA8810PL serial device driver");
-MODULE_LICENSE("GPL");
Signature · 7 lines
2.39.1.268.g9de2f9a303


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#35 lore raw

Re: [PATCH 21/24] kbuild, serial: remove MODULE_LICENSE in non-modules

Quoted 31 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/tty/serial/rda-uart.c | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/rda-uart.c +0 -0
index be5c842b5ba9..c3b29d124759 100644

drivers/tty/serial/rda-uart.c module_exit(rda_uart_exit); · line 828

Quoted 4 lines
drivers/tty/serial/rda-uart.c +0 -1
@@ -825,4 +825,3 @@ module_exit(rda_uart_exit);
 
 MODULE_AUTHOR("Manivannan Sadhasivam <[email protected]>");
 MODULE_DESCRIPTION("RDA8810PL serial device driver");
-MODULE_LICENSE("GPL");

No, this should be fine, either force remove all MODULE_* macros from built-in code, or none.

thanks,

greg k-h

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#36 lore raw

PATCH 22/24 kbuild, dmaengine: s3c24xx: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/dma/s3c24xx-dma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/dma/s3c24xx-dma.c +0 -1
index a09eeb545f7d..48965baa2fa1 100644
@@ -1425,4 +1425,3 @@ EXPORT_SYMBOL(s3c24xx_dma_filter);
 
 MODULE_DESCRIPTION("S3C24XX DMA Driver");
 MODULE_AUTHOR("Heiko Stuebner");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#37 lore raw

Re: [PATCH 22/24] kbuild, dmaengine: s3c24xx: remove MODULE_LICENSE in non-modules

Quoted 9 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

I think you need to base your tree-wide patches on next. The driver was removed. Please drop the patch.

Best regards,
Krzysztof

#38 lore raw

PATCH 23/24 kbuild, EDAC, altera: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/edac/altera_edac.c | 1 -
 1 file changed, 1 deletion(-)
drivers/edac/altera_edac.c +0 -1
index e7e8e624a436..ba325d4c5e83 100644
@@ -2226,6 +2226,5 @@ static struct platform_driver altr_edac_a10_driver = {
 };
 module_platform_driver(altr_edac_a10_driver);
 
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Thor Thayer");
 MODULE_DESCRIPTION("EDAC Driver for Altera Memories");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer Applied
#39 lore raw

Re: [PATCH 23/24] kbuild, EDAC, altera: remove MODULE_LICENSE in non-modules

Quoted 30 lines · Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/edac/altera_edac.c | 1 -
 1 file changed, 1 deletion(-)
drivers/edac/altera_edac.c +0 -0
index e7e8e624a436..ba325d4c5e83 100644

drivers/edac/altera_edac.c static struct platform_driver altr_edac_a10_driver = { · line 2230

Quoted 6 lines
drivers/edac/altera_edac.c +0 -1
@@ -2226,6 +2226,5 @@ static struct platform_driver altr_edac_a10_driver = {
 };
 module_platform_driver(altr_edac_a10_driver);
 
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Thor Thayer");
 MODULE_DESCRIPTION("EDAC Driver for Altera Memories");

Applied, thanks.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
#40 lore raw

PATCH 24/24 kbuild, power: reset: keystone-reset: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as modules.

---
 drivers/power/reset/keystone-reset.c | 1 -
 1 file changed, 1 deletion(-)
drivers/power/reset/keystone-reset.c +0 -1
index c720112db704..83a4e1c9bf94 100644
@@ -169,5 +169,4 @@ module_platform_driver(rsctrl_driver);
 
 MODULE_AUTHOR("Ivan Khoronzhuk <[email protected]>");
 MODULE_DESCRIPTION("Texas Instruments keystone reset driver");
-MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:" KBUILD_MODNAME);
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer
#41 lore raw
In reply to Nick Alcock
Quoted 10 lines · Nick Alcock

This series, based on current modules-next, is part of a treewide cleanup suggested by Luis Chamberlain, to remove the LICENSE_MODULE usage from files/objects that are not tristate. Due to recent changes to kbuild, these uses are now problematic. See the commit logs for more details.

(The commit log prefixes and Cc lists are automatically determined using the script mentioned below. I've eyeballed them, and they seem reasonable:
my apologies if they are not.)

[...]

Applied drivers/perf patch to will (for-next/perf), thanks!

[08/24] kbuild, drivers/perf: remove MODULE_LICENSE in non-modules

        https://git.kernel.org/will/c/a64021d3726a

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev