[PATCH] usb: host: fix implicit declaration error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If USB_PCI is not enabled, this error is triggered.
drivers/usb/host/ehci-pci.c:152:7:
error: implicit declaration of function 'usb_amd_quirk_pll_check';
  152 |   if (usb_amd_quirk_pll_check())
      |       ^~~~~~~~~~~~~~~~~~~~~~~
      |       usb_amd_quirk_pll_enable

Signed-off-by: Ansuel Smith <ansuelsmth@xxxxxxxxx>
---
 drivers/usb/host/pci-quirks.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/usb/host/pci-quirks.h b/drivers/usb/host/pci-quirks.h
index e729de21f..78dd0fce2 100644
--- a/drivers/usb/host/pci-quirks.h
+++ b/drivers/usb/host/pci-quirks.h
@@ -29,6 +29,10 @@ static inline bool usb_amd_pt_check_port(struct device *device, int port)
 {
 	return false;
 }
+static inline bool usb_amd_quirk_pll_check(void)
+{
+	return false;
+}
 #endif  /* CONFIG_USB_PCI */
 
 #endif  /*  __LINUX_USB_PCI_QUIRKS_H  */
-- 
2.24.0




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux