Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp742030iob; Thu, 12 May 2022 03:47:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZPWzrAlbWb6ULvYjeB6K8bd8DydfdsVqOQdbhWhWj+Ivkzx0LpjXxj+74G1Z/N2C9xgZL X-Received: by 2002:a17:906:4fc6:b0:6f4:da16:4a09 with SMTP id i6-20020a1709064fc600b006f4da164a09mr29570822ejw.599.1652352471746; Thu, 12 May 2022 03:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652352471; cv=none; d=google.com; s=arc-20160816; b=xEUAKLsJBAXezTxN9RfbFQOZhFuVyrj+zbvWmGwfZQl4miZ9uYOwUMzx/s1LONuCCd bw9fmgrpOO9MlWn6L403Szwg+r+2lFxfX0pUOXCxejoJ3Ntj1PG+ov9ZUrc/Gd1nRl0Y MXvzWSWHea9lrI2bgopgUnEmHVUTpYQOYVhYIauKcjOvxIPv8BMIxbXBVlDsthH5E36J GiIAGF++p2IFtc0yQMWyVIpMfgKU190PgvMENxgouQfgiYFa6KoDTFCcqEYIN9yJDdPV pch/84PFaqFCpLrVPqqhdSJIIO/SqIpkUjAVEsla4kYwikPuxtAh+zDDZSwaZlfWsqhj 6Gpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=30CViispjNPk06mnax+ATmg9pO7xy8lGx1z2hWu6ITI=; b=dPBU3QDCqwBiQ5nQyB9DNTyy094k0YXFmGl3Y2C5qNcdWNbzzkMFsgW+RZ/h7PXhqn vyrpKRZAyFMNuyV5PfzmGcV3LETAvk7qZRHTM+fPJudlSoltupxbqwWtIKcHqWGv+OCe QyFjEMQJNde5mdCiT7b2mpoqVp8i5BUhqA5iNGGfUJYtiowPkEgRMabfYxz0M117Bpzb ecaKGV3tGk5+8bzotM04p778FezFz6nSHsjCyVrYS8KoKjyny/1TKxkqftK1GHIX2t82 T3lWyY2fJe41SSGVFMuDEHy54IXVLNfnARrZPUlU6UQTNOPX0ihUEURG75hRWrhErNYL oAJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a056402424200b00423f2d954fcsi6614727edb.49.2022.05.12.03.47.25; Thu, 12 May 2022 03:47:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351306AbiELIEH (ORCPT + 99 others); Thu, 12 May 2022 04:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237517AbiELIEG (ORCPT ); Thu, 12 May 2022 04:04:06 -0400 Received: from out199-3.us.a.mail.aliyun.com (out199-3.us.a.mail.aliyun.com [47.90.199.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5672E20F9FC; Thu, 12 May 2022 01:04:04 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R351e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VCzyqtO_1652342638; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VCzyqtO_1652342638) by smtp.aliyun-inc.com(127.0.0.1); Thu, 12 May 2022 16:03:59 +0800 From: Yang Li To: wellslutw@gmail.com Cc: edumazet@google.com, pabeni@redhat.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] net: ethernet: fix platform_no_drv_owner.cocci warning Date: Thu, 12 May 2022 16:03:57 +0800 Message-Id: <20220512080357.44357-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove .owner field if calls are used which set it automatically. ./drivers/net/ethernet/sunplus/spl2sw_driver.c:569:3-8: No need to set .owner here. The core will do it. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/sunplus/spl2sw_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/sunplus/spl2sw_driver.c b/drivers/net/ethernet/sunplus/spl2sw_driver.c index 8320fa833d3e..bf32f425b19d 100644 --- a/drivers/net/ethernet/sunplus/spl2sw_driver.c +++ b/drivers/net/ethernet/sunplus/spl2sw_driver.c @@ -566,7 +566,6 @@ static struct platform_driver spl2sw_driver = { .remove = spl2sw_remove, .driver = { .name = "sp7021_emac", - .owner = THIS_MODULE, .of_match_table = spl2sw_of_match, }, }; -- 2.20.1.7.g153144c