Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp82145pxj; Wed, 16 Jun 2021 20:57:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbLyIeEspdlA1jzGCRCmYZ3NRlM014a9k5CRTDszv2ZaE1Enfji0o/KUR3Hx6+GWnTdvRU X-Received: by 2002:a17:906:149a:: with SMTP id x26mr2952255ejc.41.1623902239126; Wed, 16 Jun 2021 20:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623902239; cv=none; d=google.com; s=arc-20160816; b=CT+GGbUO2cvdH4R5nJW+nfQru70UxrVvpXyIolfXsO00o5UMXAEOalqAM1qfrQ3Ms+ bpeUICHCsvh6toMj7fGa3voHARJlXVbIl838p2P6vHtSgwdgiJtLOVE4fZZLR6XCSyDs wVcL+HYcq5hx2J8aj2gPw7fjezwKPNvvS7xYYIJQbWy5BzBs2UMzgUg5pTcTyNgb+Tkz 7Ucnn/KWlBHx9jHMcjiaOCJBTiY8bG2RKMxmZn0ekrzRBwa1A7w74j0NRMWYTPM1bRIf d3EeFPWc9TJNLubOoUAcYzK4K/zJyiB6rHkXCCj+KGANkpfPK298KcDMGTMrRpBdmqjn y4ow== 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=wLBj8QYEmt88YppsnHPWpzYMUB0tiABfghIY+bZgHCs=; b=PMngQY6Kq2KkIIRMSXZRmYwAZrYXAW334USdJzMLa74WQhlNjS0JWNO3gdbMfpVhWa Qx3e6lXreGrdxFrCbuGTHmk2W2CMX9tPvMu8cDJf4wMoIm8eqJhW6JbECFYWNTP2FPQ5 OaP7lcA0xokWWvE8WPsjiri0R9W4b7hy2P0lb7QZrMcIxzmTsxaQS0TG6hAruGGmPz7f GnBg3BcmeXoBFOwUSPIITTBJBlgCdPVaPM+DGgqYLSTiLs5QZ+GBz1uw8E1HdNeYf+ui oxoUH7IYgArxyqFlFA7XDfQtiG7ZD02N9WHby0PfwB94wQ3cF50g/WvCrnOvBKaJGhL4 jOSA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz18si4127778edb.566.2021.06.16.20.56.43; Wed, 16 Jun 2021 20:57:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230055AbhFQDxx (ORCPT + 99 others); Wed, 16 Jun 2021 23:53:53 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:7340 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbhFQDxt (ORCPT ); Wed, 16 Jun 2021 23:53:49 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G57L52rymz6yS5; Thu, 17 Jun 2021 11:47:41 +0800 (CST) Received: from dggema769-chm.china.huawei.com (10.1.198.211) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 17 Jun 2021 11:51:35 +0800 Received: from localhost (10.174.179.215) by dggema769-chm.china.huawei.com (10.1.198.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 17 Jun 2021 11:51:34 +0800 From: YueHaibing To: , , , , CC: , , , YueHaibing Subject: [PATCH -next] crypto: sl3516 - Fix build warning without CONFIG_PM Date: Thu, 17 Jun 2021 11:51:29 +0800 Message-ID: <20210617035129.4948-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggema769-chm.china.huawei.com (10.1.198.211) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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) ^~~~~~~~~~~~~~~~~~~ Use #ifdef macro to guard this. Signed-off-by: YueHaibing --- drivers/crypto/gemini/sl3516-ce-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/gemini/sl3516-ce-core.c b/drivers/crypto/gemini/sl3516-ce-core.c index da6cd529a6c0..00bfc5e19818 100644 --- a/drivers/crypto/gemini/sl3516-ce-core.c +++ b/drivers/crypto/gemini/sl3516-ce-core.c @@ -320,6 +320,7 @@ static void sl3516_ce_unregister_algs(struct sl3516_ce_dev *ce) } } +#ifdef CONFIG_PM static void sl3516_ce_start(struct sl3516_ce_dev *ce) { ce->ctx = 0; @@ -365,6 +366,7 @@ static int sl3516_ce_pm_resume(struct device *dev) sl3516_ce_pm_suspend(dev); return err; } +#endif static const struct dev_pm_ops sl3516_ce_pm_ops = { SET_RUNTIME_PM_OPS(sl3516_ce_pm_suspend, sl3516_ce_pm_resume, NULL) -- 2.17.1