From patchwork Tue Sep 8 09:39:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 11763061 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6C147112E for ; Tue, 8 Sep 2020 09:41:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A1592076C for ; Tue, 8 Sep 2020 09:41:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="00o2ZGMW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A1592076C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=inria.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=jDGN9DeWJ8+y886TkE+bNR1V+vHIaTZhuCj0TaDOCjQ=; b=00o2ZGMW3ny3342QxgSahoS3YJ AF81EVtQiTJX4ETrexDJIRJBUXVBFsTLoj4NGAT/4fam/bXBVwmTATgeKQiJTVK2LBm4zmyy/5wtB gUOebFkhKZBN67rFHNrOCXBMH3k7BawYOj4W2QZKKd2oUGx/Bjb4I/v47f5ltT1kE5LsHKKmI4GtD XlybY5YcGdJJO3rupm4DKxCg5VU/uQzqnKzIjx1D2NeA/c9ht9OfeGvAAfY0l6ul+33/W4WyUKNMF Il7dlrMWadutu7OHl1LQEo50nl89Zk320v2hd4mckVLQm4+Otam+jsD2Xub60w5I/iunyQs2dIXvF vJP7MbAQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFa6f-0001hk-1a; Tue, 08 Sep 2020 09:40:05 +0000 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFa6c-0001gT-9l for linux-arm-kernel@lists.infradead.org; Tue, 08 Sep 2020 09:40:03 +0000 X-IronPort-AV: E=Sophos;i="5.76,359,1592863200"; d="scan'208";a="466564047" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 11:39:57 +0200 Date: Tue, 8 Sep 2020 11:39:51 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Brian Kim Subject: [PATCH] ODROID-XU4: char: exynos: fix platform_no_drv_owner.cocci warnings Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200908_054002_505151_8C0A27A7 X-CRM114-Status: GOOD ( 11.04 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [192.134.164.83 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [192.134.164.83 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, kbuild-all@lists.01.org, Arnd Bergmann , Greg Kroah-Hartman , Yang Deokgyu , Krzysztof Kozlowski , Kukjin Kim , Dongjin Kim , memeka , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- 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,