From: "Gustavo A. R. Silva" <gustavoars@kernel.org>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
Kees Cook <keescook@chromium.org>
Subject: Re: [PATCH] PCI: Replace zero-length array with flexible-array
Date: Fri, 8 May 2020 14:43:25 -0500 [thread overview]
Message-ID: <20200508194325.GD23375@embeddedor> (raw)
In-Reply-To: <20200507201544.GA23633@bjorn-Precision-5520>
On Thu, May 07, 2020 at 03:15:44PM -0500, Bjorn Helgaas wrote:
> On Thu, May 07, 2020 at 02:05:44PM -0500, Gustavo A. R. Silva wrote:
> > The current codebase makes use of the zero-length array language
> > extension to the C90 standard, but the preferred mechanism to declare
> > variable-length types such as these ones is a flexible array member[1][2],
> > introduced in C99:
> >
> > struct foo {
> > int stuff;
> > struct boo array[];
> > };
> >
> > Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
>
> Applied to pci/misc for v5.8, thanks!
>
> I assume this takes care of everything in drivers/pci/, right? I'd
> like to do them all at once, so if there are others, send another
> patch and I'll squash them. I took a quick look but didn't see any.
>
Yep. I can confirm that these are the last zero-length arrays in
drivers/pci/ :)
Thanks
--
Gustavo
prev parent reply other threads:[~2020-05-08 19:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 19:05 [PATCH] PCI: Replace zero-length array with flexible-array Gustavo A. R. Silva
2020-05-07 20:15 ` Bjorn Helgaas
2020-05-08 19:43 ` Gustavo A. R. Silva [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=20200508194325.GD23375@embeddedor \
--to=gustavoars@kernel.org \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.