Skip to contentSkip to conversation

NFC: Add missing RFKILL dependency for Kconfig

PATCH Applied Marcel Holtmann 3 participants 3 messages Apr 26, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFC: Add missing RFKILL dependency for Kconfig

Since the NFC subsystem gained RFKILL support, it needs to be able to build properly with whatever option for RFKILL has been selected.

on i386:

net/built-in.o: In function `nfc_unregister_device':
(.text+0x6a36d): undefined reference to rfkill_unregister' net/built-in.o: In function nfc_unregister_device':
(.text+0x6a378): undefined reference to rfkill_destroy' net/built-in.o: In function nfc_register_device':
(.text+0x6a493): undefined reference to rfkill_alloc' net/built-in.o: In function nfc_register_device':
(.text+0x6a4a4): undefined reference to rfkill_register' net/built-in.o: In function nfc_register_device':
(.text+0x6a4b3): undefined reference to rfkill_destroy' net/built-in.o: In function nfc_dev_up':
(.text+0x6a8e8): undefined reference to `rfkill_blocked'

when CONFIG_RFKILL=m but NFC is builtin.

---
 net/nfc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/nfc/Kconfig +1 -0
index 60c3bbb..28afdb1 100644
@@ -4,6 +4,7 @@
 
 menuconfig NFC
 	depends on NET
+	depends on RFKILL || !RFKILL
 	tristate "NFC subsystem support"
 	default n
 	help
Signature · 1 line
1.8.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Marcel Holtmann

Since the NFC subsystem gained RFKILL support, it needs to be able to build properly with whatever option for RFKILL has been selected.

on i386:

net/built-in.o: In function `nfc_unregister_device':
(.text+0x6a36d): undefined reference to rfkill_unregister' net/built-in.o: In function nfc_unregister_device':
(.text+0x6a378): undefined reference to rfkill_destroy' net/built-in.o: In function nfc_register_device':
(.text+0x6a493): undefined reference to rfkill_alloc' net/built-in.o: In function nfc_register_device':
(.text+0x6a4a4): undefined reference to rfkill_register' net/built-in.o: In function nfc_register_device':
(.text+0x6a4b3): undefined reference to rfkill_destroy' net/built-in.o: In function nfc_dev_up':
(.text+0x6a8e8): undefined reference to `rfkill_blocked'

Quoted 4 lines

when CONFIG_RFKILL=m but NFC is builtin.

Thanks.

Quoted 17 lines
---
 net/nfc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/nfc/Kconfig +1 -0
index 60c3bbb..28afdb1 100644
@@ -4,6 +4,7 @@
 
 menuconfig NFC
 	depends on NET
+	depends on RFKILL || !RFKILL
 	tristate "NFC subsystem support"
 	default n
 	help
Signature · 1 line
~Randy
Applied
#2 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 18 lines · Marcel Holtmann

Since the NFC subsystem gained RFKILL support, it needs to be able to build properly with whatever option for RFKILL has been selected.

on i386:

net/built-in.o: In function `nfc_unregister_device':
(.text+0x6a36d): undefined reference to rfkill_unregister' net/built-in.o: In function nfc_unregister_device':
(.text+0x6a378): undefined reference to rfkill_destroy' net/built-in.o: In function nfc_register_device':
(.text+0x6a493): undefined reference to rfkill_alloc' net/built-in.o: In function nfc_register_device':
(.text+0x6a4a4): undefined reference to rfkill_register' net/built-in.o: In function nfc_register_device':
(.text+0x6a4b3): undefined reference to rfkill_destroy' net/built-in.o: In function nfc_dev_up':
(.text+0x6a8e8): undefined reference to `rfkill_blocked'

Quoted 7 lines

when CONFIG_RFKILL=m but NFC is builtin.

---
 net/nfc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Applied to nfc-next, thanks.

Cheers,
Samuel.