LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] tsnep: fix platform_no_drv_owner.cocci warnings
@ 2021-11-24 16:43 kernel test robot
  2021-11-24 20:36 ` Gerhard Engleder
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-11-24 16:43 UTC (permalink / raw)
  To: Gerhard Engleder
  Cc: kbuild-all, Linux Memory Management List, Jakub Kicinski, netdev,
	linux-kernel

From: kernel test robot <lkp@intel.com>

drivers/net/ethernet/engleder/tsnep_main.c:1263:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Gerhard Engleder <gerhard@engleder-embedded.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4b74e088fef6ce8cc513f935ce236c38bdf5f67b
commit: 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d [2745/3376] tsnep: Add TSN endpoint Ethernet MAC driver
:::::: branch date: 11 hours ago
:::::: commit date: 2 days ago

 tsnep_main.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/net/ethernet/engleder/tsnep_main.c
+++ b/drivers/net/ethernet/engleder/tsnep_main.c
@@ -1260,7 +1260,6 @@ MODULE_DEVICE_TABLE(of, tsnep_of_match);
 static struct platform_driver tsnep_driver = {
 	.driver = {
 		.name = TSNEP,
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(tsnep_of_match),
 	},
 	.probe = tsnep_probe,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] tsnep: fix platform_no_drv_owner.cocci warnings
  2021-11-24 16:43 [PATCH] tsnep: fix platform_no_drv_owner.cocci warnings kernel test robot
@ 2021-11-24 20:36 ` Gerhard Engleder
  0 siblings, 0 replies; 2+ messages in thread
From: Gerhard Engleder @ 2021-11-24 20:36 UTC (permalink / raw)
  To: kernel test robot
  Cc: kbuild-all, Linux Memory Management List, Jakub Kicinski, netdev,
	linux-kernel

>
> From: kernel test robot <lkp@intel.com>
>
> drivers/net/ethernet/engleder/tsnep_main.c:1263:3-8: No need to set .owner here. The core will do it.
>
>  Remove .owner field if calls are used which set it automatically
>
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
>
> CC: Gerhard Engleder <gerhard@engleder-embedded.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>
> ---
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   4b74e088fef6ce8cc513f935ce236c38bdf5f67b
> commit: 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d [2745/3376] tsnep: Add TSN endpoint Ethernet MAC driver
> :::::: branch date: 11 hours ago
> :::::: commit date: 2 days ago
>
>  tsnep_main.c |    1 -
>  1 file changed, 1 deletion(-)
>
> --- a/drivers/net/ethernet/engleder/tsnep_main.c
> +++ b/drivers/net/ethernet/engleder/tsnep_main.c
> @@ -1260,7 +1260,6 @@ MODULE_DEVICE_TABLE(of, tsnep_of_match);
>  static struct platform_driver tsnep_driver = {
>         .driver = {
>                 .name = TSNEP,
> -               .owner = THIS_MODULE,
>                 .of_match_table = of_match_ptr(tsnep_of_match),
>         },
>         .probe = tsnep_probe,

Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-24 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24 16:43 [PATCH] tsnep: fix platform_no_drv_owner.cocci warnings kernel test robot
2021-11-24 20:36 ` Gerhard Engleder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).