From: Julia Lawall <julia.lawall@inria.fr>
To: Brian Kim <brian.kim@hardkernel.com>
Cc: linux-samsung-soc@vger.kernel.org, kbuild-all@lists.01.org,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Yang Deokgyu <secugyu@gmail.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Kukjin Kim <kgene@kernel.org>, Dongjin Kim <tobetter@gmail.com>,
memeka <mihailescu2m@gmail.com>,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ODROID-XU4: char: exynos: fix platform_no_drv_owner.cocci warnings
Date: Tue, 8 Sep 2020 11:39:51 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2009081136090.2478@hadrien> (raw)
No need to set .owner here. The core will do it.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Fixes: be904257f8a9 ("ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access")
CC: Brian Kim <brian.kim@hardkernel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---
I received some other warnings about this file, but with no details:
>> drivers/char/exynos-gpiomem.c:231:15-18: ERROR: inst is NULL but
dereferenced.
--
>> drivers/char/exynos-gpiomem.c:231:9-13: ERROR: reference preceded by
free on line 229
tree: https://github.com/tobetter/linux odroid-5.9.y
head: 1118f1d60573bfbf1eb7ef079fa879a498ba4313
commit: be904257f8a9bd689b360fa98d3ffc85bdbeb560 [53/69] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
exynos-gpiomem.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/char/exynos-gpiomem.c
+++ b/drivers/char/exynos-gpiomem.c
@@ -255,7 +255,6 @@ MODULE_DEVICE_TABLE(of, exynos_gpiomem_o
static struct platform_driver exynos_gpiomem_driver = {
.driver = {
.name = DRIVER_NAME,
- .owner = THIS_MODULE,
.of_match_table = exynos_gpiomem_of_match,
},
.probe = exynos_gpiomem_probe,
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2020-09-08 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 9:39 Julia Lawall [this message]
2020-09-08 10:04 ` [PATCH] ODROID-XU4: char: exynos: fix platform_no_drv_owner.cocci warnings Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.22.394.2009081136090.2478@hadrien \
--to=julia.lawall@inria.fr \
--cc=arnd@arndb.de \
--cc=brian.kim@hardkernel.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@lists.01.org \
--cc=kgene@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mihailescu2m@gmail.com \
--cc=secugyu@gmail.com \
--cc=tobetter@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox