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>] [day] [month] [year] [list]
Date:   Fri, 26 Nov 2021 17:00:18 +0100 (CET)
From:   Julia Lawall <julia.lawall@...ia.fr>
To:     Akhil R <akhilrajeev@...dia.com>
cc:     kbuild-all@...ts.01.org, Akhil R <akhilrajeev@...dia.com>,
        dan.j.williams@...el.com, devicetree@...r.kernel.org,
        dmaengine@...r.kernel.org, jonathanh@...dia.com,
        kyarlagadda@...dia.com, ldewangan@...dia.com,
        linux-kernel@...r.kernel.org, linux-tegra@...r.kernel.org,
        p.zabel@...gutronix.de, rgumasta@...dia.com
Subject: [PATCH] dmaengine: tegra: fix flexible_array.cocci warnings

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

CC: Akhil R <akhilrajeev@...dia.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>

---

url:    https://github.com/0day-ci/linux/commits/Akhil-R/Add-NVIDIA-Tegra-GPC-DMA-driver/20211122-173019
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
:::::: branch date: 29 hours ago
:::::: commit date: 29 hours ago

Please take the patch only if it's a positive warning. Thanks!

 tegra186-gpc-dma.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/dma/tegra186-gpc-dma.c
+++ b/drivers/dma/tegra186-gpc-dma.c
@@ -238,7 +238,7 @@ struct tegra_dma {
 	unsigned long sid_m2d_reserved;
 	unsigned long sid_d2m_reserved;
 	unsigned long sid_m2m_reserved;
-	struct tegra_dma_channel channels[0];
+	struct tegra_dma_channel channels[];
 };

 static inline void tdc_write(struct tegra_dma_channel *tdc,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ