From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 20 Sep 2002 03:28:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 20 Sep 2002 03:28:29 -0400 Received: from mta01ps.bigpond.com ([144.135.25.133]:48374 "EHLO mta01ps.bigpond.com") by vger.kernel.org with ESMTP id ; Fri, 20 Sep 2002 03:28:28 -0400 From: Brad Hards To: Vojtech Pavlik Subject: Re: compile error in pre7-ac2: usb & input Date: Fri, 20 Sep 2002 17:27:10 +1000 User-Agent: KMail/1.4.5 Cc: Meelis Roos , linux-kernel@vger.kernel.org References: <200209200709.20787.bhards@bigpond.net.au> <20020920090955.B79295@ucw.cz> In-Reply-To: <20020920090955.B79295@ucw.cz> MIME-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200209201727.10324.bhards@bigpond.net.au> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 20 Sep 2002 17:09, Vojtech Pavlik wrote: > On Fri, Sep 20, 2002 at 07:09:20AM +1000, Brad Hards wrote: > > On Thu, 19 Sep 2002 23:54, Vojtech Pavlik wrote: > > > On Thu, Sep 19, 2002 at 04:04:08PM +0300, Meelis Roos wrote: > > > > drivers/usb/usbdrv.o: In function `hidinput_hid_event': > > > > drivers/usb/usbdrv.o(.text+0x11573): undefined reference to > > > > `input_event' drivers/usb/usbdrv.o(.text+0x115ee): undefined > > > > reference to `input_event' drivers/usb/usbdrv.o(.text+0x11600): > > > > undefined reference to `input_event' > > > > drivers/usb/usbdrv.o(.text+0x11641): undefined reference to > > > > `input_event' drivers/usb/usbdrv.o(.text+0x11664): undefined > > > > reference to `input_event' drivers/usb/usbdrv.o(.text+0x11682): more > > > > undefined references to `input_event' follow drivers/usb/usbdrv.o: In > > > > function > > > > `hidinput_connect': > > > > drivers/usb/usbdrv.o(.text+0x118d4): undefined reference to > > > > `input_register_device' drivers/usb/usbdrv.o: In function > > > > `hidinput_disconnect': > > > > drivers/usb/usbdrv.o(.text+0x118f3): undefined reference to > > > > `input_unregister_device' > > > > > > Well, you enabled HID as built-in and Input as modular. HID needs > > > Input. > > > > Not quite. CONFIG_USB + CONFIG_USB_HIDDEV doesn't need input. > > Unfortunately CONFIG_USB_HIDINPUT does, and it is a dep_bool. > > The only clean way I can see is to build HID as three seperate modules - > > a core, the input interface, and the hiddev interface. Even that is > > pretty ugly. > > More modules, oh no! Hmmm. You could always build part of the input layer into the kernel unconditionally (like the old keyboard handling code?). Not nice on some embedded applications, though you could probably build an "input.o" that is a bit smaller. Or a version of the "unconditional build" based on some setup determined after the config step. I'm still looking for a better idea - got any? Brad - -- http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9is3OW6pHgIdAuOMRAsoRAJ0Y4nY3/Tj/hAkkOvWnkiwFxCAPfgCfR12Z CuEpRtDLdkwiW+JK4YT3BIQ= =ZUvW -----END PGP SIGNATURE-----