Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1168646pxm; Thu, 3 Mar 2022 11:40:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaowMLBOk1h/4DVRn/64nbEeV7gYilaFpy15CJle5kmHCycSlikU+Zb70WG4MjslP/977W X-Received: by 2002:a17:906:eb03:b0:6cd:7cc2:a677 with SMTP id mb3-20020a170906eb0300b006cd7cc2a677mr28588345ejb.208.1646336444270; Thu, 03 Mar 2022 11:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646336444; cv=none; d=google.com; s=arc-20160816; b=jESaKvi+SzgmcUyVqYw1/13UF+TzZx9WvmYfCovzXprZHv0zMccYsfymprX2BW9+Lo bpVng217ANcL1msgxk0vCo9kerE4j1ij0v6t9sep+iZWZMqY4CD2l5KFgW2uoIbkc0t9 WigN2MPsRBw2oRHaTTnK55pnxl/B7IeKmqOF+vlO+CVxegsaxAw1RNtwuaNQHXnIJvKd JmkN5RYjnXxm0O96J7+6h8TgsfnPN181jhQnfJfnNP8UMwBeKKQ6fGkTTV62HX/X8MAK kC9sxdt4ESN4MqUBD32qvXWe7IDDe5WfTBZzyCYpK3aTeyfsvCZW703DifKsL8zrHGWo 2RCg== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=e9uAigxs46BqjYn/NnAb73WG4q/CVGltu1N4Y/zwCMs=; b=ya8uRbouscP5r58RJ03TlhCAGifzRHitA3j6+i01qQo6QpqMaWFPuMgiQIG6W9hilT 3CCXd4O2FWx4M6GfnquBWuxz2R6qmu0LIZChciFCAkkrLlnnoBXKOFDxxYo4fNI7aT+o ks/woeAGkautx3HrrWQUbQMV4amNZEYwkhu7b3FJjOBJBLqyFd6zezP1qQSJGKB4IVRR wLso55U/VuVGM5nUwdOtPkZ4cHDGmxA8jN3eolSUT5vq0ysBYMEwtF7i6TOCi+9S78ws feekdSoICLQfNW0227ByyqOajC/Voj3hBsBZnBzGIdiYvZG9TR/RSPnAKHkOrwzqhlz/ XKjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vcev2SFI; 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 sh13-20020a1709076e8d00b006da6550217csi2019908ejc.358.2022.03.03.11.40.19; Thu, 03 Mar 2022 11:40:44 -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=Vcev2SFI; 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 S235027AbiCCQ3n (ORCPT + 99 others); Thu, 3 Mar 2022 11:29:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235029AbiCCQ3h (ORCPT ); Thu, 3 Mar 2022 11:29:37 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87978F7472 for ; Thu, 3 Mar 2022 08:28:39 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id u1so8639658wrg.11 for ; Thu, 03 Mar 2022 08:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=e9uAigxs46BqjYn/NnAb73WG4q/CVGltu1N4Y/zwCMs=; b=Vcev2SFIz15CNPNz6TgieU6hpUaPUyb2MiXTR9yTHY32sCp/JeqnNvir2PknyHnDzI jJwtHbgTSNp/z0wchPmANaZIrlJdoKv7kQz1OJbLNbX1F0ARrRKmj6RsJBckurzoETnv A8CYJP4srXFo+uv8g+fTSD8j6J0/8NSkTADCX2Ds0k6d+yQqZr96K40JIK4uIYUuUUsH BOAvBEaqJyAQvG3LObSDzHoHEUYtNzGIERv9dbDQLHMN3jskOFXkehgBlp89UmXhWQk7 zgzZhKL0CetqGCoRuobLTnyqYqIe2UA59mgDFLo6Vgv+i/qv6fZ7D4iarndZpeFBLXQp YSZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=e9uAigxs46BqjYn/NnAb73WG4q/CVGltu1N4Y/zwCMs=; b=ofsXWSgkaPuy/Njt3b4ANrcCOwJ6eEJNUQQbKviSB53t0lhNTs0tVeNgxXsZ6JwgWA 2fVS+eGlVqOIzGVc81vW+/JhcBQjJhzPw3cLxeZNX46EGaXRE2okVftf1rySIUqQpNzq /nlxP2Mkohyi9nRTTMx+PWzcsUF6m2K9EemBJQfFLFMuuRTUXQO/5CfCvWKFoZscLswE aypOFgTN9ygi8d+c9sAY9fHJ4BVgShNnBxs7UzUu6JPhRQZloEeNUmdGRM1qAw6sTgkl NrqvPfY1EwBrtunJlV7v5Ykrhx9g4gUnlfXqADXo828q6wCAqORriEA37KJGc6QslkDw m7OQ== X-Gm-Message-State: AOAM5308aDM/QbmR1Z/eHTDLXsWTBuRAlOORfl9Bx7nwRNq1LweBFesX 7YHhg2QHuQOV+VURovlNfmyV/hgF5WEBgw== X-Received: by 2002:adf:f5c3:0:b0:1f0:4b6e:b7e7 with SMTP id k3-20020adff5c3000000b001f04b6eb7e7mr3513863wrp.287.1646324918134; Thu, 03 Mar 2022 08:28:38 -0800 (PST) Received: from [192.168.86.34] (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.googlemail.com with ESMTPSA id r1-20020a5d4941000000b001ed89dcacbbsm2419346wrs.23.2022.03.03.08.28.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Mar 2022 08:28:37 -0800 (PST) Message-ID: Date: Thu, 3 Mar 2022 16:28:36 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] soundwire: qcom: fix build failures if CONFIG_PM=n Content-Language: en-US To: Vinod Koul Cc: yung-chuan.liao@linux.intel.com, pierre-louis.bossart@linux.intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, quic_srivasam@quicinc.com, Geert Uytterhoeven , Stephen Rothwell References: <20220303110321.23666-1-srinivas.kandagatla@linaro.org> From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 03/03/2022 15:55, Vinod Koul wrote: > 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 Thanks Vinod, --srini >