From patchwork Thu Mar 15 16:18:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 131813 Delivered-To: patch@linaro.org Received: by 10.80.210.197 with SMTP id q5csp1676531edg; Thu, 15 Mar 2018 09:19:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELu9B1MIvU2hqJJ03BkIxnrx+P2/832IWv8tcS3eElLJ28hk8Nm9BggH57HzUbsnSmTsDKQu X-Received: by 10.98.247.9 with SMTP id h9mr8183393pfi.212.1521130756032; Thu, 15 Mar 2018 09:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521130756; cv=none; d=google.com; s=arc-20160816; b=hpmgJEVIFxLt1eqBMV54T68PXiX/ukgXFR1OteNlsUoiLjQW27DbBopuJUV4IZ+fEM vXO9Bdyac0gnsVcjFtvNoB1nHskxjKHI0NKeZJ6YyQjfYxJWICsf1dG+VoJMdZx5sqXp iBndeEIFGFvNV2iv6ZehevbPVb3PI5WsengBRdbx2thgGz2IOdI2FxF1eaiTqD8h16QE 3gn0EecvYVLpAYGQTZsir0zmsAVQkjhWN2X+ujEWfxOBkqHkHHYpthaOoJrYmR3v2UF4 p6GX9ZAIFogl2ai315NtTa/4PuOlPZ2sYEweMF5tG4bBJdf2tDFRPgx9EKoiNgCvxW1M yOyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=EfugdCs7yn7qxyXjWwj2MAvF2xD8K3G/qPjLWK//1Vw=; b=O3S817CoAoZD0Hhz29EI3QhGz3Orgr8hpCxMeZ6wL0ZqHBV4JuKPa0QOQ6Hp4SnFXR GM6H9s6bAiXnOZTc378kfZuLc6WPPdlfzlzUML2n4o/pEl2frCJtGyDrZ7RquuKkw98e dOLhxxZNjgqSoU2Lq+M20qwonS2S7LaUTOTWh3pe5Evw7CHmLmrydwnmDDKJOjo8xmBq YhHnST92AEN9lmV7l+qp/6hX4k0cn3qcfOju6i0tBtBUO9TRJkU96VwabT5AQDTj53TO HXgmIMXP40Iu95JrF4oUevCV/sGFpuksz+YWzuCv+K1HwVihFR5YtylE2aHFyLLhmcav nP6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si3257600pgr.617.2018.03.15.09.19.15; Thu, 15 Mar 2018 09:19:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752113AbeCOQTM (ORCPT + 28 others); Thu, 15 Mar 2018 12:19:12 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:55577 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbeCOQTJ (ORCPT ); Thu, 15 Mar 2018 12:19:09 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0LoMri-1eOnbI2V0k-00gasi; Thu, 15 Mar 2018 17:19:02 +0100 From: Arnd Bergmann To: Thierry Reding , Lorenzo Pieralisi , Bjorn Helgaas , Jonathan Hunter Cc: Arnd Bergmann , Manikanta Maddireddy , Stephen Warren , Vidya Sagar , linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: tegra: mark PM functions as __maybe_unused Date: Thu, 15 Mar 2018 17:18:39 +0100 Message-Id: <20180315161901.772729-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:FwSW0MpuubBCFsr8R6uT50AgdYR5VWAITzNF/CN0EhalEH9JX66 RYBGQSwkDwSQnhzt4vofAW/o20RvfFoFOed0KxRr7jUqYzebCpwD/HP52HXvW5Ihu5suRS2 BjBq1En9YEDKO+iUVFH5BzzV7KWP3R6r4uy2tFqRl0ttVMeyZ1uRluTE7L0xkvYYuuIbiu0 Myx2cPDxwKgrT3JZ/8xwQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:fXrB6xAZBN0=:hL1jTtC84nZfq2c2LzYyh6 yjbfyNRL46WSO/5FN7yLYLxGuaewviGg1EztzlxxQ5DzPyIaJZBtgq/WoxED9kDkj9iLr6Gx0 6WtKYmhezhnX5EaGzhSIHiAjPmrOd5kpXBAf0tK/2SdeLME7aLgw0pydeituOPunpn9lpNFKC HhswUPXzacui8LTp+D9HOiKZFRZSRHCj6ZGpn29jiaw3q1XLmFxxTJb+ZWugC4PsBSuUqf6tV HtcXYNVFLdDgwMf6OxQN1GT4eZ1BcEDTFx2L4CP/9krKiYE1BaAbutE/QudJNP1nl3BQEvEan WNKaleJhrZYX3XlTNABxPcy27elip6F1ry65wVvn5tTPdlZqFDffhQpYtF9Mze3GW14h8wght LuhC/5Ubqnpyb/9ipnWSOSOnRjxDwdDWfY3l993XjiW92WYSyVlZjkNCvOg3E6kCmtLRdzGsw dIKfgF2gXz8ilzQDcFb0V2F0ljr7trq6aGFWEYx1YAE0L1e826aOWmOvSbL3E5YSFv017imy0 7MhJWDsCKFcs23xUioqKal6HPWtc9+o4Ws5Mo6UQHBG2muBmWWzJ7hxCKoVkW2DQFjegck6wm 8Upvo6JrgCeOaL3nV+/LwuG523kUvkyhxNWbP4n9f15o9Leu/2to8Hl95lbhtxaoxCj65EaS6 4zOSdCB5Dm4BB15pWzmZRQr2ls+AYhiSoidg9weYMIus8d3aIXTYWub/4Mys+qHnQQXH/rEFk wKyV6xjJSmN/BYvXceW5JHpLeD3WPI7M2bGFDQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new PM support causes a warning when CONFIG_PM is disabled: drivers/pci/host/pci-tegra.c:2482:12: error: 'tegra_pcie_pm_resume' defined but not used [-Werror=unused-function] static int tegra_pcie_pm_resume(struct device *dev) drivers/pci/host/pci-tegra.c:2463:12: error: 'tegra_pcie_pm_suspend' defined but not used [-Werror=unused-function] static int tegra_pcie_pm_suspend(struct device *dev) Marking the functions as __maybe_unused lets the compiler drop them silently instead. Fixes: b90b44154023 ("PCI: tegra: Add power management support") Signed-off-by: Arnd Bergmann --- drivers/pci/host/pci-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Acked-by: Thierry Reding diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index 39c4af9cf055..389e74be846c 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c @@ -2460,7 +2460,7 @@ static int tegra_pcie_remove(struct platform_device *pdev) return 0; } -static int tegra_pcie_pm_suspend(struct device *dev) +static int __maybe_unused tegra_pcie_pm_suspend(struct device *dev) { struct tegra_pcie *pcie = dev_get_drvdata(dev); struct tegra_pcie_port *port; @@ -2479,7 +2479,7 @@ static int tegra_pcie_pm_suspend(struct device *dev) return 0; } -static int tegra_pcie_pm_resume(struct device *dev) +static int __maybe_unused tegra_pcie_pm_resume(struct device *dev) { struct tegra_pcie *pcie = dev_get_drvdata(dev); int err;