Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2855757imw; Sun, 10 Jul 2022 17:24:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sGZonAag3nv42QAUC3KXNosWuH9+sqB+6Ih1TDWOGtizXbz1gCrZBf1vioL0RepW6nHisQ X-Received: by 2002:a17:907:7ea6:b0:72b:4afb:e8b with SMTP id qb38-20020a1709077ea600b0072b4afb0e8bmr4972500ejc.205.1657499080386; Sun, 10 Jul 2022 17:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657499080; cv=none; d=google.com; s=arc-20160816; b=mv6nOG22AlDOt4qY4YWPzrWFywbyuDLpTx1jt0AiOQc36gqUY+/fRLNpNUWvXCzrIL OFX5hrMUt5F56sfZDeRguSDfa+Ws5sw55bK8GkWy4DmDHRGegCh/53CZ/bEril+JmmwO u8a+DH6q7JdGzrG39RVzvckgD/aoAOlIcO0uv9noRJf3+MqU+iFaqLMMsmtv5g3XsNJh hge8T9Be4E0WIfnGUrKolWXN1NgyfsMAYoFRqiIKUwTwLp1ER3+0i93tvQrfWDIQwPH8 cWt4fGJuUEjqbMjfO/G/YhFuO2T6pKou2SwqSyxqlfWj3rP4D07H6s6Urt3ZItBz8KsQ aXcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ldrF7diGWLZ0xJmrRbnidtBozBbVnulHJaYpjWHsQ3c=; b=JcsJdXYOTpxDUNjcSRUP/dbFfHVIbR/MaI5JrI7kEYFfOMlH9OBgwVeg58W2yi1f/J rEtEqM1topSoSDGjs7DpKTQDv0Vm+sSyy3AD0gcULpLRxglWBYRl0JbnDIATfOVO9kdK YeqcPUxl34d0Xdq5YPZ8OlRNBjj19/Dxs217conmujiv5wjF26LTNDb3yM+m7l818Asn 36yTBHI7voI6GNEXkT+ZJG+qxmm0rVg+R85Rcsmge4oRU01bjE+rR5uxQvB/GlsNojeW 3wR2rzdjdrlKJh+R5qFG4/w3LpfpCIjGqhcE72L+W4xKwd8wUpB8XCMHAGm7Nipbgelw PnLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gBDcq0mQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb38-20020a1709077ea600b0072b4b305963si4932836ejc.936.2022.07.10.17.23.49; Sun, 10 Jul 2022 17:24:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gBDcq0mQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbiGKACU (ORCPT + 99 others); Sun, 10 Jul 2022 20:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbiGKACT (ORCPT ); Sun, 10 Jul 2022 20:02:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E64DEE003; Sun, 10 Jul 2022 17:02:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 80B9460FE6; Mon, 11 Jul 2022 00:02:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C67AC3411E; Mon, 11 Jul 2022 00:02:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657497737; bh=D1fLsHhzQtsYRlZFh4fxRBKP3QtHCA+Vt/IZDCCRDqY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gBDcq0mQCr9o4FWdXd3z+DjwbFhv8IBeTbKZzgj+hQdBdDqUlz1Tp0bNRMdoGX8CY 8atcBcehrFAgXWCkTbWO3ecwZnDvUuCSH4Eyn2AhyD+XQ0dCsbbgytm6E4lzUU1S0y XUcCDwXZLheRdfmcrXtUeDReyQ2Z3uB/pxUa9hkzSCBSzMzpuy4cPg5zf8/MhatuQP +6JUuvpmoWkXOhaO5S9u4L4FeEwhydLNy3JpA8l7T4RlQLKXgwDTeO2f2i8sz4JSrO LHU9++muVx2kszmg2RcRKhDrvPtgdeoYQh5paoOi+5/trZnjADj8KXwErZGZjpEXb3 H+cKRNSugRrqw== Date: Mon, 11 Jul 2022 03:02:11 +0300 From: Jarkko Sakkinen To: Yang Li Cc: peterhuewe@gmx.de, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] tpm: fix platform_no_drv_owner.cocci warning Message-ID: References: <20220701091322.59384-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220701091322.59384-1-yang.lee@linux.alibaba.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, Jul 01, 2022 at 05:13:22PM +0800, Yang Li wrote: > Eliminate the following coccicheck warning: > ./drivers/char/tpm/tpm_tis_i2c.c:379:3-8: No need to set .owner here. The core will do it. > > Remove .owner field if calls are used which set it automatically > > Signed-off-by: Yang Li > --- > drivers/char/tpm/tpm_tis_i2c.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c > index 8e0686fe4eb1..ba0911b1d1ff 100644 > --- a/drivers/char/tpm/tpm_tis_i2c.c > +++ b/drivers/char/tpm/tpm_tis_i2c.c > @@ -376,7 +376,6 @@ MODULE_DEVICE_TABLE(of, of_tis_i2c_match); > > static struct i2c_driver tpm_tis_i2c_driver = { > .driver = { > - .owner = THIS_MODULE, > .name = "tpm_tis_i2c", > .pm = &tpm_tis_pm, > .of_match_table = of_match_ptr(of_tis_i2c_match), > -- > 2.20.1.7.g153144c > Reviewed-by: Jarkko Sakkinen BR, Jarkko