Thread (41 messages) 41 messages, 14 authors, 2006-03-07

Re: Discourage duplicate symbols in the kernel? [Was: Intel I/O Acc...]

From: Chris Leech <hidden>
Date: 2006-03-06 19:56:30
Also in: lkml

On 3/5/06, Andrew Morton [off-list ref] wrote:
Sam Ravnborg [off-list ref] wrote:
quoted
On Sun, Mar 05, 2006 at 12:09:33AM -0800, Andrew Morton wrote:
 > > +
 > > +static inline u8 read_reg8(struct cb_device *device, unsigned int offset)
 > > +{
 > > +        return readb(device->reg_base + offset);
 > > +}
 >
 > These are fairly generic-sounding names.  In fact the as-yet-unmerged tiacx
 > wireless driver is already using these, privately to
 > drivers/net/wireless/tiacx/pci.c.

 Do we in general discourage duplicate symbols even if they are static?
Well, it's a bit irritating that it confuses ctags.  But in this case, one
set is in a header file so the risk of collisions is much-increased.
They're in a header file that's specific to a single driver, so I
don't see where a conflict would occur.  But I didn't think about
ctags, and these can easily be prefixed so I'll go ahead and change
them.

- Chris
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help