From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [net] fm10k: mark PM functions as __maybe_unused Date: Thu, 18 Jan 2018 15:52:38 -0500 (EST) Message-ID: <20180118.155238.125685805781647337.davem@davemloft.net> References: <20180117155732.7289-1-jeffrey.t.kirsher@intel.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: arnd@arndb.de, netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com, jogreene@redhat.com To: jeffrey.t.kirsher@intel.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:57574 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752062AbeARUwk (ORCPT ); Thu, 18 Jan 2018 15:52:40 -0500 In-Reply-To: <20180117155732.7289-1-jeffrey.t.kirsher@intel.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jeff Kirsher Date: Wed, 17 Jan 2018 07:57:32 -0800 > From: Arnd Bergmann > > A cleanup of the PM code left an incorrect #ifdef in place, leading > to a harmless build warning: > > drivers/net/ethernet/intel/fm10k/fm10k_pci.c:2502:12: error: 'fm10k_suspend' defined but not used [-Werror=unused-function] > drivers/net/ethernet/intel/fm10k/fm10k_pci.c:2475:12: error: 'fm10k_resume' defined but not used [-Werror=unused-function] > > It's easier to use __maybe_unused attributes here, since you > can't pick the wrong one. > > Fixes: 8249c47c6ba4 ("fm10k: use generic PM hooks instead of legacy PCIe power hooks") > Signed-off-by: Arnd Bergmann > Acked-by: Jacob Keller > Tested-by: Krishneil Singh > Signed-off-by: Jeff Kirsher Applied, thanks Arnd.