login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
2
Re: [PATCH resend] Make the dev_*() family of macros in device.hcomplete
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Greg KH <gregkh@...>
To: Andrew Morton <akpm@...>
Cc: <Emilian.Medve@...>, <linux-kernel@...>, <hjlipp@...>, <tilman@...>, <gigaset307x-common@...>, <kkeil@...>, <isdn4linux@...>, <mac@...>, <linux-omap-open-source@...>
Subject:
Re: [PATCH resend] Make the dev_*() family of macros in device.hcomplete
Date: Friday, November 2, 2007 - 11:35 am
On Thu, Nov 01, 2007 at 04:57:00PM -0700, Andrew Morton wrote:
quoted text
> On Tue, 30 Oct 2007 08:40:08 -0700 > Greg KH <gregkh@suse.de> wrote: > > > On Tue, Oct 30, 2007 at 05:11:24AM -0700, Medve Emilian-EMMEDVE1 wrote: > > > Hi Greg K-H, > > > > > > > > > > > +#define dev_info(dev, format, arg...) \ > > > > > + dev_printk(KERN_INFO, dev, format, ## arg) > > > > > + > > > > > #ifdef DEBUG > > > > > #define dev_dbg(dev, format, arg...) \ > > > > > - dev_printk(KERN_DEBUG , dev , format , ## arg) > > > > > + dev_printk(KERN_DEBUG, dev, format, ## arg) > > > > > > > > Those extra spaces are there for a good reason, older versions of gcc > > > > are broken without it. So please, put them all back... > > > > > > You mean I should add spaces before commas only where they were > > > initially or to all new code and/or macros? > > > > Put it back where it was, and do the same for all other macros. > > > > > I've observed other kernel code and more often there are no spaces > > > before commas. I'm asking because the CodingStyle document is not very > > > explicit about this rule. > > > > This is a gcc rule, for variable length macros, not a CodingStyle > > guideline. It just will not work without it :) > > > > The space-before-a-comma requirement was for gcc-2.95, iirc. > > It got to the stage where I was the only person testing with gcc-2.95 so I > spent inordinate amounts of time adding spaces before people's newly-added > commas. Fortunately we abamdoned that gcc version so the space-before-a-comma > requirement no longer exists.
Ah, ok, that's good to remember in the future, thanks. greg k-h -
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH resend] Make the dev_*() family of macros in device.h...
, Emil Medve
, (Mon Oct 29, 6:43 pm)
Re: [PATCH resend] Make the dev_*() family of macros in devi...
, Greg KH
, (Mon Oct 29, 8:00 pm)
RE: [PATCH resend] Make the dev_*() family of macros in devi...
, Medve Emilian-EMMEDVE1
, (Tue Oct 30, 8:11 am)
Re: [PATCH resend] Make the dev_*() family of macros in devi...
, Greg KH
, (Tue Oct 30, 11:40 am)
Re: [PATCH resend] Make the dev_*() family of macros in devi...
, Andrew Morton
, (Thu Nov 1, 7:57 pm)
Re: [PATCH resend] Make the dev_*() family of macros in devi...
, Greg KH
, (Fri Nov 2, 11:35 am)
RE: [PATCH resend] Make the dev_*() family of macros in devi...
, Medve Emilian-EMMEDVE1
, (Fri Nov 2, 7:59 am)
Re: [PATCH resend] Make the dev_*() family of macros in devi...
, Greg KH
, (Fri Nov 2, 11:35 am)
Re: [PATCH resend] Make the dev_*() family of macros in devi...
, Randy Dunlap
, (Tue Oct 30, 11:29 am)
Re: [PATCH resend] Make the dev_*() family of macros in devi...
, Tilman Schmidt
, (Mon Oct 29, 7:08 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Evgeniy Polyakov
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
663 guests
online.
Online users
emeka_micro
Kedar Sovani
Syndicate