* [PATCH] usb: dwc2: Remove obsolete MODULE_ constants from platform.c
@ 2021-05-03 18:05 Matthijs Kooijman
2021-05-04 6:53 ` Minas Harutyunyan
0 siblings, 1 reply; 2+ messages in thread
From: Matthijs Kooijman @ 2021-05-03 18:05 UTC (permalink / raw)
To: linux-usb; +Cc: Minas Harutyunyan, Greg Kroah-Hartman, Matthijs Kooijman
Originally, the core and platform drivers were separate modules, so each
had its own module info. Since commit 2d1165a4b95e (usb: dwc2: remove
dwc2_platform.ko) platform.c is included in the core module, which now
contains duplicate module info (from core.c and platform.c).
Due to the linking order and modinfo implementation, running `modinfo`
on the resulting dwc2.ko shows just the info from platform.c, rather
than that from core.c, suggesting that I am the author of the entire
dwc2 module. Since platform.c is just a minor part of the entire module,
this removes its module info in favor of the info from core.c.
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
---
drivers/usb/dwc2/platform.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index 5f18acac7406..e1e1e32e0008 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -742,7 +742,3 @@ static struct platform_driver dwc2_platform_driver = {
};
module_platform_driver(dwc2_platform_driver);
-
-MODULE_DESCRIPTION("DESIGNWARE HS OTG Platform Glue");
-MODULE_AUTHOR("Matthijs Kooijman <matthijs@stdin.nl>");
-MODULE_LICENSE("Dual BSD/GPL");
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: dwc2: Remove obsolete MODULE_ constants from platform.c
2021-05-03 18:05 [PATCH] usb: dwc2: Remove obsolete MODULE_ constants from platform.c Matthijs Kooijman
@ 2021-05-04 6:53 ` Minas Harutyunyan
0 siblings, 0 replies; 2+ messages in thread
From: Minas Harutyunyan @ 2021-05-04 6:53 UTC (permalink / raw)
To: Matthijs Kooijman, linux-usb; +Cc: Greg Kroah-Hartman
On 5/3/2021 10:05 PM, Matthijs Kooijman wrote:
> Originally, the core and platform drivers were separate modules, so each
> had its own module info. Since commit 2d1165a4b95e (usb: dwc2: remove
> dwc2_platform.ko) platform.c is included in the core module, which now
> contains duplicate module info (from core.c and platform.c).
>
> Due to the linking order and modinfo implementation, running `modinfo`
> on the resulting dwc2.ko shows just the info from platform.c, rather
> than that from core.c, suggesting that I am the author of the entire
> dwc2 module. Since platform.c is just a minor part of the entire module,
> this removes its module info in favor of the info from core.c.
>
> Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
> ---
> drivers/usb/dwc2/platform.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
> index 5f18acac7406..e1e1e32e0008 100644
> --- a/drivers/usb/dwc2/platform.c
> +++ b/drivers/usb/dwc2/platform.c
> @@ -742,7 +742,3 @@ static struct platform_driver dwc2_platform_driver = {
> };
>
> module_platform_driver(dwc2_platform_driver);
> -
> -MODULE_DESCRIPTION("DESIGNWARE HS OTG Platform Glue");
> -MODULE_AUTHOR("Matthijs Kooijman <matthijs@stdin.nl>");
> -MODULE_LICENSE("Dual BSD/GPL");
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-04 6:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-03 18:05 [PATCH] usb: dwc2: Remove obsolete MODULE_ constants from platform.c Matthijs Kooijman
2021-05-04 6:53 ` Minas Harutyunyan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.