From: Ulrich Eckhardt <doomster@knuut.de>
To: linux-kernel@vger.kernel.org
Subject: Re: [patch] use C99 initialisers for PCI_VDEVICE()
Date: Sun, 15 Apr 2007 15:32:38 +0200 [thread overview]
Message-ID: <200704151532.39682.doomster@knuut.de> (raw)
In-Reply-To: <46222051.9010104@garzik.org>
On Sunday 15 April 2007 14:53, Jeff Garzik wrote:
> Ulrich Eckhardt wrote:
> > (Note: CC me please, I'm not subscribed.)
[...]
> > -#define PCI_VDEVICE(vendor, device) \
> > - PCI_VENDOR_ID_##vendor, (device), \
> > - PCI_ANY_ID, PCI_ANY_ID, 0, 0
> > +#define PCI_VDEVICE(vend, dev) \
> > + .vendor=PCI_VENDOR_ID_##vend, .device=(dev), \
> > + .subvendor=PCI_ANY_ID, .subdevice=PCI_ANY_ID, \
> > + .class=0, .class_mask=0
>
> NAK. C99 initializers were intentionally avoided. Look at the usage of
> this macro.
I'm aware of the uses and documentation of this, I was just under the
impression that C99 initialisers were the agreed way to go because of their
resistance against reording of fields. Of course, if that assumption is
wrong, this patch is moot anyway.
Am I generally wrong or is this case an intentional exception?
Uli
prev parent reply other threads:[~2007-04-15 13:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-15 10:34 [patch] use C99 initialisers for PCI_VDEVICE() Ulrich Eckhardt
2007-04-15 12:53 ` Jeff Garzik
2007-04-15 13:32 ` Ulrich Eckhardt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704151532.39682.doomster@knuut.de \
--to=doomster@knuut.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox