[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100304170030.f97c6630.akpm@linux-foundation.org>
Date: Thu, 4 Mar 2010 17:00:30 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Joe Perches <joe@...ches.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Nick Andrew <nick@...k-andrew.net>,
linux-kernel@...r.kernel.org, Greg Kroah-Hartman <gregkh@...e.de>,
netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] device.h drivers/base/core.c Convert dev_<level>
macros to functions
On Thu, 4 Mar 2010 16:56:09 -0800 Andrew Morton <akpm@...ux-foundation.org> wrote:
> On Wed, 3 Mar 2010 22:27:23 -0800 Joe Perches <joe@...ches.com> wrote:
>
> > Save ~60k in a defconfig
> >
> > Use %pV and struct va_format
> > Format arguments are verified before printk
>
> Well that doesn't work very well.
>
> drivers/net/pcmcia/pcnet_cs.c:117: error: 'dev_info' redeclared as different kind of symbol
> include/linux/device.h:645: error: previous declaration of 'dev_info' was here
>
> there are lots of other dev_info's which will fail plus perhaps
> dev_err's, etc.
>
btw, this may be kludgeable aroundable by doing
int _dev_info(const struct device *dev, const char *fmt, ...);
#define dev_info(...) _dev_info(...)
which will use the preprocessor's separation of `foo' from `foo()' to
fix things up.
But it would be better to rename all those dev_info's to device_info or
whatever, IMO.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists