lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 13 Apr 2017 04:54:42 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     John Crispin <john@...ozen.org>
Cc:     kbuild-all@...org, linux-pwm@...r.kernel.org,
        Thierry Reding <thierry.reding@...il.com>,
        linux-kernel@...r.kernel.org
Subject: [PATCH] pwm: fix platform_no_drv_owner.cocci warnings

drivers/pwm/pwm-mediatek.c:210: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: John Crispin <john@...ozen.org>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---

 pwm-mediatek.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -207,7 +207,6 @@ MODULE_DEVICE_TABLE(of, mtk_pwm_of_match
 static struct platform_driver mtk_pwm_driver = {
 	.driver = {
 		.name = "mtk-pwm",
-		.owner = THIS_MODULE,
 		.of_match_table = mtk_pwm_of_match,
 	},
 	.probe = mtk_pwm_probe,

Powered by blists - more mailing lists