Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1221375pxj; Fri, 18 Jun 2021 02:16:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlvsgUCLkhu1dsNhWSLuOqcsOmwRHQTTteSv2DZnNTVHFlhjE0/+MNYtR4hCcginZBSACR X-Received: by 2002:a05:6402:10c6:: with SMTP id p6mr3570724edu.332.1624007764082; Fri, 18 Jun 2021 02:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624007764; cv=none; d=google.com; s=arc-20160816; b=zsgKnM+PAU3uHQmlQH1FBtK6plNqIQlmE0T4enU4tWDXVW+niRmOeZWQczRFyeeJVh JWLnMu9LRX9MEy7yNlZ/EpQIyinXEC1n28OqDdRarb/pRf9wEay/E0luc+rROzFkCoYf sZVNd2Z0tIauaJ+6wwl3Yc6hQ+wCb1uVTc1gJTeTs+4IARQHUAo1BBM4FfGhv/+NwVPE PWRjQ12c5EFONqtljWHACyj/6PvfmzGD9sZ4FVK9BuCsdrpnvGNF8wUd20WH/jhirlZe Ls9h54vXbtw1+XU9ndHGTYOPN2BvNNQINN1i1VcWGC8xKZwVXqItB5EfMywH9wsXienY w4gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=AbiKitq0jKJ+Pja0MQjjva8v/7mTS0Q14JanovsS3+4=; b=OOaHhhziDNgGTiEVrlZbc1KAmjuZK1/WBQwy0/DDADH19BB+9RgRsYcl4+537k77Do rXH2nNNmm4SU4icm1VJZB9jfBUWSFimCXNnL/NZ/rIRO09fGa377U+sJeJOZfLnLGhB/ 4jrQ9RPufseZJesRVq8F5pVwspeXsQkCgQDE5lsesIgSRc4WWtmMqNYXpSfuERlg3oYK KOlE1Wh5ivJdJNJpScVuPOAyPBeciY/4glDca3RREStK6Xdmp3n9nxVNZmepJ4c54Iu8 M+J/NiKPuzWlFAAZ+XWa/qcCOOvn88Yl7sTRsLUPqJ5C02ugtSL/eHDUV1dcn2fTVL74 75yg== 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 q5si5055570edh.492.2021.06.18.02.15.40; Fri, 18 Jun 2021 02:16:04 -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 S231946AbhFRH70 (ORCPT + 99 others); Fri, 18 Jun 2021 03:59:26 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:7367 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbhFRH7Z (ORCPT ); Fri, 18 Jun 2021 03:59:25 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G5rkx4Dy6z6xxj; Fri, 18 Jun 2021 15:53:13 +0800 (CST) Received: from dggema769-chm.china.huawei.com (10.1.198.211) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 18 Jun 2021 15:57:14 +0800 Received: from [10.174.179.215] (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; Fri, 18 Jun 2021 15:57:13 +0800 Subject: Re: [PATCH -next] crypto: sl3516 - Fix build warning without CONFIG_PM To: LABBE Corentin CC: , , , , , , References: <20210617035129.4948-1-yuehaibing@huawei.com> From: YueHaibing Message-ID: <00d33044-8101-bc41-ac02-90517c13f19a@huawei.com> Date: Fri, 18 Jun 2021 15:57:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 On 2021/6/17 21:00, LABBE Corentin wrote: > Le Thu, Jun 17, 2021 at 11:51:29AM +0800, YueHaibing a écrit : >> 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(+) >> > > Hello > > Thanks for the report, but I am sorry and need to NAK this patch. > > The driver needs PM, without it, clock and resets are never set. > The correct fix is to add "depends on PM". Ok, v2 on the way, thanks. > > Regards > . >