Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: pci_quirks: fix sparse 'symbol not declared' warning

This commit fixes the following sparse warning:

drivers/usb/host/pci-quirks.c:
- 252: warning: symbol 'usb_hcd_amd_remote_wakeup_quirk' was not
declared. Should it be static?

This function is exported so the fix was to add it's declaration to the
header file.

Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Konrad Zapalowicz and committed by
Greg Kroah-Hartman
342a7493 d30f2065

+1
+1
drivers/usb/host/pci-quirks.h
··· 5 5 void uhci_reset_hc(struct pci_dev *pdev, unsigned long base); 6 6 int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base); 7 7 int usb_amd_find_chipset_info(void); 8 + int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev); 8 9 bool usb_amd_hang_symptom_quirk(void); 9 10 bool usb_amd_prefetch_quirk(void); 10 11 void usb_amd_dev_put(void);