Re: [PATCH] USB: serial: fix stringify operator in usb-serial-simple
On Sun, Aug 18, 2013 at 09:29:00PM +0200, Yann Droneaud wrote: > From: Yann Droneaud > > usb-serial-simple uses an unknown stringify macro that make > all drivers being named "stringify(vendor)". > > This can be a problem when two drivers have the same (wrong) name: > > kernel: usbcore: registered new interface driver usb_serial_simple > kernel: usbserial: USB Serial support registered for stringify(vendor) > kernel Error: Driver 'stringify(vendor)' is already registered, > aborting... > kernel: usbserial: problem -16 when registering driver stringify(vendor) > kernel: usbserial: USB Serial deregistering driver stringify(vendor) > kernel: usbcore: deregistering interface driver usb_serial_simple > Ugh, sorry about that, I thought there used to be a stringify() macro that used to do this. Nice patch, I'll queue it up. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] USB: serial: fix stringify operator in usb-serial-simple
Le 18.08.2013 21:40, Greg Kroah-Hartman a écrit : On Sun, Aug 18, 2013 at 09:29:00PM +0200, Yann Droneaud wrote: Ugh, sorry about that, I thought there used to be a stringify() macro that used to do this. Nice patch, I'll queue it up. That's __stringify() which is defined in but: 1) inside a string (eg "__stringify(vendor)") it's gonna never work; 2) it's not required here, __stringify(vendor) would be needed if vendor was itself a macro and the macro content was to be converted to a string. Regards. -- Yann Droneaud OPTEYA -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html