Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp321408pxx; Thu, 29 Oct 2020 03:36:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8njmdrZcy+vQ8hmRIqMWKXKTJRl3tG9aeXyImHXBqOgP/RytQmNa718lCZ8m+5BzYMJtr X-Received: by 2002:a17:906:aecf:: with SMTP id me15mr3475645ejb.423.1603967766305; Thu, 29 Oct 2020 03:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603967766; cv=none; d=google.com; s=arc-20160816; b=KGDxH9TatBskBIp+GaVHvAxML78ZZ0JaiGNZJUVqzwjfQi47M8d+idNfRlDiBSmQbK edByiGGACHrSIse176akMKPUc5r4qH/FME2XXdgjVO+rObQANkq/hKZwyRk093VBBzFF osC8XPDzflriK+88l7adxOHQpRwnBMfS0SbU1+6x+LzUkVefuG0cJu/74pgebv5RtmU7 2yY1U2GL6/tUxRDDJeUU60YCn3KPRkCdYQdU55Zqv1CiMKqWCjIrDRSj6ZQ9K2HKC0zY vUFn/HsXSZt28PRkDpTgS0YbQmEcn4c5OjP3yU4KyqDEtG272YV9kdVrqBDBVY2LyNSA uX8w== 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=O3kL9b5JEi0l+VJC47uqta+rx+twpSOssILyRDDek5s=; b=LIscC/MqVIUAkHOzF/C3WMsX6UImr+mRIovf7iIugYaVbG8THg/24omJHGBwq26qrX V40X2DfIsTe9homj1I6EnHddegisLpJbuqLyKUBuhZTZWgk2slDxqdwVbPMtIYvrEpIo tx3JWpOry+8SRK84vZQ/5KFiua2lAmA8Mh8q2YYsHk+aJSHnRnjkr9Gw5mpuLznj+ZAS 2OTVn1DgjiYbOBMl6dMZAE1Q0SuOWytmsXX0lsLiv7H1xO6nbhCv1aZYpz3hwFUWe6af V1IF7m2R3vBSeCWO7TSqEivqsQvY0BPkqmbpkL8rEUjqJETv/u/ieXRu/L0c5ZQ1QUZL qZmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si1610081edr.557.2020.10.29.03.35.43; Thu, 29 Oct 2020 03:36:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726626AbgJ2Kd4 (ORCPT + 99 others); Thu, 29 Oct 2020 06:33:56 -0400 Received: from foss.arm.com ([217.140.110.172]:59686 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbgJ2Kdz (ORCPT ); Thu, 29 Oct 2020 06:33:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4080C139F; Thu, 29 Oct 2020 03:33:55 -0700 (PDT) Received: from [10.57.54.223] (unknown [10.57.54.223]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C00453F66E; Thu, 29 Oct 2020 03:33:53 -0700 (PDT) Subject: Re: [PATCH 04/25] ASoC: rockchip: remove unnecessary CONFIG_PM_SLEEP To: Coiby Xu , Jaroslav Kysela , Takashi Iwai Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Heiko Stuebner , Liam Girdwood , open list , "open list:ARM/Rockchip SoC support" , Mark Brown , "moderated list:ARM/Rockchip SoC support" References: <20201029074301.226644-1-coiby.xu@gmail.com> <20201029074301.226644-4-coiby.xu@gmail.com> From: Robin Murphy Message-ID: <8589f68f-fa6b-d75e-d7be-fbb354adbde0@arm.com> Date: Thu, 29 Oct 2020 10:33:52 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201029074301.226644-4-coiby.xu@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-29 07:42, Coiby Xu wrote: > SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. I don't see anything in the !CONFIG_PM_CONFIG side of SET_SYSTEM_SLEEP_PM_OPS() that prevents unused function warnings for the callbacks - does this change depend on some other patch or is it just wrong? Robin. > Signed-off-by: Coiby Xu > --- > sound/soc/rockchip/rockchip_pdm.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c > index 5adb293d0435..f3c19310aeeb 100644 > --- a/sound/soc/rockchip/rockchip_pdm.c > +++ b/sound/soc/rockchip/rockchip_pdm.c > @@ -574,7 +574,6 @@ static int rockchip_pdm_remove(struct platform_device *pdev) > return 0; > } > > -#ifdef CONFIG_PM_SLEEP > static int rockchip_pdm_suspend(struct device *dev) > { > struct rk_pdm_dev *pdm = dev_get_drvdata(dev); > @@ -601,7 +600,6 @@ static int rockchip_pdm_resume(struct device *dev) > > return ret; > } > -#endif > > static const struct dev_pm_ops rockchip_pdm_pm_ops = { > SET_RUNTIME_PM_OPS(rockchip_pdm_runtime_suspend, >