lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <040ff9fe-ceb2-b1f8-b01f-1d71a70a1c71@gmail.com>
Date:   Thu, 25 Feb 2021 08:24:01 +0300
From:   Dmitry Osipenko <digetx@...il.com>
To:     Julia Lawall <julia.lawall@...ia.fr>,
        Peter Geis <pgwipeout@...il.com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Peter Chen <Peter.Chen@....com>, linux-usb@...r.kernel.org,
        linux-kernel@...r.kernel.org
Cc:     kbuild-all@...ts.01.org
Subject: Re: [PATCH] usb: chipidea: tegra: fix flexible_array.cocci warnings

13.02.2021 23:09, Julia Lawall пишет:
> From: kernel test robot <lkp@...el.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@...il.com>
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Julia Lawall <julia.lawall@...ia.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@...il.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ