Skip to contentSkip to conversation

hwspinlock: remove MODULE_LICENSE in non-modules

PATCH Applied Nick Alcock 18 participants 69 messages Feb 24, 2023 – Mar 22, 2023 1 message not in the archive

Subsystems (38)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/27 gpio: 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/gpio/gpio-imx-scu.c | 1 -
 drivers/gpio/gpio-mxs.c     | 1 -
 2 files changed, 2 deletions(-)
drivers/gpio/gpio-imx-scu.c +0 -1
index 17be21b8f3b7..e190bde5397d 100644
@@ -136,4 +136,3 @@ subsys_initcall_sync(_imx_scu_gpio_init);
 
 MODULE_AUTHOR("Shenwei Wang <[email protected]>");
 MODULE_DESCRIPTION("NXP GPIO over IMX SCU API");
-MODULE_LICENSE("GPL");
drivers/gpio/gpio-mxs.c +0 -1
index 7f59e5d936c2..390e619a2831 100644
@@ -364,4 +364,3 @@ MODULE_AUTHOR("Freescale Semiconductor, "
 	      "Daniel Mack <danielncaiaq.de>, "
 	      "Juergen Beisert <[email protected]>");
 MODULE_DESCRIPTION("Freescale MXS GPIO");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
#2 lore raw

Re: [PATCH 01/27] gpio: remove MODULE_LICENSE in non-modules

Quoted 23 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

---

Applied, thanks!

Bart

#3 lore raw

PATCH 2/27 hwspinlock: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/hwspinlock/hwspinlock_core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hwspinlock/hwspinlock_core.c +0 -1
index fd5f5c5a5244..5048e95c1413 100644
@@ -949,6 +949,5 @@ struct hwspinlock *devm_hwspin_lock_request_specific(struct device *dev,
 }
 EXPORT_SYMBOL_GPL(devm_hwspin_lock_request_specific);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("Hardware spinlock interface");
 MODULE_AUTHOR("Ohad Ben-Cohen <[email protected]>");
Signature · 1 line
2.39.1.268.g9de2f9a303
#4 lore raw

PATCH 3/27 fbdev: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/video/fbdev/imsttfb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/imsttfb.c +0 -1
index bea45647184e..dbfaac0b14a8 100644
@@ -1636,7 +1636,6 @@ static void __exit imsttfb_exit(void)
 	pci_unregister_driver(&imsttfb_pci_driver);
 }
 
-MODULE_LICENSE("GPL");
 
 module_init(imsttfb_init);
 module_exit(imsttfb_exit);
Signature · 1 line
2.39.1.268.g9de2f9a303
#5 lore raw

PATCH 4/27 mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/intel_soc_pmic_crc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mfd/intel_soc_pmic_crc.c +0 -1
index b1548a933dc3..b745ace46e5b 100644
@@ -271,6 +271,5 @@ static struct i2c_driver crystal_cove_i2c_driver = {
 module_i2c_driver(crystal_cove_i2c_driver);
 
 MODULE_DESCRIPTION("I2C driver for Intel SoC PMIC");
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Yang, Bin <[email protected]>");
 MODULE_AUTHOR("Zhu, Lejun <[email protected]>");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer Reviewed-by on v1 4/27
#6 lore raw

Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules

Quoted 13 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 6 lines
Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Lee Jones <[email protected]>

Please, use --cc parameter instead of polluting commit message.

With this addressed,

Quoted 11 lines
drivers/mfd/intel_soc_pmic_crc.c +0 -1
index b1548a933dc3..b745ace46e5b 100644
@@ -271,6 +271,5 @@ static struct i2c_driver crystal_cove_i2c_driver = {
 module_i2c_driver(crystal_cove_i2c_driver);
 
 MODULE_DESCRIPTION("I2C driver for Intel SoC PMIC");
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Yang, Bin <[email protected]>");
 MODULE_AUTHOR("Zhu, Lejun <[email protected]>");
Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#7 lore raw

Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules

Quoted 14 lines · Andy Shevchenko
Quoted 12 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 8 lines
Quoted 6 lines
Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Lee Jones <[email protected]>

Please, use --cc parameter instead of polluting commit message.

I personally use this a lot. It's better for scripting.

It's okay, I will remove this when applying.

Quoted 20 lines

With this addressed,

Quoted 11 lines
drivers/mfd/intel_soc_pmic_crc.c +0 -1
index b1548a933dc3..b745ace46e5b 100644
@@ -271,6 +271,5 @@ static struct i2c_driver crystal_cove_i2c_driver = {
 module_i2c_driver(crystal_cove_i2c_driver);
 
 MODULE_DESCRIPTION("I2C driver for Intel SoC PMIC");
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Yang, Bin <[email protected]>");
 MODULE_AUTHOR("Zhu, Lejun <[email protected]>");
Signature · 2 lines
With Best Regards,
Andy Shevchenko
Signature · 1 line
Lee Jones [李琼斯]
#8 lore raw

Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules

On 3 Mar 2023, Lee Jones spake thusly:

Quoted 23 lines · Andy Shevchenko
Quoted 22 lines · Nick Alcock
Quoted 19 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.

Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Lee Jones <[email protected]>
Quoted 3 lines
Quoted 1 line

Please, use --cc parameter instead of polluting commit message.

I personally use this a lot. It's better for scripting.

Yeah.

If this is generally annoying I guess I can rejig things to use --cc-cmd instead, somehow, but it was very convenient because it meant the machinery which split up the commits could also compute the Cc list at the same time without having to record it separately, but I assumed it was routinely done from the number of Cc: trailers already in the kernel tree...

maintainer
#9 lore raw

Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules

Quoted 1 line · Nick Alcock

On 3 Mar 2023, Lee Jones spake thusly:

...

Quoted 6 lines

If this is generally annoying I guess I can rejig things to use --cc-cmd instead, somehow, but it was very convenient because it meant the machinery which split up the commits could also compute the Cc list at the same time without having to record it separately, but I assumed it was routinely done from the number of Cc: trailers already in the kernel tree...

For myself I have created a "smart" script [1], which I use on daily basis. Feel free to take it, use it, give a feedback, etc.

[1]: https://github.com/andy-shev/home-bin-tools/blob/master/ge2maintainer.sh

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer Applied
#10 lore raw

Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock
Quoted 18 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 3 lines
---
 drivers/mfd/intel_soc_pmic_crc.c | 1 -
 1 file changed, 1 deletion(-)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]
#11 lore raw

PATCH 5/27 cpufreq: intel_pstate: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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 Srinivas Pandruvada <[email protected]>
Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Viresh Kumar <[email protected]>
---
 drivers/cpufreq/intel_pstate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cpufreq/intel_pstate.c +0 -1
index fd73d6d2b808..0f3e1a1aab4c 100644
@@ -3530,4 +3530,3 @@ early_param("intel_pstate", intel_pstate_setup);
 
 MODULE_AUTHOR("Dirk Brandewie <[email protected]>");
 MODULE_DESCRIPTION("'intel_pstate' - P state driver Intel Core processors");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer Applied
#12 lore raw

Re: [PATCH 05/27] cpufreq: intel_pstate: 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.

Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Srinivas Pandruvada <[email protected]>
Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Viresh Kumar <[email protected]>
---
 drivers/cpufreq/intel_pstate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cpufreq/intel_pstate.c +0 -0
index fd73d6d2b808..0f3e1a1aab4c 100644

drivers/cpufreq/intel_pstate.c early_param("intel_pstate", intel_pstate_setup);

Quoted 5 lines
drivers/cpufreq/intel_pstate.c +0 -2
@@ -3530,4 +3530,3 @@ early_param("intel_pstate", intel_pstate_setup);
 
 MODULE_AUTHOR("Dirk Brandewie <[email protected]>");
 MODULE_DESCRIPTION("'intel_pstate' - P state driver Intel Core processors");
-MODULE_LICENSE("GPL");
--

Applied as 6.3-rc material, thanks!

#13 lore raw

PATCH 6/27 interconnect: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/interconnect/core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/interconnect/core.c +0 -1
index 25debded65a8..de61a639fab4 100644
@@ -1146,4 +1146,3 @@ device_initcall(icc_init);
 
 MODULE_AUTHOR("Georgi Djakov <[email protected]>");
 MODULE_DESCRIPTION("Interconnect Driver Core");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer
#14 lore raw

Re: [PATCH 06/27] interconnect: remove MODULE_LICENSE in non-modules

Hi Nick,

Thanks for the patch!

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 that it might be better to remove not just the MODULE_LICENCE, but also the other module related code in this file.

Thanks,
Georgi

Quoted 22 lines
---
  drivers/interconnect/core.c | 1 -
  1 file changed, 1 deletion(-)
drivers/interconnect/core.c +0 -1
index 25debded65a8..de61a639fab4 100644
@@ -1146,4 +1146,3 @@ device_initcall(icc_init);
 
  MODULE_AUTHOR("Georgi Djakov <[email protected]>");
  MODULE_DESCRIPTION("Interconnect Driver Core");
-MODULE_LICENSE("GPL v2");
#15 lore raw

PATCH 7/27 iommu/sun50i: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/iommu/sun50i-iommu.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iommu/sun50i-iommu.c +0 -1
index 5b585eace3d4..63ac9d15b859 100644
@@ -1077,4 +1077,3 @@ builtin_platform_driver_probe(sun50i_iommu_driver, sun50i_iommu_probe);
 MODULE_DESCRIPTION("Allwinner H6 IOMMU driver");
 MODULE_AUTHOR("Maxime Ripard <[email protected]>");
 MODULE_AUTHOR("zhuxianbin <[email protected]>");
-MODULE_LICENSE("Dual BSD/GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer Acked-by on v1 7/27
#16 lore raw

Re: [PATCH 07/27] iommu/sun50i: remove MODULE_LICENSE in non-modules

Dne petek, 24. februar 2023 ob 16:07:51 CET je Nick Alcock napisal(a):

Quoted 34 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.

---
 drivers/iommu/sun50i-iommu.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iommu/sun50i-iommu.c +0 -0
index 5b585eace3d4..63ac9d15b859 100644

drivers/iommu/sun50i-iommu.c builtin_platform_driver_probe(sun50i_iommu_driver, · line 1080

Quoted 4 lines
drivers/iommu/sun50i-iommu.c +0 -1
@@ -1077,4 +1077,3 @@ builtin_platform_driver_probe(sun50i_iommu_driver,
 sun50i_iommu_probe); MODULE_DESCRIPTION("Allwinner H6 IOMMU driver");
 MODULE_AUTHOR("Maxime Ripard <[email protected]>");
 MODULE_AUTHOR("zhuxianbin <[email protected]>");
-MODULE_LICENSE("Dual BSD/GPL");

Best regards,
Jernej

maintainer Applied
#17 lore raw

Re: [PATCH 07/27] iommu/sun50i: remove MODULE_LICENSE in non-modules

In reply to Nick Alcock
Quoted 2 lines · Nick Alcock
 drivers/iommu/sun50i-iommu.c | 1 -
 1 file changed, 1 deletion(-)

Applied, thanks.

#18 lore raw

PATCH 8/27 irqchip: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/irqchip/irq-ls-scfg-msi.c         | 1 -
 drivers/irqchip/irq-mbigen.c              | 1 -
 drivers/irqchip/irq-renesas-intc-irqpin.c | 1 -
 drivers/irqchip/irq-renesas-irqc.c        | 1 -
 drivers/irqchip/irq-renesas-rza1.c        | 1 -
 5 files changed, 5 deletions(-)
drivers/irqchip/irq-ls-scfg-msi.c +0 -1
index 527c90e0920e..f5ba3f9f8415 100644
@@ -430,4 +430,3 @@ module_platform_driver(ls_scfg_msi_driver);
 
 MODULE_AUTHOR("Minghuan Lian <[email protected]>");
 MODULE_DESCRIPTION("Freescale Layerscape SCFG MSI controller driver");
-MODULE_LICENSE("GPL v2");
drivers/irqchip/irq-mbigen.c +0 -1
index f3faf5c99770..d6763ea9f310 100644
@@ -389,5 +389,4 @@ module_platform_driver(mbigen_platform_driver);
 
 MODULE_AUTHOR("Jun Ma <[email protected]>");
 MODULE_AUTHOR("Yun Wu <[email protected]>");
-MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("HiSilicon MBI Generator driver");
drivers/irqchip/irq-renesas-intc-irqpin.c +0 -1
index e83756aca14e..26e4c17a7bf2 100644
@@ -608,4 +608,3 @@ module_exit(intc_irqpin_exit);
 
 MODULE_AUTHOR("Magnus Damm");
 MODULE_DESCRIPTION("Renesas INTC External IRQ Pin Driver");
-MODULE_LICENSE("GPL v2");
drivers/irqchip/irq-renesas-irqc.c +0 -1
index 1ee5e9941f67..49b446b396f9 100644
@@ -270,4 +270,3 @@ module_exit(irqc_exit);
 
 MODULE_AUTHOR("Magnus Damm");
 MODULE_DESCRIPTION("Renesas IRQC Driver");
-MODULE_LICENSE("GPL v2");
drivers/irqchip/irq-renesas-rza1.c +0 -1
index 72c06e883d1c..e4c99c2e0373 100644
@@ -281,4 +281,3 @@ module_exit(rza1_irqc_exit);
 
 MODULE_AUTHOR("Geert Uytterhoeven <[email protected]>");
 MODULE_DESCRIPTION("Renesas RZ/A1 IRQC Driver");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#19 lore raw

PATCH 9/27 irqchip: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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 Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 drivers/irqchip/irq-renesas-rzg2l.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-renesas-rzg2l.c +0 -1
index 25fd8ee66565..4bbfa2b0a4df 100644
@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init)
 IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc)
 MODULE_AUTHOR("Lad Prabhakar <[email protected]>");
 MODULE_DESCRIPTION("Renesas RZ/G2L IRQC Driver");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
#20 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

Quoted 29 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 Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 drivers/irqchip/irq-renesas-rzg2l.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-renesas-rzg2l.c +0 -0
index 25fd8ee66565..4bbfa2b0a4df 100644

drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393

Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0 -1
@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init)
 IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc)
 MODULE_AUTHOR("Lad Prabhakar <[email protected]>");
 MODULE_DESCRIPTION("Renesas RZ/G2L IRQC Driver");
-MODULE_LICENSE("GPL");

I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.

It also means that once a random driver gets enabled as a module, it won't load because it is now missing a MODULE_LICENSE() annotation.

It feels like MODULE_LICENSE should instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?

I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").

Thanks,

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
#21 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

Quoted 43 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 drivers/irqchip/irq-renesas-rzg2l.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-renesas-rzg2l.c +0 -0
index 25fd8ee66565..4bbfa2b0a4df 100644

drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393

Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0 -1
@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init)
 IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc)
 MODULE_AUTHOR("Lad Prabhakar <[email protected]>");
 MODULE_DESCRIPTION("Renesas RZ/G2L IRQC Driver");
-MODULE_LICENSE("GPL");

I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.

It also means that once a random driver gets enabled as a module, it won't load because it is now missing a MODULE_LICENSE() annotation.

Quoted 8 lines

It feels like MODULE_LICENSE should instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?

I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").

The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.

Luis

#22 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

Quoted 49 lines · Luis Chamberlain
Quoted 47 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 drivers/irqchip/irq-renesas-rzg2l.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-renesas-rzg2l.c +0 -0
index 25fd8ee66565..4bbfa2b0a4df 100644

drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393

Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0 -1
@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init)
 IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc)
 MODULE_AUTHOR("Lad Prabhakar <[email protected]>");
 MODULE_DESCRIPTION("Renesas RZ/G2L IRQC Driver");
-MODULE_LICENSE("GPL");

I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.

It also means that once a random driver gets enabled as a module, it won't load because it is now missing a MODULE_LICENSE() annotation.

It feels like MODULE_LICENSE should instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?

Quoted 8 lines
Quoted 4 lines

I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").

The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.

I understand that you want to remove it. I don't get why this is the right solution. Can you please assume that, in this particular instance, I am a complete idiot and spell it out for me?

Why isn't that a problem for modules that are compiled-in?

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
#23 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

Quoted 60 lines · Marc Zyngier
Quoted 49 lines · Luis Chamberlain
Quoted 47 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 drivers/irqchip/irq-renesas-rzg2l.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-renesas-rzg2l.c +0 -0
index 25fd8ee66565..4bbfa2b0a4df 100644

drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393

Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0 -1
@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init)
 IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc)
 MODULE_AUTHOR("Lad Prabhakar <[email protected]>");
 MODULE_DESCRIPTION("Renesas RZ/G2L IRQC Driver");
-MODULE_LICENSE("GPL");

I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.

It also means that once a random driver gets enabled as a module, it won't load because it is now missing a MODULE_LICENSE() annotation.

It feels like MODULE_LICENSE should instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?

Quoted 8 lines
Quoted 4 lines

I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").

The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.

Quoted 5 lines

I understand that you want to remove it. I don't get why this is the right solution. Can you please assume that, in this particular instance, I am a complete idiot and spell it out for me?

Why isn't that a problem for modules that are compiled-in?

Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.

All of the module macros which peg .modinfo section information for built-in code can be extracted from vmlinux using objcopy -j .modinfo, and that's exactly how modules.builtin.modinfo is built:

objcopy -j .modinfo -O binary vmlinux.o modules.builtin.modinfo

From this we grep out the "file:" and sed it with a ^kernel prefix. You can look at the commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf") which did that.

If a module is built-in then MODULE_FILE() is used we and we add a MODULE_INFO(file, KBUILD_MODFILE), and so the modinfo exists for the "file:" tag for it. At build time we sed for all those with a kernel prefix to build the modules.builtin file. That file is used by modprobe to tell us "yes your module is loaded as its built-in".

So the thing we wish to not have present is when built-in code is being compiled but *cannot possibly* be module, and we have no way to verify that.

So one way to go about this is to simply *not* use the MODULE_LICENSE() which cannot possibly be modules so to simplfy the build process. I think the alternative would be to have a kconfig tristate add a new define for the case where the tristate was y.

So something like this:

Makefile +1 -0
index 197dcb83b2e1..f825d0546a7f 100644
@@ -574,6 +574,7 @@ KBUILD_CFLAGS_KERNEL :=
 KBUILD_RUSTFLAGS_KERNEL :=
 KBUILD_AFLAGS_MODULE  := -DMODULE
 KBUILD_CFLAGS_MODULE  := -DMODULE
+KBUILD_CFLAGS_MODULE_POSSIBLE  := -DMODULE_POSSIBLE
 KBUILD_RUSTFLAGS_MODULE := --cfg MODULE
 KBUILD_LDFLAGS_MODULE :=
 KBUILD_LDFLAGS :=
scripts/Makefile.lib +4 -1
index 100a386fcd71..13f31766eee3 100644
@@ -211,12 +211,15 @@ endif
 endif
 
 part-of-module = $(if $(filter $(basename $@).o, $(real-obj-m)),y)
+could-be-module = $(if $(filter $(basename $@).o, $(possible-obj-m)),y)
 quiet_modtag = $(if $(part-of-module),[M],   )
 
 modkern_cflags =                                          \
 	$(if $(part-of-module),                           \
 		$(KBUILD_CFLAGS_MODULE) $(CFLAGS_MODULE), \
-		$(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL) $(modfile_flags))
+		$(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL) $(modfile_flags)) \
+	$(if $(could-be-module),, \
+		$(KBUILD_CFLAGS_MODULE_POSSIBLE)
 
 modkern_rustflags =                                              \
 	$(if $(part-of-module),                                   \

The difficulty would be the possible-obj-m, to do it without incurring a huge slow down on the build process.

Luis

#24 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

On 24 Feb 2023, Luis Chamberlain spake thusly:

Quoted 22 lines

Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.

All of the module macros which peg .modinfo section information for built-in code can be extracted from vmlinux using objcopy -j .modinfo, and that's exactly how modules.builtin.modinfo is built:

objcopy -j .modinfo -O binary vmlinux.o modules.builtin.modinfo

From this we grep out the "file:" and sed it with a ^kernel prefix. You can look at the commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf") which did that.

If a module is built-in then MODULE_FILE() is used we and we add a MODULE_INFO(file, KBUILD_MODFILE), and so the modinfo exists for the "file:" tag for it. At build time we sed for all those with a kernel prefix to build the modules.builtin file. That file is used by modprobe to tell us "yes your module is loaded as its built-in".

Quoted 5 lines

So the thing we wish to not have present is when built-in code is being compiled but *cannot possibly* be module, and we have no way to verify that.

So one way to go about this is to simply *not* use the MODULE_LICENSE() which cannot possibly be modules so to simplfy the build process.

I do wonder if I should drop this excellent description (up to the place where you start musing on alternatives) into the cover letters for the remaining two tranches in this series, to forestall further confusion. Any objection? (I doubt it, but it seems right to ask.)

#25 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

Quoted 26 lines · Nick Alcock

On 24 Feb 2023, Luis Chamberlain spake thusly:

Quoted 25 lines

Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.

All of the module macros which peg .modinfo section information for built-in code can be extracted from vmlinux using objcopy -j .modinfo, and that's exactly how modules.builtin.modinfo is built:

objcopy -j .modinfo -O binary vmlinux.o modules.builtin.modinfo

From this we grep out the "file:" and sed it with a ^kernel prefix. You can look at the commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf") which did that.

If a module is built-in then MODULE_FILE() is used we and we add a MODULE_INFO(file, KBUILD_MODFILE), and so the modinfo exists for the "file:" tag for it. At build time we sed for all those with a kernel prefix to build the modules.builtin file. That file is used by modprobe to tell us "yes your module is loaded as its built-in".

So the thing we wish to not have present is when built-in code is being compiled but *cannot possibly* be module, and we have no way to verify that.

Quoted 7 lines
Quoted 2 lines

So one way to go about this is to simply *not* use the MODULE_LICENSE() which cannot possibly be modules so to simplfy the build process.

I do wonder if I should drop this excellent description (up to the place where you start musing on alternatives) into the cover letters for the remaining two tranches in this series, to forestall further confusion. Any objection? (I doubt it, but it seems right to ask.)

Cover letters die, commit logs don't. So use it either as part of the commit log or refer to this thread on the commit log. You can also try to condense / paraphrase my description somehow too.

Luis

#26 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

On 27 Feb 2023, Luis Chamberlain outgrape:

Quoted 3 lines

Cover letters die, commit logs don't. So use it either as part of the commit log or refer to this thread on the commit log. You can also try to condense / paraphrase my description somehow too.

Hm. The commit logs have partly been pulled into other trees and are thus to a degree set in stone. I can cite your post in the upcoming pushes though, and in the -rc3 "whatever is left".

Thanks for the advice :)

Signature · 1 line
NULL && (void)
#27 lore raw

Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules

In reply to Luis Chamberlain
Quoted 66 lines · Luis Chamberlain
Quoted 64 lines · Marc Zyngier
Quoted 49 lines · Luis Chamberlain
Quoted 47 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 drivers/irqchip/irq-renesas-rzg2l.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-renesas-rzg2l.c +0 -0
index 25fd8ee66565..4bbfa2b0a4df 100644

drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393

Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0 -1
@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init)
 IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc)
 MODULE_AUTHOR("Lad Prabhakar <[email protected]>");
 MODULE_DESCRIPTION("Renesas RZ/G2L IRQC Driver");
-MODULE_LICENSE("GPL");

I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.

It also means that once a random driver gets enabled as a module, it won't load because it is now missing a MODULE_LICENSE() annotation.

It feels like MODULE_LICENSE should instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?

Quoted 8 lines
Quoted 4 lines

I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").

The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.

I understand that you want to remove it. I don't get why this is the right solution. Can you please assume that, in this particular instance, I am a complete idiot and spell it out for me?

Quoted 7 lines
Quoted 1 line

Why isn't that a problem for modules that are compiled-in?

Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.

Why is it important to make "modprobe irq-renesas-rza1" fail?

With CONFIG_RENESAS_RZA1_IRQC=y, "modprobe irq-renesas-rza1" exits with 0.
I do not think it is a big deal since irq-renesas-rza1 is available as built-in.

Signature · 2 lines
Best Regards
Masahiro Yamada
#28 lore raw

PATCH 10/27 leds: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/leds/leds-asic3.c | 1 -
 1 file changed, 1 deletion(-)
drivers/leds/leds-asic3.c +0 -1
index 8cbc1b8bafa5..bc7e96c3732a 100644
@@ -173,5 +173,4 @@ module_platform_driver(asic3_led_driver);
 
 MODULE_AUTHOR("Paul Parsons <[email protected]>");
 MODULE_DESCRIPTION("HTC ASIC3 LED driver");
-MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:leds-asic3");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer
#29 lore raw

Re: [PATCH 10/27] leds: remove MODULE_LICENSE in non-modules

Quoted 19 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 3 lines
---
 drivers/leds/leds-asic3.c | 1 -
 1 file changed, 1 deletion(-)

Mention the driver in the subject line please.

Quoted 13 lines
drivers/leds/leds-asic3.c +0 -1
index 8cbc1b8bafa5..bc7e96c3732a 100644
@@ -173,5 +173,4 @@ module_platform_driver(asic3_led_driver);
 
 MODULE_AUTHOR("Paul Parsons <[email protected]>");
 MODULE_DESCRIPTION("HTC ASIC3 LED driver");
-MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:leds-asic3");
Signature · 1 line
2.39.1.268.g9de2f9a303
Signature · 1 line
Lee Jones [李琼斯]
#30 lore raw

Re: [PATCH 10/27] leds: remove MODULE_LICENSE in non-modules

On 3 Mar 2023, Lee Jones uttered the following:

Quoted 25 lines · Nick Alcock
Quoted 20 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 3 lines
---
 drivers/leds/leds-asic3.c | 1 -
 1 file changed, 1 deletion(-)
Quoted 1 line

Mention the driver in the subject line please.

Sorry, the prefix-generation is all automated: we use whatever prefix is most commonly used by all affected drivers in the subsystem and shared by all of them. In this case, that was simply 'leds', apparently because almost all things affecting this driver were treewide.

... which probably explains why the driver was removed in January and is gone in -next, so I guess this one will go away shortly regardless.

#31 lore raw

PATCH 11/27 mailbox: rockchip: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/mailbox/rockchip-mailbox.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mailbox/rockchip-mailbox.c +0 -1
index e02d3c9e3693..28d7bfee2641 100644
@@ -254,7 +254,6 @@ static struct platform_driver rockchip_mbox_driver = {
 
 module_platform_driver(rockchip_mbox_driver);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("Rockchip mailbox: communicate between CPU cores and MCU");
 MODULE_AUTHOR("Addy Ke <[email protected]>");
 MODULE_AUTHOR("Caesar Wang <[email protected]>");
Signature · 1 line
2.39.1.268.g9de2f9a303
#32 lore raw

PATCH 12/27 mailbox: zynqmp-ipi: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/mailbox/zynqmp-ipi-mailbox.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mailbox/zynqmp-ipi-mailbox.c +0 -1
index 12e004ff1a14..c4619d31477e 100644
@@ -718,6 +718,5 @@ static void __exit zynqmp_ipi_exit(void)
 }
 module_exit(zynqmp_ipi_exit);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("Xilinx ZynqMP IPI Mailbox driver");
 MODULE_AUTHOR("Xilinx Inc.");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer
#33 lore raw

Re: [PATCH 12/27] mailbox: zynqmp-ipi: remove MODULE_LICENSE in non-modules

Quoted 35 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/mailbox/zynqmp-ipi-mailbox.c | 1 -
  1 file changed, 1 deletion(-)
drivers/mailbox/zynqmp-ipi-mailbox.c +0 -2
index 12e004ff1a14..c4619d31477e 100644
@@ -718,6 +718,5 @@ static void __exit zynqmp_ipi_exit(void)
  }
  module_exit(zynqmp_ipi_exit);
 
-MODULE_LICENSE("GPL v2");
  MODULE_DESCRIPTION("Xilinx ZynqMP IPI Mailbox driver");
  MODULE_AUTHOR("Xilinx Inc.");
--
Quoted 2 lines

2.39.1.268.g9de2f9a303

It is the same case as 24/27. Prefer to change Kconfig from bool to tristate.

Thanks,
Michal

#34 lore raw

PATCH 13/27 mctp: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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 Jeremy Kerr <[email protected]>
Cc Matt Johnston <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Eric Dumazet <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Paolo Abeni <[email protected]>
---
 net/mctp/af_mctp.c | 1 -
 1 file changed, 1 deletion(-)
net/mctp/af_mctp.c +0 -1
index fc9e728b6333..2e763c398e92 100644
@@ -694,7 +694,6 @@ subsys_initcall(mctp_init);
 module_exit(mctp_exit);
 
 MODULE_DESCRIPTION("MCTP core");
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Jeremy Kerr <[email protected]>");
 
 MODULE_ALIAS_NETPROTO(PF_MCTP);
Signature · 1 line
2.39.1.268.g9de2f9a303
#35 lore raw

PATCH 14/27 power: reset: mt6397: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/mt6323-poweroff.c | 1 -
 1 file changed, 1 deletion(-)
drivers/power/reset/mt6323-poweroff.c +0 -1
index d90e76fcb938..108167f7738b 100644
@@ -97,4 +97,3 @@ module_platform_driver(mt6323_pwrc_driver);
 
 MODULE_DESCRIPTION("Poweroff driver for MT6323 PMIC");
 MODULE_AUTHOR("Sean Wang <[email protected]>");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#36 lore raw

PATCH 15/27 memory: tegra: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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 Krzysztof Kozlowski <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Jonathan Hunter <[email protected]>
---
 drivers/memory/tegra/tegra186-emc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/memory/tegra/tegra186-emc.c +0 -1
index 26e763bde92a..e935ad4e95b6 100644
@@ -280,4 +280,3 @@ module_platform_driver(tegra186_emc_driver);
 
 MODULE_AUTHOR("Thierry Reding <[email protected]>");
 MODULE_DESCRIPTION("NVIDIA Tegra186 External Memory Controller driver");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#37 lore raw

Re: [PATCH 15/27] memory: tegra: 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.

Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.

Best regards,
Krzysztof

#38 lore raw

Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules

Quoted 8 lines · Krzysztof Kozlowski
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 7 lines
Quoted 3 lines

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

Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.

And all dropped. Run checkpatch before sending patches.

Best regards,
Krzysztof

#39 lore raw

Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules

On 6 Mar 2023, Krzysztof Kozlowski told this:

Quoted 9 lines · Krzysztof Kozlowski
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 7 lines
Quoted 5 lines
Quoted 2 lines

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

Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.

And all dropped. Run checkpatch before sending patches.

So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false positive:

ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 8b41fc4454e3 ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf")'

The commit message says:

Quoted 2 lines

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations

... which unless I am seeing things is precisely what checkpatch.pl is asking for. Perhaps it can't handle wrapped lines, but not wrapping a git commit log line *also* (correctly) elicits a checkpatch error...

#40 lore raw

Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules

Quoted 14 lines · Nick Alcock

On 6 Mar 2023, Krzysztof Kozlowski told this:

Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Nick Alcock
Quoted 9 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 8 lines
Quoted 4 lines
Quoted 2 lines

Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.

And all dropped. Run checkpatch before sending patches.

So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false

The ones I responded that I applied - so the memory controller ones.

Quoted 4 lines

positive:

ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 8b41fc4454e3 ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf")'

Quoted 8 lines

The commit message says:

Quoted 2 lines

Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations

... which unless I am seeing things is precisely what checkpatch.pl is asking for. Perhaps it can't handle wrapped lines, but not wrapping a git commit log line *also* (correctly) elicits a checkpatch error...

It's not a false positive, but an error I am asking fix (assuming there are no more ones) There is no problem with wrapping lines - checkpatch handles it.

Best regards,
Krzysztof

#41 lore raw

Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules

On 6 Mar 2023, Krzysztof Kozlowski stated:

Quoted 18 lines · Nick Alcock
Quoted 17 lines

On 6 Mar 2023, Krzysztof Kozlowski told this:

Quoted 15 lines · Krzysztof Kozlowski
Quoted 13 lines · Nick Alcock
Quoted 9 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.

Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

And all dropped. Run checkpatch before sending patches.

So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false

The ones I responded that I applied - so the memory controller ones.

OK, resent those three (now two), checkpatch-clean and fused identical subjects together. (Not adjusted non-memory-controller patch commit logs, to avoid causing disruption with those that are already flowing into the tree.)

Hope this is better :)

Signature · 1 line
NULL && (void)
#42 lore raw

Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules

Quoted 26 lines · Nick Alcock

On 6 Mar 2023, Krzysztof Kozlowski stated:

Quoted 24 lines · Nick Alcock
Quoted 22 lines

On 6 Mar 2023, Krzysztof Kozlowski told this:

Quoted 9 lines · Krzysztof Kozlowski
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 7 lines
Quoted 5 lines
Quoted 2 lines

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

Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.

And all dropped. Run checkpatch before sending patches.

So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false

Quoted 8 lines
Quoted 1 line

The ones I responded that I applied - so the memory controller ones.

OK, resent those three (now two), checkpatch-clean and fused identical subjects together. (Not adjusted non-memory-controller patch commit logs, to avoid causing disruption with those that are already flowing into the tree.)

Hope this is better :)

If you send a new patch, mark it appropriately and include changelog.

Best regards,
Krzysztof

#43 lore raw

PATCH 16/27 memory: tegra: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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 Krzysztof Kozlowski <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Jonathan Hunter <[email protected]>
Cc Philipp Zabel <[email protected]>
---
 drivers/memory/tegra/mc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/memory/tegra/mc.c +0 -1
index 592907546ee6..237025ba811d 100644
@@ -985,4 +985,3 @@ arch_initcall(tegra_mc_init);
 
 MODULE_AUTHOR("Thierry Reding <[email protected]>");
 MODULE_DESCRIPTION("NVIDIA Tegra Memory Controller driver");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#44 lore raw

Re: (subset) [PATCH 16/27] memory: tegra: remove MODULE_LICENSE in non-modules

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!

[16/27] memory: tegra: remove MODULE_LICENSE in non-modules

        https://git.kernel.org/krzk/linux-mem-ctrl/c/ee5ca07b2041dba178e11f33c79d4bfc20227f09

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#45 lore raw

PATCH 17/27 memory: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/memory/bt1-l2-ctl.c   | 1 -
 drivers/memory/da8xx-ddrctl.c | 1 -
 drivers/memory/fsl_ifc.c      | 1 -
 drivers/memory/mvebu-devbus.c | 1 -
 4 files changed, 4 deletions(-)
drivers/memory/bt1-l2-ctl.c +0 -1
index 85965fa26e0b..78bd71b203f2 100644
@@ -321,4 +321,3 @@ module_platform_driver(l2_ctl_driver);
 
 MODULE_AUTHOR("Serge Semin <[email protected]>");
 MODULE_DESCRIPTION("Baikal-T1 L2-cache driver");
-MODULE_LICENSE("GPL v2");
drivers/memory/da8xx-ddrctl.c +0 -1
index b32005bf269c..0ef8cc878b95 100644
@@ -164,4 +164,3 @@ module_platform_driver(da8xx_ddrctl_driver);
 
 MODULE_AUTHOR("Bartosz Golaszewski <[email protected]>");
 MODULE_DESCRIPTION("TI da8xx DDR2/mDDR controller driver");
-MODULE_LICENSE("GPL v2");
drivers/memory/fsl_ifc.c +0 -1
index e83b61c925a4..9e8d8e9c5ad8 100644
@@ -327,6 +327,5 @@ static int __init fsl_ifc_init(void)
 }
 subsys_initcall(fsl_ifc_init);
 
-MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Freescale Semiconductor");
 MODULE_DESCRIPTION("Freescale Integrated Flash Controller driver");
drivers/memory/mvebu-devbus.c +0 -1
index efc6c08db2b7..406fddcdba02 100644
@@ -341,6 +341,5 @@ static int __init mvebu_devbus_init(void)
 }
 module_init(mvebu_devbus_init);
 
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Ezequiel Garcia <[email protected]>");
 MODULE_DESCRIPTION("Marvell EBU SoC Device Bus controller");
Signature · 1 line
2.39.1.268.g9de2f9a303
#46 lore raw

Re: (subset) [PATCH 17/27] memory: remove MODULE_LICENSE in non-modules

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!

[17/27] memory: remove MODULE_LICENSE in non-modules

        https://git.kernel.org/krzk/linux-mem-ctrl/c/38ffd3eca02502d1d41b8f1430e5a8e302522bd4

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#47 lore raw

PATCH 18/27 mtd: bcm63xxpart: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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 Miquel Raynal <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Vignesh Raghavendra <[email protected]>
---
 drivers/mtd/parsers/bcm63xxpart.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/parsers/bcm63xxpart.c +0 -1
index b15bdadaedb5..6e7b1ae8f58f 100644
@@ -164,7 +164,6 @@ static struct mtd_part_parser bcm63xx_cfe_parser = {
 };
 module_mtd_part_parser(bcm63xx_cfe_parser);
 
-MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Daniel Dickinson <[email protected]>");
 MODULE_AUTHOR("Florian Fainelli <[email protected]>");
 MODULE_AUTHOR("Mike Albon <[email protected]>");
Signature · 6 lines
2.39.1.268.g9de2f9a303


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
maintainer Applied
#48 lore raw

Re: [PATCH 18/27] mtd: bcm63xxpart: 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
Cc Luis Chamberlain <[email protected]>
Cc Hitomi Hasegawa <[email protected]>
Cc Miquel Raynal <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Vignesh Raghavendra <[email protected]>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#49 lore raw

PATCH 19/27 irqchip/mchp-eic: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/irqchip/irq-mchp-eic.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-mchp-eic.c +0 -1
index c726a19837d2..5dcd94c000a2 100644
@@ -276,5 +276,4 @@ IRQCHIP_MATCH("microchip,sama7g5-eic", mchp_eic_init)
 IRQCHIP_PLATFORM_DRIVER_END(mchp_eic)
 
 MODULE_DESCRIPTION("Microchip External Interrupt Controller");
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Claudiu Beznea <[email protected]>");
Signature · 1 line
2.39.1.268.g9de2f9a303
Reviewed-by on v1 19/27
#50 lore raw

Re: [PATCH 19/27] irqchip/mchp-eic: remove MODULE_LICENSE in non-modules

Quoted 12 lines · Nick Alcock

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

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
Quoted 17 lines
---
 drivers/irqchip/irq-mchp-eic.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-mchp-eic.c +0 -2
index c726a19837d2..5dcd94c000a2 100644
@@ -276,5 +276,4 @@ IRQCHIP_MATCH("microchip,sama7g5-eic", mchp_eic_init)
 IRQCHIP_PLATFORM_DRIVER_END(mchp_eic)
 
 MODULE_DESCRIPTION("Microchip External Interrupt Controller");
-MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Claudiu Beznea <[email protected]>");
--

2.39.1.268.g9de2f9a303

#51 lore raw

PATCH 20/27 mfd: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/stmpe-i2c.c | 1 -
 drivers/mfd/stmpe-spi.c | 1 -
 2 files changed, 2 deletions(-)
drivers/mfd/stmpe-i2c.c +0 -1
index d4944fc1feb1..7998e0db1e15 100644
@@ -135,6 +135,5 @@ static void __exit stmpe_exit(void)
 }
 module_exit(stmpe_exit);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("STMPE MFD I2C Interface Driver");
 MODULE_AUTHOR("Rabin Vincent <[email protected]>");
drivers/mfd/stmpe-spi.c +0 -1
index e9cbf33502b3..792236f56399 100644
@@ -154,6 +154,5 @@ static void __exit stmpe_exit(void)
 }
 module_exit(stmpe_exit);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("STMPE MFD SPI Interface Driver");
 MODULE_AUTHOR("Viresh Kumar <[email protected]>");
Signature · 7 lines
2.39.1.268.g9de2f9a303


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

PATCH 21/27 mfd: bcm2835-pm: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/bcm2835-pm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mfd/bcm2835-pm.c +0 -1
index 49cd1f03884a..2c0aa2a2c893 100644
@@ -123,4 +123,3 @@ module_platform_driver(bcm2835_pm_driver);
 
 MODULE_AUTHOR("Eric Anholt <[email protected]>");
 MODULE_DESCRIPTION("Driver for Broadcom BCM2835 PM MFD");
-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
Reviewed-by on v1 21/27
#53 lore raw

Re: [PATCH 21/27] mfd: bcm2835-pm: 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.

Signature · 1 line
Florian
maintainer Applied
#54 lore raw

Re: [PATCH 21/27] mfd: bcm2835-pm: 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 3 lines
---
 drivers/mfd/bcm2835-pm.c | 1 -
 1 file changed, 1 deletion(-)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]
#55 lore raw

PATCH 22/27 mfd: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/88pm860x-core.c | 1 -
 drivers/mfd/ezx-pcap.c      | 1 -
 drivers/mfd/lp8788.c        | 1 -
 drivers/mfd/tc3589x.c       | 1 -
 drivers/mfd/tps6586x.c      | 1 -
 5 files changed, 5 deletions(-)
drivers/mfd/88pm860x-core.c +0 -1
index 6ba7169cb953..3c57e537d57f 100644
@@ -1276,4 +1276,3 @@ module_exit(pm860x_i2c_exit);
 
 MODULE_DESCRIPTION("PMIC Driver for Marvell 88PM860x");
 MODULE_AUTHOR("Haojian Zhuang <[email protected]>");
-MODULE_LICENSE("GPL");
drivers/mfd/ezx-pcap.c +0 -1
index 3d5ce18aa9ae..8d006f6be48c 100644
@@ -528,7 +528,6 @@ static void __exit ezx_pcap_exit(void)
 subsys_initcall(ezx_pcap_init);
 module_exit(ezx_pcap_exit);
 
-MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Daniel Ribeiro / Harald Welte");
 MODULE_DESCRIPTION("Motorola PCAP2 ASIC Driver");
 MODULE_ALIAS("spi:ezx-pcap");
drivers/mfd/lp8788.c +0 -1
index fe809b64147e..18583addaae2 100644
@@ -244,4 +244,3 @@ module_exit(lp8788_exit);
 
 MODULE_DESCRIPTION("TI LP8788 MFD Driver");
 MODULE_AUTHOR("Milo Kim");
-MODULE_LICENSE("GPL");
drivers/mfd/tc3589x.c +0 -1
index 1f6e0d682cd9..cbfe19d1b145 100644
@@ -502,6 +502,5 @@ static void __exit tc3589x_exit(void)
 }
 module_exit(tc3589x_exit);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("TC3589x MFD core driver");
 MODULE_AUTHOR("Hanumath Prasad, Rabin Vincent");
drivers/mfd/tps6586x.c +0 -1
index 2d947f3f606a..90e23232b6b0 100644
@@ -638,4 +638,3 @@ module_exit(tps6586x_exit);
 
 MODULE_DESCRIPTION("TPS6586X core driver");
 MODULE_AUTHOR("Mike Rapoport <[email protected]>");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
#56 lore raw

PATCH 23/27 NFSv4_2: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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 Trond Myklebust <[email protected]>
Cc Anna Schumaker <[email protected]>
Cc Chuck Lever <[email protected]>
Cc Jeff Layton <[email protected]>
---
 fs/nfs_common/nfs_ssc.c | 1 -
 1 file changed, 1 deletion(-)
fs/nfs_common/nfs_ssc.c +0 -1
index 7c1509e968c8..832246b22c51 100644
@@ -12,7 +12,6 @@
 #include <linux/nfs_ssc.h>
 #include "../nfs/nfs4_fs.h"
 
-MODULE_LICENSE("GPL");
 
 struct nfs_ssc_client_ops_tbl nfs_ssc_client_tbl;
 EXPORT_SYMBOL_GPL(nfs_ssc_client_tbl);
Signature · 1 line
2.39.1.268.g9de2f9a303
#57 lore raw

PATCH 24/27 firmware: xilinx: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/nvmem/zynqmp_nvmem.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvmem/zynqmp_nvmem.c +0 -1
index e28d7b133e11..844c1d861dea 100644
@@ -78,4 +78,3 @@ module_platform_driver(zynqmp_nvmem_driver);
 
 MODULE_AUTHOR("Michal Simek <[email protected]>, Nava kishore Manne <[email protected]>");
 MODULE_DESCRIPTION("ZynqMP NVMEM 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
maintainer
#58 lore raw

Re: [PATCH 24/27] firmware: xilinx: remove MODULE_LICENSE in non-modules

Quoted 33 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/nvmem/zynqmp_nvmem.c | 1 -
  1 file changed, 1 deletion(-)
drivers/nvmem/zynqmp_nvmem.c +0 -2
index e28d7b133e11..844c1d861dea 100644
@@ -78,4 +78,3 @@ module_platform_driver(zynqmp_nvmem_driver);
 
  MODULE_AUTHOR("Michal Simek <[email protected]>, Nava kishore Manne <[email protected]>");
  MODULE_DESCRIPTION("ZynqMP NVMEM driver");
-MODULE_LICENSE("GPL");
--
Quoted 2 lines

2.39.1.268.g9de2f9a303

I would prefer to fix this by changing Kconfig symbol from bool to tristate.

Thanks,
Michal

#59 lore raw

PATCH 25/27 nvmem: core: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/nvmem/core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvmem/core.c +0 -1
index 321d7d63e068..b50f25b23325 100644
@@ -1955,4 +1955,3 @@ module_exit(nvmem_exit);
 MODULE_AUTHOR("Srinivas Kandagatla <[email protected]");
 MODULE_AUTHOR("Maxime Ripard <[email protected]");
 MODULE_DESCRIPTION("nvmem Driver Core");
-MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.1.268.g9de2f9a303
#60 lore raw

PATCH 26/27 mfd: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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/omap-usb-host.c | 1 -
 drivers/mfd/omap-usb-tll.c  | 1 -
 drivers/mfd/twl4030-audio.c | 1 -
 drivers/mfd/twl6040.c       | 1 -
 4 files changed, 4 deletions(-)
drivers/mfd/omap-usb-host.c +0 -1
index 787d2ae86375..7f5775109593 100644
@@ -853,7 +853,6 @@ static struct platform_driver usbhs_omap_driver = {
 MODULE_AUTHOR("Keshava Munegowda <[email protected]>");
 MODULE_AUTHOR("Roger Quadros <[email protected]>");
 MODULE_ALIAS("platform:" USBHS_DRIVER_NAME);
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("usb host common core driver for omap EHCI and OHCI");
 
 static int omap_usbhs_drvinit(void)
drivers/mfd/omap-usb-tll.c +0 -1
index 080d7970a377..8ca4067da6cd 100644
@@ -450,7 +450,6 @@ EXPORT_SYMBOL_GPL(omap_tll_disable);
 
 MODULE_AUTHOR("Keshava Munegowda <[email protected]>");
 MODULE_AUTHOR("Roger Quadros <[email protected]>");
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("usb tll driver for TI OMAP EHCI and OHCI controllers");
 
 static int __init omap_usbtll_drvinit(void)
drivers/mfd/twl4030-audio.c +0 -1
index 4536d829b43e..88002f8941e5 100644
@@ -285,5 +285,4 @@ module_platform_driver(twl4030_audio_driver);
 
 MODULE_AUTHOR("Peter Ujfalusi <[email protected]>");
 MODULE_DESCRIPTION("TWL4030 audio block MFD driver");
-MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:twl4030-audio");
drivers/mfd/twl6040.c +0 -1
index fc97fa5a2d0c..e982119bbefa 100644
@@ -839,4 +839,3 @@ module_i2c_driver(twl6040_driver);
 MODULE_DESCRIPTION("TWL6040 MFD");
 MODULE_AUTHOR("Misael Lopez Cruz <[email protected]>");
 MODULE_AUTHOR("Jorge Eduardo Candelaria <[email protected]>");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer
#61 lore raw

Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules

Quoted 19 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 6 lines
---
 drivers/mfd/omap-usb-host.c | 1 -
 drivers/mfd/omap-usb-tll.c  | 1 -
 drivers/mfd/twl4030-audio.c | 1 -
 drivers/mfd/twl6040.c       | 1 -
 4 files changed, 4 deletions(-)

Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.

mfd: <device>: Succinct subject-line describing changes

Quoted 46 lines
drivers/mfd/omap-usb-host.c +0 -1
index 787d2ae86375..7f5775109593 100644
@@ -853,7 +853,6 @@ static struct platform_driver usbhs_omap_driver = {
 MODULE_AUTHOR("Keshava Munegowda <[email protected]>");
 MODULE_AUTHOR("Roger Quadros <[email protected]>");
 MODULE_ALIAS("platform:" USBHS_DRIVER_NAME);
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("usb host common core driver for omap EHCI and OHCI");
 
 static int omap_usbhs_drvinit(void)
drivers/mfd/omap-usb-tll.c +0 -1
index 080d7970a377..8ca4067da6cd 100644
@@ -450,7 +450,6 @@ EXPORT_SYMBOL_GPL(omap_tll_disable);
 
 MODULE_AUTHOR("Keshava Munegowda <[email protected]>");
 MODULE_AUTHOR("Roger Quadros <[email protected]>");
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("usb tll driver for TI OMAP EHCI and OHCI controllers");
 
 static int __init omap_usbtll_drvinit(void)
drivers/mfd/twl4030-audio.c +0 -1
index 4536d829b43e..88002f8941e5 100644
@@ -285,5 +285,4 @@ module_platform_driver(twl4030_audio_driver);
 
 MODULE_AUTHOR("Peter Ujfalusi <[email protected]>");
 MODULE_DESCRIPTION("TWL4030 audio block MFD driver");
-MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:twl4030-audio");
drivers/mfd/twl6040.c +0 -1
index fc97fa5a2d0c..e982119bbefa 100644
@@ -839,4 +839,3 @@ module_i2c_driver(twl6040_driver);
 MODULE_DESCRIPTION("TWL6040 MFD");
 MODULE_AUTHOR("Misael Lopez Cruz <[email protected]>");
 MODULE_AUTHOR("Jorge Eduardo Candelaria <[email protected]>");
-MODULE_LICENSE("GPL");
Signature · 1 line
2.39.1.268.g9de2f9a303
Signature · 1 line
Lee Jones [李琼斯]
#62 lore raw

Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules

On 3 Mar 2023, Lee Jones verbalised:

Quoted 28 lines · Nick Alcock
Quoted 20 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 6 lines
---
 drivers/mfd/omap-usb-host.c | 1 -
 drivers/mfd/omap-usb-tll.c  | 1 -
 drivers/mfd/twl4030-audio.c | 1 -
 drivers/mfd/twl6040.c       | 1 -
 4 files changed, 4 deletions(-)
Quoted 2 lines

Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.

The subject line is automatically generated, and uses whatever subsystem prefix was most commonly used for all files touched in that subsystem, while not containing any prefixes *not* so touched.

It's also automatically split up per-subsystem from a single big source commit that changes everything at once. I can split this bit more finely, but that means automated regeneration will be impossible, so it'll probably backslide if I ever have to regenerate it -- and I've had to regenerate this series a *lot*.

In fact if I'd split this bit per driver, I'd probably have automatically got the subject line right as well -- but if the series as a whole were split up like that, it'd have had about 400 patches rather than 120, and got a lot of maintainers even more annoyed than they are now.

For now, I'll split this one into four and mail it out again: coming shortly.

maintainer
#63 lore raw

Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules

Quoted 43 lines · Nick Alcock

On 3 Mar 2023, Lee Jones verbalised:

Quoted 28 lines · Nick Alcock
Quoted 20 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 6 lines
---
 drivers/mfd/omap-usb-host.c | 1 -
 drivers/mfd/omap-usb-tll.c  | 1 -
 drivers/mfd/twl4030-audio.c | 1 -
 drivers/mfd/twl6040.c       | 1 -
 4 files changed, 4 deletions(-)
Quoted 2 lines

Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.

The subject line is automatically generated, and uses whatever subsystem prefix was most commonly used for all files touched in that subsystem, while not containing any prefixes *not* so touched.

It's also automatically split up per-subsystem from a single big source commit that changes everything at once. I can split this bit more finely, but that means automated regeneration will be impossible, so it'll probably backslide if I ever have to regenerate it -- and I've had to regenerate this series a *lot*.

Quoted 8 lines

In fact if I'd split this bit per driver, I'd probably have automatically got the subject line right as well -- but if the series as a whole were split up like that, it'd have had about 400 patches rather than 120, and got a lot of maintainers even more annoyed than they are now.

For now, I'll split this one into four and mail it out again: coming shortly.

If you haven't sent it out already, 2 will be fine.

mfd: omap: ...
mfd: twl: ...

--
Lee Jones [李琼斯]

#64 lore raw

Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules

On 8 Mar 2023, Lee Jones uttered the following:

Quoted 7 lines · Nick Alcock
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
 drivers/mfd/omap-usb-host.c | 1 -
 drivers/mfd/omap-usb-tll.c  | 1 -
 drivers/mfd/twl4030-audio.c | 1 -
 drivers/mfd/twl6040.c       | 1 -
 4 files changed, 4 deletions(-)

[...]

Quoted 7 lines
Quoted 2 lines

For now, I'll split this one into four and mail it out again: coming shortly.

If you haven't sent it out already, 2 will be fine.

mfd: omap: ...
mfd: twl: ...

I'm trying to automate this whole thing (since I've had to resplit it a dozen times already), and even making mfd a special case that wants splitting finer than by subsystem, I honestly have no idea how to automatically determine a split like *that*. I can't split on file, on subsystem, on dashes in the names... I think I'd have to literally parse the makefile to figure out which things belonged together in commits, and that's getting ridiculous even for me.

So, if you don't mind, I'd rather do it by subsystem or by file :)

Signature · 1 line
NULL && (void)
maintainer
#65 lore raw

Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules

Quoted 26 lines · Nick Alcock

On 8 Mar 2023, Lee Jones uttered the following:

Quoted 7 lines · Nick Alcock
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
 drivers/mfd/omap-usb-host.c | 1 -
 drivers/mfd/omap-usb-tll.c  | 1 -
 drivers/mfd/twl4030-audio.c | 1 -
 drivers/mfd/twl6040.c       | 1 -
 4 files changed, 4 deletions(-)

[...]

Quoted 7 lines
Quoted 2 lines

For now, I'll split this one into four and mail it out again: coming shortly.

If you haven't sent it out already, 2 will be fine.

mfd: omap: ...
mfd: twl: ...

I'm trying to automate this whole thing (since I've had to resplit it a dozen times already), and even making mfd a special case that wants splitting finer than by subsystem, I honestly have no idea how to automatically determine a split like *that*. I can't split on file, on subsystem, on dashes in the names... I think I'd have to literally parse the makefile to figure out which things belonged together in commits, and that's getting ridiculous even for me.

Quoted 1 line

So, if you don't mind, I'd rather do it by subsystem or by file :)

File is fine.

--
Lee Jones [李琼斯]

#66 lore raw

Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules

In reply to Lee Jones

On 3 Mar 2023, Lee Jones told this:

Quoted 2 lines

Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.

There are a bunch of other commits in this series covering mfd: do you want the same thing done to all of them as well? (They are all in subtly subsystems.)

#67 lore raw

PATCH 27/27 lib: packing: remove MODULE_LICENSE in non-modules

In reply to a message not in the archive

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.

---
 lib/packing.c | 1 -
 1 file changed, 1 deletion(-)
lib/packing.c +0 -1
index a96169237ae6..3f656167c17e 100644
@@ -198,5 +198,4 @@ int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen,
 }
 EXPORT_SYMBOL(packing);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("Generic bitfield packing and unpacking");
Signature · 1 line
2.39.1.268.g9de2f9a303
maintainer
#68 lore raw

Re: [PATCH 27/27] lib: packing: remove MODULE_LICENSE in non-modules

Quoted 35 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.

---
 lib/packing.c | 1 -
 1 file changed, 1 deletion(-)
lib/packing.c +0 -1
index a96169237ae6..3f656167c17e 100644
@@ -198,5 +198,4 @@ int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen,
 }
 EXPORT_SYMBOL(packing);
 
-MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("Generic bitfield packing and unpacking");
Signature · 1 line
2.39.1.268.g9de2f9a303

Is this a bug fix? Does it need a Fixes: tag? How is it supposed to be merged? lib/packing.c is maintained by netdev, and I believe that netdev maintainers would prefer netdev patches to be submitted separately.

Note that I was copied only on this patch, I haven't read the cover letter if that exists.

maintainer
#69 lore raw

Re: [PATCH 27/27] lib: packing: remove MODULE_LICENSE in non-modules

Quoted 3 lines · On Fri, 24 Feb 2023 17:22:14 +0200 Vladimir Oltean wrote:

Is this a bug fix? Does it need a Fixes: tag? How is it supposed to be merged? lib/packing.c is maintained by netdev, and I believe that netdev maintainers would prefer netdev patches to be submitted separately.

As Vladimir said, if you repost just patches 13 and 27 of this series to netdev - we can take them in right away.