From patchwork Thu Nov 2 11:08:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 117783 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp1919614edm; Thu, 2 Nov 2017 04:09:50 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R4zcP9qbYo97uiUYDojuyGMgZnR8M4DU+WHiBzdJyiGnOgGV5EypzNJ7ndbpVMCRt0N/VI X-Received: by 10.159.253.71 with SMTP id b7mr2891596plx.169.1509620990694; Thu, 02 Nov 2017 04:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509620990; cv=none; d=google.com; s=arc-20160816; b=uOLLuaUcsxytSsiJ/lP3WUcWointpSQ+t9otyMxuDHt6V5v0qX7NjbaR63t91mE7NQ fXSd5W7uqnSk7EnK3ou1PrbeZnlt/umpwj3Bw0kzmHG5Z2mSnfobn1XMGRw5cOn586FV xXwOVQVEY+y3R/l509IvjH+ghSHmYX2HNBFuadg2DZ2pWwW1D7/6dlC+/Kdwsn3HOm7/ 2kf77zs1l6A2o2CN6jnvMl3B0bnbEZePzvN7q6IAJcgbuJJUnhtyuCrnmrMxcoWlp7HE vphsKCLvJTq9oB2xCn0qSyUgJeKfmpXi8UEWvwOqcibW0Is1OLl7DxYNJ8o8UdZxlr5K fvXg== 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=+x0DSGNSd2BB7l4irbNWG1ogtvnGIF1Rx2s5DppfbEA=; b=IHkebqQWXkO8DFFesYmXUvaccWpdON93TtJvjdrxc4oi1Vd/NqpyIBNO5s6251r4eD pRyGFu2MoeI2ot7YwjW+DPAws2hTRwrxBob7vd2551tesPIdn7hr2bCIyEBlo9rb4gnf EHjWsR/Wc8k6pDgZRY0HdanlVEmmH/iqRXpv8IcJKSw5pViVYQ+hbz4GnAkshErkymDh UeOOhduOWLfIra5TNHcAIuklY11alIVR1qdLgMGoH3BFpXeWijsVNU42Pg+jSI0Dw6dH +wt05hxomH7XGGGx+YRhrOgFBkKXKy7RahLMz7KxGuo7BGt4kDzKbzbqYVZOsF0ximAJ 3Kbw== 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 b15si3685912pfc.18.2017.11.02.04.09.50; Thu, 02 Nov 2017 04:09:50 -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 S1755862AbdKBLJs (ORCPT + 26 others); Thu, 2 Nov 2017 07:09:48 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:61691 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755842AbdKBLJp (ORCPT ); Thu, 2 Nov 2017 07:09:45 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0LZvn3-1dRCzH3BRF-00lpB8; Thu, 02 Nov 2017 12:09:06 +0100 From: Arnd Bergmann To: Kalle Valo Cc: Arnd Bergmann , Ryan Hsu , Govind Singh , Srinivas Kandagatla , Ashok Raj Nagarajan , Ben Greear , Brian Norris , Colin Ian King , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ath10k: move pci suspend/resume functions Date: Thu, 2 Nov 2017 12:08:53 +0100 Message-Id: <20171102110903.2886660-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:KRinh/Ctkc9Qa3fJoQtPt8H3Kmj8feCkxXPI3+unK2vh2rTU8ss GYyZP8kPnfU2t9j5GjOyA8imm9p+ZPgxgaKpNexSFQZy+ueEBfFLkMCy+NTzU/YeJ14RAg5 Rfv1XM6L8qTmbZCqdXjI+jR23gYPkaijTRBMETmxQmGtS9QHB+cQPl8R+CBNaE9y9S8zD5h SSziXqTWvCOCy8xPE7XcQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:TOiLmo1QlxE=:umwTVvE5kMtq6+aK+7Hyll URUmC4qZsITzYALS6hQZrKMNREQvpYLzARZHzuiBYhaMrrD3xoF4gOUz9cwwsfj1Hj5rYEnFm i9Pi2wMD+FFitxjPK/VlN42elBumWktE98g036ipD/eZG0dgb6OZBIMFPGFAYqNXHjPHxgayW tbx8DLNJLMOJfBBjKRRzDQ4dAz1uHVS7m0g4ARnqszU6IbKnnXL0UR7q6f5nqXy8f2VvrizxQ 8mS9DWxOtIR1yxWqnWEf8DvfgHeskWyRCnUBjR9xaH4WhJF1bYnlLgBFPcCZj76N3FHTnZjaJ eAXF3S63m86T/ccXXlm1/X6O4Zp1mkr2P+aMvQuFMvHXlAUvRPUqykF/CMiNPB35WGHc8mzUL H8C+7yYaXs36AxbqlreNr8X9CM0FZPIM4yu7UW6gOdx3zzmlKoD1cnkt20lzEWPAURsMD1KnN erA41+2YGwMwOktn2XDyskoaUTuLCg+tJBqAD9BW2hooFemJXWx8pwtKm/cbGUSRbf2zYRK1K F4zfM7KCubCZT01RKDxXHnr1cM2ajTSNiKVmxvKqYYwIx2e8zmSvDG+s12sR2tqvqe1krBQGu CkmdH/vuk8XGGOGyNPedhi7nT9Lxlejd8y3nJDMvnDfhUpXW/LfFMz2UamkXdjrNG6nCzb5C4 no1rNzGfUIJiYTaMOHkFZilSlT1AN/YURAhBJiwEl9chY/5YG+XQLy3v/UclQCEY2f0r1O4pg Ue5fIFDrHItCA6q2ThNmQvTPPlSlE27qlsQqeQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The combination of two patches has led to a build failure: drivers/net/wireless/ath/ath10k/pci.c: In function 'ath10k_pci_pm_suspend': drivers/net/wireless/ath/ath10k/pci.c:3416:8: error: implicit declaration of function 'ath10k_pci_suspend'; did you mean 'ath10k_pci_pm_suspend'? [-Werror=implicit-function-declaration] drivers/net/wireless/ath/ath10k/pci.c: In function 'ath10k_pci_pm_resume': drivers/net/wireless/ath/ath10k/pci.c:3428:8: error: implicit declaration of function 'ath10k_pci_resume'; did you mean 'ath10k_pci_pm_resume'? [-Werror=implicit-function-declaration] This moves the functions outside of the now incorrect #ifdef. Fixes: 96378bd2c6cd ("ath10k: fix core PCI suspend when WoWLAN is supported but disabled") Fixes: 6af1de2e4ec4 ("ath10k: mark PM functions as __maybe_unused") Signed-off-by: Arnd Bergmann --- drivers/net/wireless/ath/ath10k/pci.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.9.0 diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index b18a9b690df4..6513edbd86e6 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -2585,6 +2585,13 @@ static int ath10k_pci_hif_suspend(struct ath10k *ar) return 0; } +static int ath10k_pci_hif_resume(struct ath10k *ar) +{ + /* Nothing to do; the important stuff is in the driver resume. */ + return 0; +} +#endif + static int ath10k_pci_suspend(struct ath10k *ar) { /* The grace timer can still be counting down and ar->ps_awake be true. @@ -2597,12 +2604,6 @@ static int ath10k_pci_suspend(struct ath10k *ar) return 0; } -static int ath10k_pci_hif_resume(struct ath10k *ar) -{ - /* Nothing to do; the important stuff is in the driver resume. */ - return 0; -} - static int ath10k_pci_resume(struct ath10k *ar) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); @@ -2627,7 +2628,6 @@ static int ath10k_pci_resume(struct ath10k *ar) return ret; } -#endif static bool ath10k_pci_validate_cal(void *data, size_t size) {