Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763616AbXKIPfy (ORCPT ); Fri, 9 Nov 2007 10:35:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763450AbXKIPe5 (ORCPT ); Fri, 9 Nov 2007 10:34:57 -0500 Received: from mx1.redhat.com ([66.187.233.31]:47185 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763412AbXKIPev (ORCPT ); Fri, 9 Nov 2007 10:34:51 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells Subject: [PATCH 3/6] USB: net2280 can't have a function called show_registers() [try #5] To: torvalds@osdl.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-am33-list@redhat.com, dhowells@redhat.com Date: Fri, 09 Nov 2007 15:34:48 +0000 Message-ID: <20071109153447.20803.95194.stgit@warthog.procyon.org.uk> In-Reply-To: <20071109153432.20803.69832.stgit@warthog.procyon.org.uk> References: <20071109153432.20803.69832.stgit@warthog.procyon.org.uk> User-Agent: StGIT/0.13 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1580 Lines: 40 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 --- drivers/usb/gadget/net2280.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index d5d473f..9e14d98 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c @@ -1419,7 +1419,7 @@ show_function (struct device *_dev, struct device_attribute *attr, char *buf) 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, struct device_attribute *attr, char *buf) 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) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/