From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3017C433F5 for ; Thu, 3 Mar 2022 15:56:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E65A7193B; Thu, 3 Mar 2022 16:55:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E65A7193B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1646323010; bh=InC9xaVPcWhBcn1swTSH2FFWicOR2y5qBtTa3QQr7uw=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=u4ybmtOBvVw2dtjQSBZ7nzFV20znLyW2VCImV3nStgOMqW/fbgwwgJcKugLS3H+sc AkSiwHNPzEvlzmMuroXHps8ma4FXTMOBe94aJurTTi3Bh9ply5/bBjYkfa/CXOwGkv Tr5tyootVUNcDmWK/4Y9HJzzvoknz1PcL7srl6/U= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7DD7FF8013D; Thu, 3 Mar 2022 16:55:59 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 40BDBF80152; Thu, 3 Mar 2022 16:55:58 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1C3C2F8013D for ; Thu, 3 Mar 2022 16:55:55 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1C3C2F8013D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hClBiL+L" 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 ams.source.kernel.org (Postfix) with ESMTPS id 45A3CB82624; Thu, 3 Mar 2022 15:55:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C8E0C004E1; Thu, 3 Mar 2022 15:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646322954; bh=InC9xaVPcWhBcn1swTSH2FFWicOR2y5qBtTa3QQr7uw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hClBiL+Ltur/DgONFRhoVM3OfVvvCPyF0ICITY2WNLgTqvYz96QZ6lVWz+Qo99kbG u7hwyD/HcYK2ECx77U6JkCFttjTzZZShwyz/YRtDNYRdYz2nP6NgzupPw8HN6T4CJn SaJI4UjmXESWPF9LcPHF9XJixKu3qRZu7fx1OsAnhHJGjmERghjOHQnspL8RqnK/KO wKxpVwIm5omY6VxwXyfgwefu3ReEvBJTTMa1G3+SqLywkHHpbMYNn5PGLQoyyF+RAE I8ccgP3K7he+0RNDH2WrSBP9r9U3ryTKHCdeweHbjZ2OUKf4m+V8wE7QbLnVkPvfte oVbWJ5K7mTm8g== Date: Thu, 3 Mar 2022 21:25:49 +0530 From: Vinod Koul To: Srinivas Kandagatla Subject: Re: [PATCH] soundwire: qcom: fix build failures if CONFIG_PM=n Message-ID: References: <20220303110321.23666-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220303110321.23666-1-srinivas.kandagatla@linaro.org> Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Stephen Rothwell , pierre-louis.bossart@linux.intel.com, linux-kernel@vger.kernel.org, Geert Uytterhoeven , yung-chuan.liao@linux.intel.com, quic_srivasam@quicinc.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 03-03-22, 11:03, Srinivas Kandagatla wrote: > Fix below build failure > drivers/soundwire/qcom.c:1460:12: error: 'swrm_runtime_resume' defined > but not used [-Werror=unused-function] > by marking the resume swrm_runtime_resume() with __maybe_unused attribute. A patch title should reflect the change and not the cause. So i have taken liberty to fix it as: soundwire: qcom: use __maybe_unused for swrm_runtime_resume() swrm_runtime_resume() would not be defined when CONFIG_PM=n This causes below build failure drivers/soundwire/qcom.c:1460:12: error: 'swrm_runtime_resume' defined but not used [-Werror=unused-function] Mark the resume swrm_runtime_resume() with __maybe_unused attribute. With this i have applied -- ~Vinod