Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3928133ioo; Wed, 25 May 2022 10:49:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymyFl3DXOCAECXyDdYgM19Vw8xGcouUjQTFVTETljUfvwZurzDYZtPYHRVU/99gcvORD7j X-Received: by 2002:a17:902:7248:b0:163:5dd9:f224 with SMTP id c8-20020a170902724800b001635dd9f224mr3506719pll.27.1653500979119; Wed, 25 May 2022 10:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653500979; cv=none; d=google.com; s=arc-20160816; b=G0Rce5je9CSeYwCG47qFUrnT6z4Y2+dF52neFQyXBbGPMa4X/pUbZE0R8+a0n4KDnt R/9jqDBvrNI1btBXeI68mRSM3ZKfC2UyYanoEpneGmM2HZT9/1K4KBzrr1TegHnNtLik RbrVseozxoXfDEr7PjWxOHTheSHIFe+QjV4Lk2RAP0AHqpjYVCj3pEQMqle7FOBoFu+0 PKPUlrIWulBfTjeOrDyozrTEQ94GxANYYOd3ZdeA74yF2r5LdQtBGS4YvblF7DldLCT4 wAqQrsg1nXv6JN1U0YozwfpHNLes+pK754GheMO8jTbqvYmysIUm5l4C9uhkiFuqI2yj J30Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=njEcC3E5Aihl4BDEH4nfYabeeg5jlVJELZCWyKX3B90=; b=LN/UX/Wya76iRH5D55ER7YeL1UTTP0ZTSrCHFMPSOO/KbQMFfJo2afrsdihBnMrSHT QAvOHULuDg1dC1x2gIqhb6js4vjCb/06fOpxyY++aptTTaErjGajcLnydzdxCufii+3J WnH561ZOhryYsLclGiY4wuSNLThyKWwnBo7yfULYTO3gxBHigVZsSyVeF10NVOD3JYJO 5A1AqdOQHw8wje/8oNfi79Brav2Ic4f9jGzcWsHOV8UzGIL/5v/OIL9RCUXR+ObDTeZS BDMWP3hBFfM+eDa4o6M0NqiIBeyVaD87OVyupERDPoK+kH4tjCETBFLr+sL4WztLqUq8 Jsuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aEEVfvhT; 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 bf7-20020a656d07000000b003a6d2c0b6f3si17203153pgb.573.2022.05.25.10.49.26; Wed, 25 May 2022 10:49:39 -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=aEEVfvhT; 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 S237482AbiEXNxE (ORCPT + 99 others); Tue, 24 May 2022 09:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbiEXNxA (ORCPT ); Tue, 24 May 2022 09:53:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A87F913D13; Tue, 24 May 2022 06:52:59 -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 4C8C961638; Tue, 24 May 2022 13:52:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7786CC385AA; Tue, 24 May 2022 13:52:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653400378; bh=STLMhacHl2AWzy+G9RHYcojTiEvQVA6j5evH9G5s9Zk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aEEVfvhTm/iy3uXXblT6eftV1oQ2Mqfmu5UZXpotce+AeLjMCEvLhcLq1NsAsx/mF 9aOQyRAExiU3mqg+ztMj7KMAEvhotfcsymhln6gUjTpbSOzbYZRkhloVofrFPHyhPK H16n/uM1p5rW2jsGTk4+a3XQ9/bNdJCdIlC36l5BXqVwXCPfQCHdcyGAktMfhfAFWn 9DGUkubUzDs8TPErx1UAkMRyTv8q9awK5O9U0vLaxyUxRtX2IHOsfQ0l0WF4tXqx7z +nxV/EuMPRIbdXyYZu2z6ycToGbqYucrk6oz9gjdwpQujyZrTp7InX9LMW7jWq+RTu CcoH1YQvrjEgQ== Date: Tue, 24 May 2022 19:22:50 +0530 From: Manivannan Sadhasivam To: Nathan Chancellor Cc: Andy Gross , Bjorn Andersson , Jassi Brar , Sibi Sankar , Prasad Sodagudi , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH] mailbox: qcom-ipcc: Fix -Wunused-function with CONFIG_PM_SLEEP=n Message-ID: <20220524135250.GC5745@thinkpad> References: <20220523224702.2002652-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220523224702.2002652-1-nathan@kernel.org> X-Spam-Status: No, score=-7.8 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 Mon, May 23, 2022 at 03:47:02PM -0700, Nathan Chancellor wrote: > When CONFIG_PM_SLEEP is not set, there is a warning that > qcom_ipcc_pm_resume() is unused: > > drivers/mailbox/qcom-ipcc.c:258:12: error: 'qcom_ipcc_pm_resume' defined but not used [-Werror=unused-function] > 258 | static int qcom_ipcc_pm_resume(struct device *dev) > | ^~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > Commit 1a3c7bb08826 ("PM: core: Add new *_PM_OPS macros, deprecate old > ones") reworked the PM_OPS macros to avoid this problem. Use > NOIRQ_SYSTEM_SLEEP_PM_OPS directly so that qcom_ipcc_pm_resume() always > appears to be used to the compiler, even though it will be dead code > eliminated in the !CONFIG_PM_SLEEP case. > > Fixes: c25f77899753 ("mailbox: qcom-ipcc: Log the pending interrupt during resume") > Signed-off-by: Nathan Chancellor My bad, I missed this. Thanks for the fix! Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > drivers/mailbox/qcom-ipcc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mailbox/qcom-ipcc.c b/drivers/mailbox/qcom-ipcc.c > index 2583b20cdeb7..31d58b7d55fe 100644 > --- a/drivers/mailbox/qcom-ipcc.c > +++ b/drivers/mailbox/qcom-ipcc.c > @@ -344,7 +344,7 @@ static const struct of_device_id qcom_ipcc_of_match[] = { > MODULE_DEVICE_TABLE(of, qcom_ipcc_of_match); > > static const struct dev_pm_ops qcom_ipcc_dev_pm_ops = { > - SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(NULL, qcom_ipcc_pm_resume) > + NOIRQ_SYSTEM_SLEEP_PM_OPS(NULL, qcom_ipcc_pm_resume) > }; > > static struct platform_driver qcom_ipcc_driver = { > > base-commit: bca1a1004615efe141fd78f360ecc48c60bc4ad5 > -- > 2.36.1 > -- மணிவண்ணன் சதாசிவம்