lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 16 Sep 2016 10:07:15 +0800
From:   Axel Lin <axel.lin@...ics.com>
To:     Kevin Hilman <khilman@...libre.com>
Cc:     Kishon Vijay Abraham I <kishon@...com>,
        Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
        Jerome Brunet <jbrunet@...libre.com>,
        linux-kernel@...r.kernel.org, Axel Lin <axel.lin@...ics.com>
Subject: [PATCH] phy: meson-usb2: Fix build dependency

of_usb_get_dr_mode_by_phy will not be compiled if !USB_COMMON, fix below
build error:

drivers/built-in.o: In function `phy_meson_usb2_probe':
debugfs.c:(.text+0x76b4): undefined reference to `of_usb_get_dr_mode_by_phy'
Makefile:961: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

Signed-off-by: Axel Lin <axel.lin@...ics.com>
---
 drivers/phy/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index 6ad87ec..cc27c12 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -458,6 +458,8 @@ config PHY_MESON_USB2
 	tristate "Meson USB2 PHY driver"
 	default ARCH_MESON
 	depends on OF && (ARCH_MESON || COMPILE_TEST)
+	depends on USB_SUPPORT
+	select USB_COMMON
 	select GENERIC_PHY
 	help
 	  Enable this to support the Meson USB2 PHYs found in Meson8b
-- 
2.7.4

Powered by blists - more mailing lists