From patchwork Mon Aug 13 21:50:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144051 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3564223ljj; Mon, 13 Aug 2018 14:51:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwJi/hLcFzIi18352NAw67da74JJpq4Vvp9uzg2CYvET4dKH1w+yMujTdITN0EFPKC+24TX X-Received: by 2002:a63:5350:: with SMTP id t16-v6mr18298287pgl.196.1534197062737; Mon, 13 Aug 2018 14:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534197062; cv=none; d=google.com; s=arc-20160816; b=lVf9Z1XwnFEbUoW9TrDa9aENyOp8fArsujR6T2apj5Bl63rB38K21FZ42Y1T7+JbnG o+1Ak2ri18G0V0wSfEtiqs7cBuO5HXA3TnoumIcZx3+y1G13NNcujwc46u5MUTw9DKAb QLORSgUEd7EMMRJ6o1VXIfdlB7gUiwWftVVWTE9J33kIeKTPK0t2GWHIwrxzWTBPHgPg Lykf6SwMtXgfwRwLe6nbM8KtBewphbAjBiVMLLMGPkf73+P3/TxGZQXcRPlsJPdkR5aG 6NskIwYKAMSS27yTbZM622HeVkJbsE2L0bURpdoiNUQDAtJioe6BwGfi2wNRNST5gjVi PFhw== 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=wgBLtlxFVRs+JTXPyhwEv7ZwgnZUOANJR40It2tovpM=; b=mvJaNQQOP5xjOOa+loqE0WLP+olcOTBv9rPjsqiEkTnECXkenmutecVV/t5WggrQvw OrNGJ0rj7eRiQ+z7S7b/CU4Ploj0zXU9XE1KPJ3G3sje7lgAmgTfOwrTqEMSjiiS6uOE V7XaLAFN2Oz7VmdbWZFPAuw54Pub9tYTui+tXZqXcVy+1P9V9g6sEViyBYJ0NQLGSuF9 N6nVrtPYNYe7tzf9ksGT/aACUQh5AwPJEyB5R81Q3iFzNBXer/pse6fCNMokqn0tMkq8 9wMNXzvkGh3x5/Mc73PT01Rfn6g0B1eCsOwy15wGcrPx9UBOQPWLtIXU7lOMEGI5kmYu QXuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 o12-v6si20629850pfd.142.2018.08.13.14.51.02; Mon, 13 Aug 2018 14:51:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731950AbeHNAfE (ORCPT + 10 others); Mon, 13 Aug 2018 20:35:04 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:34901 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731137AbeHNAfE (ORCPT ); Mon, 13 Aug 2018 20:35:04 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0LlHiI-1gQ2fM161u-00b6or; Mon, 13 Aug 2018 23:50:50 +0200 From: Arnd Bergmann To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" Cc: Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: stmmac: mark PM functions as __maybe_unused Date: Mon, 13 Aug 2018 23:50:41 +0200 Message-Id: <20180813215046.3663828-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:yHkYOL42QrgSrFmnm4HKk71DoAHMxD4yJJ0Qm/UdpxzCP7w7VsH oe/YXbXosXJpEQmYMaAZXP1pPdZC/emuQtI1ZCIrLbOkDWT6rRPQ/I1BPjZSU6KWXgsqR+6 DG4XEGDdGFlQ3mZ6xTXNcnvtiuD6TgczaZZn0LHpUgwFOPhG/ShwGE6fZw6xHAPTX0FKDlF B1G+7A9T8dYluUwl17saw== X-UI-Out-Filterresults: notjunk:1; V01:K0:sSWmrTSKnPo=:RabkFznQLGSLpzQLM66n7J 83lyhkVgsA918Ns9BalldcXCqiKoQI3lseeO8ZgYkSlunQAgojRICmgAKsrnYnAxIchG5rwYR JE/6dRDkrZrtPTW5/g5BUwbvwj8TTHNfuawUjY88LCPTp8V0YddwRjgwLmaLt3BZkVvlJK7zd ekZvUSZkniwFfk3SAYCtjvMLxHTCLq1F7dsphY2pH5X9VL460fM69G16JvBsLq8v662B09lEJ xd0jNsqsrrRJT9gIAxF2IhoOi/+HA8uZ4jjpuSh14ISQ46lx4GMCf78edJKlTcH+N5ZuQAYVj p8xnQHm0vEG7fJi2zoUysOkMhXtGR9KxTbHa0664CIZ4iFObRFln2Cog7bByxwrc/iZM8+8d3 ATZ3ttF+ta1cNZ+yqBoLk62fR1D/PS5RNlK4xbdL0RDl5Jfca0k64ye1/l/8REB/TkXbKq4xo 91eHo0C2YuQgYOYsvvNcuWr1mnPPcn8nPpuImRGkgwnKAYLsJUZumL8XokupxlFuEWITnyVs+ XZ/rAhQ9L6K9G8uR1xdIMyMkFkZxjzC1M0kpqd7sdQL4jPFisrVeWWGvpIkXLRmIDI+FypLtj /E4fcJsObIyVTUpM9Uo3FWA/Pt+dgzw9xNydsMFFKGUuuuyc2C/fburxem6PZnqLP82aolZ04 a40f3ps6e9feLZm33WEvqbzIC1SlpZe1zYDq5/nBhUWQZCoLb3PZLa4DIKJcDi52ZF5g= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The newly added suspend/resume functions cause a build warning when CONFIG_PM is disabled: drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:324:12: error: 'stmmac_pci_resume' defined but not used [-Werror=unused-function] drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:306:12: error: 'stmmac_pci_suspend' defined but not used [-Werror=unused-function] Mark them as __maybe_unused so gcc can drop them silently. Fixes: b7d0f08e9129 ("net: stmmac: Fix WoL for PCI-based setups") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0 diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c index 6a393b16a1fc..c54a50dbd5ac 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c @@ -303,7 +303,7 @@ static void stmmac_pci_remove(struct pci_dev *pdev) pci_disable_device(pdev); } -static int stmmac_pci_suspend(struct device *dev) +static int __maybe_unused stmmac_pci_suspend(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); int ret; @@ -321,7 +321,7 @@ static int stmmac_pci_suspend(struct device *dev) return 0; } -static int stmmac_pci_resume(struct device *dev) +static int __maybe_unused stmmac_pci_resume(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); int ret;