From: David Cohen <david.a.cohen@linux.intel.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Mathias Nyman <mathias.nyman@linux.intel.com>,
linux-usb@vger.kernel.org, sarah.a.sharp@linux.intel.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM
Date: Thu, 24 Apr 2014 13:15:11 -0700 [thread overview]
Message-ID: <20140424201511.GC16923@psi-dev26.jf.intel.com> (raw)
In-Reply-To: <20140424195032.GE12809@kroah.com>
Hi Greg,
On Thu, Apr 24, 2014 at 12:50:32PM -0700, Greg KH wrote:
> On Tue, Apr 22, 2014 at 03:23:02PM +0300, Mathias Nyman wrote:
> > From: David Cohen <david.a.cohen@linux.intel.com>
> >
> > When CONFIG_PCI and CONFIG_PM are not selected, xhci.c gets this
> > warning:
> > drivers/usb/host/xhci.c:409:13: warning: ‘xhci_msix_sync_irqs’ defined
> > but not used [-Wunused-function]
> >
> > Instead of creating nested #ifdefs, this patch fixes it by defining the
> > xHCI PCI stubs as inline.
> >
> > Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
> > Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
> > ---
> > drivers/usb/host/xhci.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
>
> What patch caused this problem? Does it show up in 3.14? 3.10? 2.0?
> :)
>
> Please be more specific...
I first noticed this warning on 3.13, but I believe it is older :)
You may consider this patch as an extension of this other one:
commit d5c82feb5cf8026cd4af048330fdcd46e861c686
Author: Olof Johansson <olof@lixom.net>
Date: Tue Jul 23 11:58:20 2013 -0700
usb: xhci: Mark two functions __maybe_unused
--
IMO it makes sense to apply whenever the other patch exists.
Br, David
next prev parent reply other threads:[~2014-04-24 20:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 12:22 [PATCH 0/5] xhci: fixes for 3.15-rc usb-linus Mathias Nyman
2014-04-22 12:22 ` [PATCH 1/5] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb Mathias Nyman
2014-04-24 19:49 ` Greg KH
2014-04-24 20:15 ` Julius Werner
2014-04-22 12:22 ` [PATCH 2/5] xhci: Use pci_enable_msix_exact() instead of pci_enable_msix() Mathias Nyman
2014-04-24 19:49 ` Greg KH
2014-04-25 10:48 ` Mathias Nyman
2014-04-22 12:23 ` [PATCH 3/5] xhci: Switch Intel Lynx Point ports to EHCI on shutdown Mathias Nyman
2014-04-24 19:49 ` Greg KH
2014-04-22 12:23 ` [PATCH 4/5] xhci: extend quirk for Renesas cards Mathias Nyman
2014-04-24 19:50 ` Greg KH
2014-04-22 12:23 ` [PATCH 5/5] usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM Mathias Nyman
2014-04-24 19:50 ` Greg KH
2014-04-24 20:15 ` David Cohen [this message]
2014-04-24 19:50 ` [PATCH 0/5] xhci: fixes for 3.15-rc usb-linus Greg KH
2014-04-25 8:11 ` Mathias Nyman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140424201511.GC16923@psi-dev26.jf.intel.com \
--to=david.a.cohen@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
--cc=sarah.a.sharp@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox