login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: [PATCH resend] Make the dev_*() family of macros in device.hcomplete
Date: Friday, November 2, 2007 - 8: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 ...
, Emil Medve
, (Mon Oct 29, 3:43 pm)
Re: [PATCH resend] Make the dev_*() family of macros in de ...
, Tilman Schmidt
, (Mon Oct 29, 4:08 pm)
Re: [PATCH resend] Make the dev_*() family of macros in de ...
, Greg KH
, (Mon Oct 29, 5:00 pm)
RE: [PATCH resend] Make the dev_*() family of macros in de ...
, Medve Emilian-EMMEDVE1
, (Tue Oct 30, 5:11 am)
Re: [PATCH resend] Make the dev_*() family of macros in de ...
, Randy Dunlap
, (Tue Oct 30, 8:29 am)
Re: [PATCH resend] Make the dev_*() family of macros in de ...
, Greg KH
, (Tue Oct 30, 8:40 am)
Re: [PATCH resend] Make the dev_*() family of macros in de ...
, Andrew Morton
, (Thu Nov 1, 4:57 pm)
RE: [PATCH resend] Make the dev_*() family of macros in de ...
, Medve Emilian-EMMEDVE1
, (Fri Nov 2, 4:59 am)
Re: [PATCH resend] Make the dev_*() family of macros in de ...
, Greg KH
, (Fri Nov 2, 8:35 am)
Re: [PATCH resend] Make the dev_*() family of macros in de ...
, Greg KH
, (Fri Nov 2, 8:35 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate