From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755226AbbIAHvq (ORCPT ); Tue, 1 Sep 2015 03:51:46 -0400 Received: from mga09.intel.com ([134.134.136.24]:26637 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbbIAHvo (ORCPT ); Tue, 1 Sep 2015 03:51:44 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,447,1437462000"; d="scan'208";a="795253957" Message-ID: <55E5597F.6050904@linux.intel.com> Date: Tue, 01 Sep 2015 10:53:35 +0300 From: Mathias Nyman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Dave Hansen CC: dave.hansen@linux.intel.com, mathias.nyman@intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] xhci: fix warning when CONFIG_PM disabled. References: <20150831212654.F4280929@viggo.jf.intel.com> In-Reply-To: <20150831212654.F4280929@viggo.jf.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.09.2015 00:26, Dave Hansen wrote: > From: Dave Hansen > > I have a .config with CONFIG_PM disabled. I get the following > whenever compiling the xhci driver: > > drivers/usb/host/xhci-pci.c:192:13: warning: ‘xhci_pme_quirk’ defined but not used [-Wunused-function] > > Looks like we just need to move xhci_pme_quirk() to be underneath > the CONFIG_PM #ifdef. > There is a patch for this already, I'll send it forward right after the merge window http://marc.info/?l=linux-usb&m=143988457116356&w=2 -Mathias