Skip to contentSkip to conversation

drivers/input/mouse: Fix a "make randconfig" warning at MOUSE_APPLETOUCH dependency with USB_SUPPORT and USB_ARCH_HAS_HCD

PATCH In review Devendra Naga 3 participants 5 messages May 14, 2012 – Jun 7, 2012

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

PATCH 1/1 drivers/input/mouse: Fix a "make randconfig" warning at MOUSE_APPLETOUCH dependency with USB_SUPPORT and USB_ARCH_HAS_HCD

From: Devendra Naga <devendra@devendra.(none)>

when ran make randconfig got the warning

"MOUSE_APPLETOUCH selects USB which has unmet direct dependencies (USB_SUPPORT && USB_ARCH_HAS_HCD)"

---
 drivers/input/mouse/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/Kconfig +1 -1
index cd6268c..044378f 100644
@@ -152,7 +152,7 @@ config MOUSE_SERIAL
 config MOUSE_APPLETOUCH
 	tristate "Apple USB Touchpad support"
 	depends on USB_ARCH_HAS_HCD
-	select USB
+	select USB if USB_SUPPORT && USB_ARCH_HAS_HCD
 	help
 	  Say Y here if you want to use an Apple USB Touchpad.
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 16 lines · Devendra Naga

From: Devendra Naga <devendra@devendra.(none)>

when ran make randconfig got the warning

"MOUSE_APPLETOUCH selects USB which has unmet direct dependencies (USB_SUPPORT && USB_ARCH_HAS_HCD)"

---
 drivers/input/mouse/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/Kconfig +0 -0
index cd6268c..044378f 100644

drivers/input/mouse/Kconfig config MOUSE_SERIAL · line 155

Quoted 5 lines
drivers/input/mouse/Kconfig +1 -1
@@ -152,7 +152,7 @@ config MOUSE_SERIAL
 config MOUSE_APPLETOUCH
 	tristate "Apple USB Touchpad support"
 	depends on USB_ARCH_HAS_HCD
-	select USB
+	select USB if USB_SUPPORT && USB_ARCH_HAS_HCD

Depending on USB_ARCH_HAS_HCD and then having it as a part of 'if' condition seems odd.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#2 lore raw

Hi Jiri,

Thanks for the review.

Quoted 5 lines · Jiri Kosina
Quoted 5 lines
drivers/input/mouse/Kconfig +0 -0
index cd6268c..044378f 100644
@@ -152,7 +152,7 @@ config MOUSE_SERIAL
Quoted 9 lines
Quoted 5 lines

 config MOUSE_APPLETOUCH
      tristate "Apple USB Touchpad support" depends on USB_ARCH_HAS_HCD
-     select USB
+     select USB if USB_SUPPORT && USB_ARCH_HAS_HCD

Depending on USB_ARCH_HAS_HCD and then having it as a part of 'if' condition seems odd.

So,
+ depends on USB_SUPPORT && USB_ARCH_HAS_HCD
will be good ?

Quoted 5 lines

Thanks,

--
Jiri Kosina
SUSE Labs

Thanks,
Devendra.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#3 lore raw
Quoted 19 lines · devendra.aaru

Hi Jiri,

Thanks for the review.

Quoted 5 lines · Jiri Kosina
Quoted 5 lines
drivers/input/mouse/Kconfig +0 -0
index cd6268c..044378f 100644
@@ -152,7 +152,7 @@ config MOUSE_SERIAL
Quoted 8 lines

drivers/input/mouse/Kconfig config MOUSE_SERIAL · line 155

Quoted 5 lines
drivers/input/mouse/Kconfig +1 -1
 config MOUSE_APPLETOUCH
      tristate "Apple USB Touchpad support"
      depends on USB_ARCH_HAS_HCD
-     select USB
+     select USB if USB_SUPPORT && USB_ARCH_HAS_HCD

Depending on USB_ARCH_HAS_HCD and then having it as a part of 'if' condition seems odd.

Quoted 3 lines

So,
+ depends on USB_SUPPORT && USB_ARCH_HAS_HCD
will be good ?

I'd rather we "select"ed the new symbol. So please do

depends on USB_ARCH_HAS_HCD
select USB
+ select USB_SUPPORT

Thanks.

Signature · 1 line
Dmitry
#4 lore raw

Hello Dimitry,

Quoted 11 lines · Dmitry Torokhov

I'd rather we "select"ed the new symbol. So please do

       depends on USB_ARCH_HAS_HCD
       select USB
+       select USB_SUPPORT

Thanks.

--

with your change told, i ran make and got the following error when compiling it.

devendra@devendra:~/linux$ make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/Kconfig:76:error: recursive dependency detected!
drivers/usb/Kconfig:76:	symbol USB_ARCH_HAS_HCD depends on USB_SUPPORT
drivers/usb/Kconfig:58:	symbol USB_SUPPORT is selected by MOUSE_APPLETOUCH
drivers/input/mouse/Kconfig:152:	symbol MOUSE_APPLETOUCH depends on
USB_ARCH_HAS_HCD

It seems that USB_ARCH_HAS_HCD needs to be selected? too.

Quoted 1 line

Dmitry

may i attach .config?

Thanks,
Devendra
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html