Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp128886rwb; Wed, 30 Nov 2022 23:24:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CSWG3/96orOZIJn3M5gARLlkOeQmuAByye0mSOPyJLS8lpoC1MkBM0OzjiYw1b4vY0VY2 X-Received: by 2002:a05:6402:1f89:b0:458:caec:8f1e with SMTP id c9-20020a0564021f8900b00458caec8f1emr57951093edc.280.1669879472553; Wed, 30 Nov 2022 23:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669879472; cv=none; d=google.com; s=arc-20160816; b=sOTi/fP26Ek+z2MuoUxLyltQF7V5irjyGySg2diMh5SYaCsSzJNPSuiSGnw8h7GpaP dzzdEZRtmrVPoQbry5EPV+lq5r2Ye8Ku7aj4O0xutvFhPRdfEPujjHc5ngBIKNBa0YqB QsfdvM9cMFHOhhm4jK05VO+/Ubnanlg6FfriD1VrvQEv5CeQoMg5faGp6T0Z1oPqeDt6 WaQaJCR7mvUXZCIWhW+X81fYJ9+bCh+EnTCEb7MwNgP1RCxO+nEJqdQ9o+WgOYPm93y9 z7IXFct5YHP88FrHZFatYhfucnPPneY6rDpowJFhFzZV1zxaluDMjoG11lQdV+g31onw l1MQ== 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=2qT5K9rHZ2k+os7b5m3JWOjmTKB3v7jcnwxt+X1IumY=; b=D2wvkr78sK90dTGBGr/Y4TolMPhd7ZVR8jOw+Z7hqKAd7j7FGVJw/JHBwZxy9ICPw6 F+/qk+Fu0XrRFqFaolhfJ3HJdMNuqtsAsWaNcEAs7vWo18mjMfAE2mvGNqeq36cQB5tt v6nzkhTiHCD1QBC/23zvO1UwZW4YP64xvSdZRwrjAh+OSE7Jm2wWg7MKCCFlqDYYuMQh 0ckyI4p0I+DmRnKP5aIO5qu1oHrefcfoQ8KzNAJ1ymWtVa9MT3hjDW5xCfu8Ow9f4rMw NJ6tIzRMIBSWM9F/vgQOZ3Rya/mwJ8iG9ksFqj9j/y6F/p5W4j6+cI6uAtlJ+WYjQHbT mUnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=I41ox6tU; 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 du7-20020a17090772c700b007919fc02ce8si3212936ejc.971.2022.11.30.23.24.12; Wed, 30 Nov 2022 23:24:32 -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=I41ox6tU; 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 S229854AbiLAHDk (ORCPT + 83 others); Thu, 1 Dec 2022 02:03:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbiLAHDi (ORCPT ); Thu, 1 Dec 2022 02:03:38 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C60C862F6; Wed, 30 Nov 2022 23:03:36 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B15A2GJ009555; Thu, 1 Dec 2022 07:03:04 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=2qT5K9rHZ2k+os7b5m3JWOjmTKB3v7jcnwxt+X1IumY=; b=I41ox6tU+lcR6OuITYdITgXsOjt517iMTGpRKC2I21OBsQx/JVi+v1pgjr0YAfEAghE5 neEjeAZ5vQme8cz16pe0UQZ9vfD3Drzl99BmFObcn/1iUY14uRy+rSrCBAbcvmlhQPh6 RD0rKvGLKar/lYyzkyD54wtEyl1Wrakk0QM8EMWSmcMIfIQTcKSTCNBjHjklpv70/ezD b84J8H1ubaDxUUQ5TUGYJGdt1ZbIn5A1xvwtVD757iVf/HwGxPxN6Zno2ZpPbz/mQerL o18dzwHgaUfYd7g4CeQX6qiaoBoG6D6sUdXAXXLmuf2+/5Ch1HSU1YzCexIRrJ96wFwN jA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3m6kgmgg02-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Dec 2022 07:03:03 +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 2B1732P8018068 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Dec 2022 07:03:02 GMT Received: from [10.216.5.116] (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; Wed, 30 Nov 2022 23:02:55 -0800 Message-ID: <85ddbbfd-15ea-dfda-bf52-bd35c4353aac@quicinc.com> Date: Thu, 1 Dec 2022 12:32:52 +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: Matthias Kaehlcke CC: Nathan Chancellor , , , , , , , , , , , , , , , , , References: <1669726428-3140-1-git-send-email-quic_srivasam@quicinc.com> <65fd2068-4744-221f-f398-da4303b64fca@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: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: 9WqrwfmDjSQiYRwThR4I3FM4PNKDZ-rx X-Proofpoint-GUID: 9WqrwfmDjSQiYRwThR4I3FM4PNKDZ-rx 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-12-01_04,2022-11-30_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 spamscore=0 impostorscore=0 phishscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212010048 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,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 time Matthias, On 11/30/2022 1:38 AM, Matthias Kaehlcke wrote: > On Tue, Nov 29, 2022 at 09:28:33PM +0530, Srinivasa Rao Mandadapu wrote: >> 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. > Older downstream trees needing a change shouldn't impact how a change is done > upstream. The change should be what's best for the upstream kernel. Downstream > kernels can do backports which might differ from the upstream solution or > pick the missing dependencies (which might not be too hard in this case). Okay. Will take care next time. > >>>> --- >>>> 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 >>>> >>>>