From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967591AbdDZU5R (ORCPT ); Wed, 26 Apr 2017 16:57:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52116 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967562AbdDZUz7 (ORCPT ); Wed, 26 Apr 2017 16:55:59 -0400 Date: Wed, 26 Apr 2017 22:55:49 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Mathias Nyman , Yoshihiro Shimoda , Felipe Balbi , Heikki Krogerus , Guenter Roeck , Baolin Wang , Lu Baolu , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: host: xhci: remove #ifdef around PM functions Message-ID: <20170426205549.GA3683@kroah.com> References: <20170421214321.1868547-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170421214321.1868547-1-arnd@arndb.de> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 21, 2017 at 11:42:54PM +0200, Arnd Bergmann wrote: > The #ifdef is slightly wrong as it doesn't cover the xhci_priv_resume_quirk() > function, causing a harmless warning: > > drivers/usb/host/xhci-plat.c:58:12: error: 'xhci_priv_resume_quirk' defined but not used [-Werror=unused-function] > static int xhci_priv_resume_quirk(struct usb_hcd *hcd) > > A simpler way to do this correctly is to use __maybe_unused annotations > that let the compiler silently drop the functions when there is no > reference. > > Fixes: b0c69b4bace3 ("usb: host: plat: Enable xHCI plat runtime PM") > Signed-off-by: Arnd Bergmann > --- > drivers/usb/host/xhci-plat.c | 12 ++++-------- > drivers/usb/host/xhci.h | 5 ----- > 2 files changed, 4 insertions(+), 13 deletions(-) Now applied, thanks. greg k-h