Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp783247pxm; Thu, 3 Mar 2022 04:41:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJznJSdhGFRxfcKz5yoweZuUOf3sHkU95jldoNwsYY+l/rYfICHOVTS55+yIYNqIhbTHpEvR X-Received: by 2002:a17:902:e745:b0:151:5474:d3ed with SMTP id p5-20020a170902e74500b001515474d3edmr24388685plf.106.1646311281657; Thu, 03 Mar 2022 04:41:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646311281; cv=none; d=google.com; s=arc-20160816; b=AS3WSNY8ciLWqNU5+PzEr/Y522EbR2llsrHnFL9hJeKqF9+oB2BL0CQ6bESHS41q71 diWocDGmJUh1LTMQI8YLOqibpmavnwqYkThruZIRyvhQNNnexdpQmZXQlahQCG2BbXYn gXVfNlNTeCSdBtBCtPA2IXNzj27tzDGuRSKstVgPFZUXIgtSDb1+KR/BRj5Mn2OtjFlV Hua6kHejHG26xBtuJQTaLE6cEuEnxhcu195Mv7hfNzTqGilfP0wURglw93d5Up6xa3TH 8ETRq4FgJCjH0cMfEoIZeITjLIVfATr6TUvuWAiM2eavjzZwu1KYQpb/qNhtLTtZsA7l d+Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8hDu3jQ0/KFwUauJ0s0iiJQ5+oez30L/TC9C+H82oIY=; b=fXx6k6QkbEwpLQPbwfVC8hRtN48dXSfyigYk+aJPWPA/QYkxGT1gk4hUhQGRvs4vak XIvir6wmCzvLNYWLOjwdvVaRGRqJlkqFWseqjBtTlOWNxGatije1Z4Y7GB97MvU3llOA ysSfY5ibe889oULXAS1Jc5Fp68L+A2/Afk7EBEPwCDzFixnoYlq1xPoI+NZMy/R0q/KQ 9GFIoLBcBP/xPETBx8oDG7oBIyf3PmTVKPJV4Vn5rrXGryOGQWWqTLVse+wil0CEtRlz yBBpj8N3h1SR410V/GZ5aQO4oOWLORGPddZ2AtDc/ZEP3r6uE34r688FVWEzU4tO7vJG S0iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XDYOccH9; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a631c03000000b0034df99c51a2si2103827pgc.545.2022.03.03.04.41.06; Thu, 03 Mar 2022 04:41:21 -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=@linaro.org header.s=google header.b=XDYOccH9; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232591AbiCCLEP (ORCPT + 99 others); Thu, 3 Mar 2022 06:04:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbiCCLEO (ORCPT ); Thu, 3 Mar 2022 06:04:14 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79A6F1451D0 for ; Thu, 3 Mar 2022 03:03:29 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id bk29so7231688wrb.4 for ; Thu, 03 Mar 2022 03:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8hDu3jQ0/KFwUauJ0s0iiJQ5+oez30L/TC9C+H82oIY=; b=XDYOccH9/feL6Ga45UDMA4UeGQ2IytWYoXsBswjEKD7uNTlpf0VtbxzB3avjKa0Xr2 GyImAA3NbJi7tuwKzXOol2I72Z+rEZSPw+LyUw6NdzxexCd5VQ1K5h/R9Hub5aeFHcan ivv0S/qSgsVYRr1oyWRIpSau/cOF/2FqgjGotx/sLggikMWwsaH4JJ0RP+Yeusqm89H0 XJN+C3MG05/iJxVFre2ytXzWNm9wNEfw7iaKgLY+o1QyPP6l+rI65MCP+EhVZuhzh6Rf H/CfoqcTUwHjZb2TxaQgltSIKz5RObYoNSsv3Y+zYHUKcmAO85IFb4Xj1cnBkzqYjvgQ zWvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8hDu3jQ0/KFwUauJ0s0iiJQ5+oez30L/TC9C+H82oIY=; b=0sOs8ZKDqGoRLqIljuy+C3QVjBWSAJOt+ft8jEc7/nnTP1cnxuDXZSX/iptPvIZiwW iu2Yml4wQAt4n+bLYNLjOSSJuKJwxiZ0JTBG+a+E9XOcmrQTQGOomY/XUKwPgc5dOrF4 WkphE/zLZgxBCyDE1+f9LBhi9KGobHmeC988pdRWMPzHBMDXy5khj3OI/BUUnZIxzhwy DRFOTrlYDSeGxgSBrS9MskE4s5UudqcCJc0ZREpVuw9WnfBMsgYD1NzXP3RtNHDll74d uEhvML0c4QsrDSMTakCxM4jSXeLlEXw5SZLtlvXuRAiwur+mhQbCrS+UEww7yP0k+eNp oKVw== X-Gm-Message-State: AOAM533fJXRZ7PubUQoqUjdED+YQ3j4htCuPKXcPE6qiol36vQ3HrqwH HG2przXM7prUQgL23IhpG49Wew== X-Received: by 2002:adf:a199:0:b0:1f0:20f5:8f79 with SMTP id u25-20020adfa199000000b001f020f58f79mr7842466wru.296.1646305408054; Thu, 03 Mar 2022 03:03:28 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id p16-20020adff210000000b001f062b80091sm638187wro.34.2022.03.03.03.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 03:03:27 -0800 (PST) From: Srinivas Kandagatla To: vkoul@kernel.org, yung-chuan.liao@linux.intel.com Cc: pierre-louis.bossart@linux.intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, quic_srivasam@quicinc.com, Srinivas Kandagatla , Geert Uytterhoeven , Stephen Rothwell Subject: [PATCH] soundwire: qcom: fix build failures if CONFIG_PM=n Date: Thu, 3 Mar 2022 11:03:21 +0000 Message-Id: <20220303110321.23666-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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. Reported-by: Geert Uytterhoeven Reported-by: Stephen Rothwell Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index e893aee1b057..6575695cd400 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1459,7 +1459,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm) return false; } -static int swrm_runtime_resume(struct device *dev) +static int __maybe_unused swrm_runtime_resume(struct device *dev) { struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dev); int ret; -- 2.21.0