mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ZEN: fix platform_no_drv_owner.cocci warnings
@ 2019-04-14  5:50 Julia Lawall
  2019-04-15  6:31 ` Reshetova, Elena
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2019-04-14  5:50 UTC (permalink / raw)
  To: Jan Alexander Steffens (heftig)
  Cc: James E.J. Bottomley, Martin K. Petersen, linux-scsi,
	linux-kernel, kbuild-all, Elena Reshetova

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

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

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

Fixes: 26e2aa63d568 ("ZEN: Add VHBA driver")
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>

---

There was also a report about:

drivers/scsi/vhba/vhba.c:184:8-27: atomic_dec_and_test variation before
object free at line 185.

that Elena may want to comment on.


tree:   https://github.com/zen-kernel/zen-kernel 5.0/misc
head:   5fbf87816fba5c14168bf5a8cf2205e072bac88f
commit: 26e2aa63d568ec48e0c062637ed5e3ca44b492e2 [7/18] ZEN: Add VHBA driver
:::::: branch date: 4 hours ago
:::::: commit date: 6 weeks ago

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

--- a/drivers/scsi/vhba/vhba.c
+++ b/drivers/scsi/vhba/vhba.c
@@ -1033,7 +1033,6 @@ static struct platform_device vhba_platf

 static struct platform_driver vhba_platform_driver = {
     .driver = {
-        .owner = THIS_MODULE,
         .name = "vhba",
     },
     .probe = vhba_probe,

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

end of thread, other threads:[~2019-04-15  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-14  5:50 [PATCH] ZEN: fix platform_no_drv_owner.cocci warnings Julia Lawall
2019-04-15  6:31 ` Reshetova, Elena

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®