Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1000786pxm; Thu, 3 Mar 2022 08:28:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsTIgMUmStGTHU9/rk9mj5UO7Hi70wJ9+NA1YX16eglRdcKuI0RVdhUxoXK+D9TpZJRhp7 X-Received: by 2002:a17:907:11d9:b0:6b4:2462:b460 with SMTP id va25-20020a17090711d900b006b42462b460mr27410414ejb.279.1646324918236; Thu, 03 Mar 2022 08:28:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646324918; cv=none; d=google.com; s=arc-20160816; b=JhvuaaWUWLin6C+aV6fZI8iNqF451AgXilKk7sXouisalPrfQqHnqAUobx47e5qZjv qJ4nFfRa3NK7jC01VAzOe2EDkEWOiW/NatDYE/oxky8zt0daM93Pk504TXqyHENs9UDX vxdULiWHrVI1jB7H7cMOmFYNOIDQkoFMSCoyuBIdQspQ9hEaYIcYIGow2A6tU2SHczDO 70l5AzRQ7L1I4px0SvFyalXj53buxvK5+evJwtKnTLUdjgHt8ld8v0KAe/W/+xGY8PBJ tevhMc1iCH7fh2Vstx6BQaBjrrWuAIFgm/JybocYE3gr8IHF4Z1Qlw07dkBkSOpX0AvY pIOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uqRyhshp91QIKAuC15Hp/6yskgnzsAPcch3bskaNXhM=; b=bS4Jh1KHSoIW6HGJY8TlL+rGVm4TqU3Yh9WQjD7VCiCBkeGKmYdH0/vRlG1oXEc4GF W8Lb5Yx+sN26UPsRAc/OjUUYuMEIoOXzVE/aQa55gkxeNZGeHXuY/Kier5SQJ16b+2sW Fr/CtRY+EAJCig6rM5zp8pZHTBsRUXJRqDZJYttOdQ9qXR7wowl2ofkOhs7zg/MExRqp iejxqttFJIXMZ58iz+PurNoMEhQVaG+vzlZ+gJ3BJNEL33ifoFIXYrF+rjtDqDBI3TTW JV4qVvBKzaF82ID8aIomTBafcOT8rUdOIq+Vkt3Q8kzxNR5rb6I7csim3cVhCp5Bxo2N hlNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hClBiL+L; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a17090660c900b006d07ebbccf5si1503461ejk.248.2022.03.03.08.28.14; Thu, 03 Mar 2022 08:28:38 -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=@kernel.org header.s=k20201202 header.b=hClBiL+L; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232178AbiCCP4m (ORCPT + 99 others); Thu, 3 Mar 2022 10:56:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230426AbiCCP4k (ORCPT ); Thu, 3 Mar 2022 10:56:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B8A4141E06; Thu, 3 Mar 2022 07:55:55 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id A832D60C2C; Thu, 3 Mar 2022 15:55:54 +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 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 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> X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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