Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1032789rwb; Tue, 29 Nov 2022 08:11:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf64WUt3RahcHzRGTeNlF/z8PZpJT0q90aGACHnc/clMlYJoJsN5x5CYdrzPmW9K0Ihvzz4o X-Received: by 2002:a05:6402:381b:b0:456:ee32:799b with SMTP id es27-20020a056402381b00b00456ee32799bmr6881677edb.2.1669738272884; Tue, 29 Nov 2022 08:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669738272; cv=none; d=google.com; s=arc-20160816; b=jY5deKuamBLRmrH1sX6S24sZ+iSbCb+Wb2YbDwWKSH8D++MWEgvCa3PXKatkBLhyqu lY46NqzIJmAi/j++kQAHYDM64O2I2oUy/YR638GJ5lKKOO35fwkabfJIerF6FQdKT5Q3 EtII7PK/E6VV8rk0xR/5Cg6ODxuwMCucYU2EVc9vorbP3R+miqR/X2QueQksyRsHTchy Mfl4F1o0jOcKagQq5SnkY0m68yk0jkp5ccAXTwW1Tgv2Ifhcf/tFUTRn3+0x1usfo7rO CJRusHTW40fV+6HCDd8ei65LiJIU1liEiYfw2YAxrDFDL1Y2QMAkcLdsnXSTBZWKH68J X3hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=O1zHUKyMYg/N5w80x5NsEXIV4fzGlq8CSJOktCGLEoc=; b=Jj52kgQ7vkyUNcfbaP56VJqLQkU8K11YTC9TjHxdsv9qQWch45ZoZOp4wRdT3NkwuO hETG9vcuNUUnpTOPK2xxEPrJMcTyMR/pvMQQIOkxbRJpEsxak0XGth+v8HDo6p8Pom/Q L5hV0sXU/Bi00/WeXNnxqTMj7ehq0XJsKJoxYgrNuA+q/b2WTQQkTxxbdR42QvWRIqZl FKTH8JHXkT0BGjY5WuXyiZbeCC4c5QIUIx2mwJyRoxEbANhLN4ojsowhiIpE8OINabbK xWvXsW3/onbT4u7Urv9Bhp6XOPA0zOFWoaHkuxR/fa2WMYWMedLvah5it78QBXBKxT6L Zugw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=j0PVXACH; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056402180a00b0045d3e06e4d5si11337759edy.389.2022.11.29.08.10.51; Tue, 29 Nov 2022 08:11:12 -0800 (PST) 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=@quicinc.com header.s=qcppdkim1 header.b=j0PVXACH; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236123AbiK2QBq (ORCPT + 84 others); Tue, 29 Nov 2022 11:01:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235871AbiK2QBS (ORCPT ); Tue, 29 Nov 2022 11:01:18 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C34169A8B; Tue, 29 Nov 2022 07:59:41 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ATFmncM016736; Tue, 29 Nov 2022 15:58:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=O1zHUKyMYg/N5w80x5NsEXIV4fzGlq8CSJOktCGLEoc=; b=j0PVXACHfpFiyiV3rnlCeFwBcG1yGYvTRRpsz9jkx5zIW59HM4QxuMVk79qmbgT+hktG iz14heoVMlFAzwEC9mtcaWwo8WMhh4olSeBDBBixOzm/XqHmH+RpybeHKrOFzITq14/I pQOqCyfxWs6uuIbJt/2jrQYDSErW7LXIWsXbMlDyfaLAA1aiUKibiDdL3mBIEgfgKAro s0I1NNWkrhnw3PIp4towyuNsE769NKX2bBvzzQrROjT0gVXiILVSZpgzxn3H2L/yiPUx PKBqq1hMChU4NmU8naQRiNLVE0ZquYFA9FYp2+BwQzJRZM4lLIBGN3WARjhkBhb6zWZu Zw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3m5n1vg0v6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Nov 2022 15:58:54 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2ATFwh5f029584 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Nov 2022 15:58:43 GMT Received: from [10.216.9.244] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 29 Nov 2022 07:58:37 -0800 Message-ID: <65fd2068-4744-221f-f398-da4303b64fca@quicinc.com> Date: Tue, 29 Nov 2022 21:28:33 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] ASoC: qcom: lpass-sc7180: Add maybe_unused tag for system PM ops Content-Language: en-US To: Nathan Chancellor CC: , , , , , , , , , , , , , , , , References: <1669726428-3140-1-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: c5Gnbz93EI3y_DZwAkv2U-Y1I-f7G-L1 X-Proofpoint-ORIG-GUID: c5Gnbz93EI3y_DZwAkv2U-Y1I-f7G-L1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-29_10,2022-11-29_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 priorityscore=1501 clxscore=1011 mlxscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211290089 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Thanks for your tie Nathan!!! On 11/29/2022 9:15 PM, Nathan Chancellor wrote: > On Tue, Nov 29, 2022 at 06:23:48PM +0530, Srinivasa Rao Mandadapu wrote: >> Add __maybe_unused tag for system PM ops suspend and resume. >> This is required to fix allmodconfig compilation issue. >> Fixes: c3bf7699747c ("ASoC: qcom: lpass-sc7280: Add system suspend/resume PM ops") >> >> Signed-off-by: Srinivasa Rao Mandadapu > A better solution would be replacing SET_SYSTEM_SLEEP_PM_OPS() with > SYSTEM_SLEEP_PM_OPS(), which was added to avoid needing to add these > '__maybe_unused' attributes to these functions. See commit 1a3c7bb08826 > ("PM: core: Add new *_PM_OPS macros, deprecate old ones") for more info. Tried this option but as this patch required for Kernel 5.4 version code base, SYSTEM_SLEEP_PM_OPS didn't work. >> --- >> sound/soc/qcom/lpass-sc7180.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/sound/soc/qcom/lpass-sc7180.c b/sound/soc/qcom/lpass-sc7180.c >> index b96b85a..41db661 100644 >> --- a/sound/soc/qcom/lpass-sc7180.c >> +++ b/sound/soc/qcom/lpass-sc7180.c >> @@ -163,14 +163,14 @@ static int sc7180_lpass_exit(struct platform_device *pdev) >> return 0; >> } >> >> -static int sc7180_lpass_dev_resume(struct device *dev) >> +static int __maybe_unused sc7180_lpass_dev_resume(struct device *dev) >> { >> struct lpass_data *drvdata = dev_get_drvdata(dev); >> >> return clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks); >> } >> >> -static int sc7180_lpass_dev_suspend(struct device *dev) >> +static int __maybe_unused sc7180_lpass_dev_suspend(struct device *dev) >> { >> struct lpass_data *drvdata = dev_get_drvdata(dev); >> >> -- >> 2.7.4 >> >>