From patchwork Sun Apr 14 05:50:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 10899691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E05A1390 for ; Sun, 14 Apr 2019 05:51:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B1BF28A89 for ; Sun, 14 Apr 2019 05:51:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AC1C28A9D; Sun, 14 Apr 2019 05:51:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6052728A89 for ; Sun, 14 Apr 2019 05:51:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725772AbfDNFuw (ORCPT ); Sun, 14 Apr 2019 01:50:52 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:36815 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbfDNFuw (ORCPT ); Sun, 14 Apr 2019 01:50:52 -0400 X-IronPort-AV: E=Sophos;i="5.60,348,1549926000"; d="scan'208";a="302809136" Received: from abo-75-106-68.mrs.modulonet.fr (HELO hadrien) ([85.68.106.75]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Apr 2019 07:50:49 +0200 Date: Sun, 14 Apr 2019 07:50:49 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: "Jan Alexander Steffens (heftig)" cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, kbuild-all@01.org, Elena Reshetova Subject: [PATCH] ZEN: fix platform_no_drv_owner.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot 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 Signed-off-by: Julia Lawall --- 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,