Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp363194pxj; Thu, 24 Jun 2021 00:37:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzgi9dIlSh7r1t75XirpyDqUJ/4IFqOi0DnpeWig6mTm+DYOn8w4/afFRmVdnb5HZb3M9X X-Received: by 2002:a6b:f81a:: with SMTP id o26mr3042796ioh.56.1624520258913; Thu, 24 Jun 2021 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624520258; cv=none; d=google.com; s=arc-20160816; b=W1c2MnRkI0CrRY3161pR1Qo8oK2RwCMvtKw+K54jcXVFsCHfZYM0SAgeaoCWOUVn1t Q/3m14VP/WelmF88qxztiuI5jUc5SOLmVvCMtFLK3fTD2grkN3x7rbqiLnbhbBL0i3fP jJukWrx/ZT4lg/tnJq254wMRIN9WU+odZdgrhJ4YlHnYiFd74wRbTsGvopaKGUXMBIEq +ASOsskHg/R3H6z+08z6susyF13ddvM3DUaV46lo1wHSm7z8LEoHXDmJH1DKdfdnSHYg LOF1KbkqBp/g1U1PWYgwTrDRy/DrLYarjKEV/cNDPACdPd7wVTHk+Lr4Jyf/g5SS5/Eu zvcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EFIPC9zuHlFuiicEzvBkiHy46Red1Wc5QcHNoJDuvPc=; b=u1OPxG3iSZDj/rFs7kbjaW7zNMmAxe1LnYN157jh4bZ+L7Je3obni3bXJpqXWBkkEN 3LcJPanl7AeSKNh4Ka6mMfj5UjXiSMtaAue/hocHWvr05QXbZV4OjwrnxlALkyuV+IVL rXjZuten5F8Xajm9Cuzv5lGQ3AivIcjdfjjWNeyLmR2Be8mI/ebneIO1Ylo8gMuxDQL1 U4No+ba/unVmyp6K2E9qm94yf1V1YkEpUGcQBR4xynnMOu91u+aFrN7E0aqCEjc7q9y6 xphW5zP/HiF1iLgEQWxNOGgdwBSse9PCsew3fkpRYHahRTk7PtHfPj6RqpgNWjyr3IuE pcUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si2977846jaj.46.2021.06.24.00.37.27; Thu, 24 Jun 2021 00:37:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231706AbhFXHjT (ORCPT + 99 others); Thu, 24 Jun 2021 03:39:19 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:50850 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231666AbhFXHjT (ORCPT ); Thu, 24 Jun 2021 03:39:19 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1lwJut-0006H1-0t; Thu, 24 Jun 2021 15:36:51 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1lwJus-0004ha-2i; Thu, 24 Jun 2021 15:36:50 +0800 Date: Thu, 24 Jun 2021 15:36:50 +0800 From: Herbert Xu To: YueHaibing Cc: ulli.kroll@googlemail.com, linus.walleij@linaro.org, clabbe@baylibre.com, davem@davemloft.net, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 -next] crypto: sl3516 - Fix build warning without CONFIG_PM Message-ID: <20210624073650.GE17892@gondor.apana.org.au> References: <20210618093551.23748-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210618093551.23748-1-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Jun 18, 2021 at 05:35:51PM +0800, YueHaibing wrote: > drivers/crypto/gemini/sl3516-ce-core.c:345:12: > warning: ‘sl3516_ce_pm_resume’ defined but not used [-Wunused-function] > static int sl3516_ce_pm_resume(struct device *dev) > ^~~~~~~~~~~~~~~~~~~ > > The driver needs PM, otherwise clock and resets are never set. > So make it depends on PM to fix this warning. > > Signed-off-by: YueHaibing > Suggested-by: LABBE Corentin > --- > v2: Using depends on PM instead of #ifdef macro > > drivers/crypto/Kconfig | 1 + > 1 file changed, 1 insertion(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt