From: David Howells net2280 can't have a function called show_registers() because this can produce a namespace clash with an arch function of the same name. All this driver's functions and variables should really be prefixed with "net2280_" to avoid such a problem in future. Signed-off-by: David Howells Cc: Greg KH Signed-off-by: Andrew Morton --- drivers/usb/gadget/net2280.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/usb/gadget/net2280.c~usb-net2280-cant-have-a-function-called drivers/usb/gadget/net2280.c --- a/drivers/usb/gadget/net2280.c~usb-net2280-cant-have-a-function-called +++ a/drivers/usb/gadget/net2280.c @@ -1419,7 +1419,7 @@ show_function (struct device *_dev, stru static DEVICE_ATTR (function, S_IRUGO, show_function, NULL); static ssize_t -show_registers (struct device *_dev, struct device_attribute *attr, char *buf) +net2280_show_registers (struct device *_dev, struct device_attribute *attr, char *buf) { struct net2280 *dev; char *next; @@ -1571,7 +1571,7 @@ show_registers (struct device *_dev, str return PAGE_SIZE - size; } -static DEVICE_ATTR (registers, S_IRUGO, show_registers, NULL); +static DEVICE_ATTR (registers, S_IRUGO, net2280_show_registers, NULL); static ssize_t show_queues (struct device *_dev, struct device_attribute *attr, char *buf) _