All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thunderbolt: fix compile-test dependencies
@ 2016-11-15 15:58 Arnd Bergmann
  2016-11-15 16:21 ` Lukas Wunner
  0 siblings, 1 reply; 8+ messages in thread
From: Arnd Bergmann @ 2016-11-15 15:58 UTC (permalink / raw)
  To: Andreas Noever
  Cc: Arnd Bergmann, Lukas Wunner, Matt Fleming, Ingo Molnar, linux-kernel

Building the Apple thunderbolt driver on non-x86 machines now produces
a harmless warning:

warning: (THUNDERBOLT) selects APPLE_PROPERTIES which has unmet direct dependencies (EFI && EFI_STUB && X86)

As there is no compile-time dependency to the Apple properties support,
we can make that 'select' statement conditional on the dependencies
of that driver.

Fixes: c9cc3aaa0281 ("thunderbolt: Use Device ROM retrieved from EFI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/thunderbolt/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/thunderbolt/Kconfig b/drivers/thunderbolt/Kconfig
index 0056df7f3c09..4e7d92193b65 100644
--- a/drivers/thunderbolt/Kconfig
+++ b/drivers/thunderbolt/Kconfig
@@ -1,7 +1,8 @@
 menuconfig THUNDERBOLT
 	tristate "Thunderbolt support for Apple devices"
+	depends on (EFI_STUB && X86) || COMPILE_TEST
 	depends on PCI
-	select APPLE_PROPERTIES
+	select APPLE_PROPERTIES if (X86 && EFI_STUB)
 	select CRC32
 	help
 	  Cactus Ridge Thunderbolt Controller driver
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-17 17:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-15 15:58 [PATCH] thunderbolt: fix compile-test dependencies Arnd Bergmann
2016-11-15 16:21 ` Lukas Wunner
2016-11-17 10:00   ` Arnd Bergmann
2016-11-17 13:53     ` Lukas Wunner
     [not found]       ` <3694785.gp6vtA09eN@wuerfel>
2016-11-17 15:12         ` Lukas Wunner
2016-11-17 15:29           ` Arnd Bergmann
2016-11-17 16:18             ` Lukas Wunner
2016-11-17 16:36               ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.