From patchwork Mon Aug 20 09:35:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144555 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3743755ljj; Mon, 20 Aug 2018 02:36:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx/X0+i9X/hgGUelXAcgrgSFLEtb9cTj9y6yxgPRCtKDSRCK83EMtfV/48DR59PQhSxRKev X-Received: by 2002:a1c:3b54:: with SMTP id i81-v6mr25423300wma.143.1534757778780; Mon, 20 Aug 2018 02:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534757778; cv=none; d=google.com; s=arc-20160816; b=MBh2b2OnDw0Ncckq1dVFXq9d+V30I3uUXQWVRmfzgr/bNYpifI/6vKn337HXwLGjPV 3lAboTUfph4OFMQoeSiNHXXx2zhvVn9z7cVMYuLJoL3y8/6nGBHACGEPgh/mXScQd1KJ +jigJK2oB5ltI4R6E5aLUW+792e7tGZXUMwhrwCAh3Mxfk55SLaVfw4CrQ6NM6k98ONh bD2U4SNhYIL8AfypWuvcksHYGYhIuGnL2fRnxj3nUsLC61m9V967eAxjCPDgngxWCBcY cfW4zgGszu61vZD1vnNrHufeG8rd3DG/jtc2RYKj1RpAKYz6JYkthZQ21lKkb3K/eV4S A/xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=IXZYA2NWaLqu3wqXdvwfoXWnrx5iojs7oaJZikofx5E=; b=P/FUP5x0sqs7zTFvWS1ndyUkl/7YCwhUW59f2ffUR5OjhgYxdARvPHuW/Ht0FtB6dK E+6AnkEB3CFqCB9vrtcoYnKg/AdiASHwMePZ/WfoCbAjpvXy0XNE9SILatQzyXQ1yQAr eZ6rxNtAoiNfon3/BTNFU6W5e62sr6g9U7EeuioTmOwkM92bsVhINXpZ5sUY3y8FqgVG KTxGJZ0MnQvW8CvAggEK8yAM+z7XYjGM76yvkukq+xyYQT+Q8L++wSvuYIoRjTP0sXU5 CCz+M6zPD8xA20nBRod5GFWEEE+uBq2UWheZEb9deyEvQi0/Ax0FY58VAVvb4+nd/j5r 6YXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id c17-v6si4511502wrs.235.2018.08.20.02.36.18; Mon, 20 Aug 2018 02:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C09EE267741; Mon, 20 Aug 2018 11:36:16 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 61F4D26779C; Mon, 20 Aug 2018 11:36:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by alsa0.perex.cz (Postfix) with ESMTP id 4620826773F for ; Mon, 20 Aug 2018 11:36:10 +0200 (CEST) Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0LpUcU-1gMupL33uI-00fQRb; Mon, 20 Aug 2018 11:36:09 +0200 From: Arnd Bergmann To: Srinivas Kandagatla Date: Mon, 20 Aug 2018 11:35:37 +0200 Message-Id: <20180820093605.3760472-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:8Akwv0/LmdnmR3g7x7gqBQW73zi3N98rj+ATJoxknTi//9BQdux vYp3UIw9HuQ5U1F+A5jbG+PXfdZrhV6lLkWuBwoh1VUblK79wwZYby0pkTolk2pQFpcIfp9 eizndm3LaPJziM9GYBO9lzWMtYy4tIN9wZ2WehoObAxElGCDGR7vKBTguQViXC2k61802zb 8+tZAMllV0R9QRdC8L5lQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:S90ofa/Kg8s=:6JdmVUpBXFL4CX6QVw+vKt uqr5YvIh3LODR12zBmd1D53BoUHXvs6EFo9gsRa1pKB0sRtGwL85MYNFbKsyp8X9eMpI9lLsd uR3MpsqWEuJrvkQAPZSyz0kojFkdg5hAtTUIFdQNxYEImA+bsghyxVDU/Cq35qLibD2joKEZN CBYfzL3mVtKJQZKbcq5Vz6eK5G8yVa929kXixyGz9EekfAB/pHOEZfw2TJbcCX0MMLhchAqga Jpr/4csWzLsC1CU0fcRdGjfHTZP5xHEARh7CCXi5teUQ3ANASdEpJkVk5LpUV7uLNrFYuL/KQ 8YIWC5qx2C8uuFkx4L+dQ3cfpRqMdG8as/HrJB0ewGiRNGTh0v8fwwfnFLA0STSwtfFipkHGX Y26SRscfmXzu0HrYzGaj+MBxB+gFXb//hQkTEQ0FbzV98YA6oQjUJVKTK2bQ6KAlYQGBZWMhw mro0lizrL6WPMhJS4ljDm6Z0VWivCdf1+Ox0K1QWuOlxWgV2HP5FWVTq8Jk/khoGCz1hKHUSi ZQpDiv+C8l5Z9MEwpWOuUavqC4h03TP02cNuXyNoe5LSIOYC1ZTSpSXtZM5PCcoK2rC37AgzZ bEx2W8aBpnWxbcSA3s+IQYUltE1wrYwXr1F9IvOyZhkn7WaxKR0n1qAyopr7T9zH6i2Mkgbjc lQLEdekESJqmuKurb5vO6UdohKkSnHVBqEyZLnpfFfF+kssRYTcpCQHhDx22ZfYLWjPU= Cc: Greg Kroah-Hartman , Vinod Koul , alsa-devel@alsa-project.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] slimbus: ngd: mark PM functions as __maybe_unused X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org qcom_slim_ngd_runtime_suspend is protected by an #ifdef, qcom_slim_ngd_runtime_idle is now, which causes a build time warning: drivers/slimbus/qcom-ngd-ctrl.c:1470:12: error: 'qcom_slim_ngd_runtime_idle' defined but not used [-Werror=unused-function] Marking both as __maybe_unused lets us get rid of the warning as well as the #ifdef. Fixes: 917809e2280b ("slimbus: ngd: Add qcom SLIMBus NGD driver") Signed-off-by: Arnd Bergmann --- drivers/slimbus/qcom-ngd-ctrl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.18.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c index 8be4d6786c61..14a9d18306cb 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1467,7 +1467,7 @@ static int qcom_slim_ngd_remove(struct platform_device *pdev) return 0; } -static int qcom_slim_ngd_runtime_idle(struct device *dev) +static int __maybe_unused qcom_slim_ngd_runtime_idle(struct device *dev) { struct qcom_slim_ngd_ctrl *ctrl = dev_get_drvdata(dev); @@ -1477,8 +1477,7 @@ static int qcom_slim_ngd_runtime_idle(struct device *dev) return -EAGAIN; } -#ifdef CONFIG_PM -static int qcom_slim_ngd_runtime_suspend(struct device *dev) +static int __maybe_unused qcom_slim_ngd_runtime_suspend(struct device *dev) { struct qcom_slim_ngd_ctrl *ctrl = dev_get_drvdata(dev); int ret = 0; @@ -1491,7 +1490,6 @@ static int qcom_slim_ngd_runtime_suspend(struct device *dev) return ret; } -#endif static const struct dev_pm_ops qcom_slim_ngd_dev_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,