Re: [PATCH -next] comedi: fix build when USB is not enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/18/2012 05:50 PM, Greg Kroah-Hartman wrote:

> On Fri, May 18, 2012 at 05:46:13PM -0700, Randy Dunlap wrote:
>> From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
>>
>> Calls to optional subsystems cannot be made indiscriminately.
>> Enclose all of the usb helper functions inside
>> #if IS_ENABLED(CONFIG_USB)
>> to fix these build errors.
>>
>> (The pci helper functions are OK since there are stubs in
>> linux/pci.h for the called functions when PCI is not enabled.
>> Possibly the same could be done for the called USB functions.)
>>
>> ERROR: "usb_deregister" [drivers/staging/comedi/comedi.ko] undefined!
>> ERROR: "usb_register_driver" [drivers/staging/comedi/comedi.ko] undefined!
> 
> I would rather stub these out in usb.h instead, care to make a patch for
> that?


I'll see how that goes...

-- 
~Randy
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux