From: Dmitry Osipenko <digetx@gmail.com>
To: Julia Lawall <julia.lawall@inria.fr>,
Peter Geis <pgwipeout@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Peter Chen <Peter.Chen@nxp.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org
Subject: Re: [PATCH] usb: chipidea: tegra: fix flexible_array.cocci warnings
Date: Thu, 25 Feb 2021 08:24:01 +0300 [thread overview]
Message-ID: <040ff9fe-ceb2-b1f8-b01f-1d71a70a1c71@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2102132108040.2720@hadrien>
13.02.2021 23:09, Julia Lawall пишет:
> From: kernel test robot <lkp@intel.com>
>
> Zero-length and one-element arrays are deprecated, see
> Documentation/process/deprecated.rst
> Flexible-array members should be used instead.
>
> Generated by: scripts/coccinelle/misc/flexible_array.cocci
>
> Fixes: fc53d5279094 ("usb: chipidea: tegra: Support host mode")
> CC: Peter Geis <pgwipeout@gmail.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
>
> ---
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
> head: 7a1e838d0cdce7d09a0bd81d45c7b5a660e71ac7
> commit: fc53d5279094e38e6363506339772a7021da2df8 [64/198] usb: chipidea: tegra: Support host mode
> :::::: branch date: 19 hours ago
> :::::: commit date: 4 weeks ago
>
> host.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/usb/chipidea/host.c
> +++ b/drivers/usb/chipidea/host.c
> @@ -32,7 +32,7 @@ struct ehci_ci_priv {
> struct ci_hdrc_dma_aligned_buffer {
> void *kmalloc_ptr;
> void *old_xfer_buffer;
> - u8 data[0];
> + u8 data[];
> };
>
> static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable)
>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
prev parent reply other threads:[~2021-02-25 5:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-13 20:09 Julia Lawall
2021-02-25 5:24 ` Dmitry Osipenko [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=040ff9fe-ceb2-b1f8-b01f-1d71a70a1c71@gmail.com \
--to=digetx@gmail.com \
--cc=Peter.Chen@nxp.com \
--cc=gregkh@linuxfoundation.org \
--cc=julia.lawall@inria.fr \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pgwipeout@gmail.com \
/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
Powered by JetHome