All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine: tegra: fix flexible_array.cocci warnings
@ 2021-11-26 16:00 ` Julia Lawall
  0 siblings, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2021-11-26 16:00 UTC (permalink / raw)
  To: Akhil R
  Cc: kbuild-all, Akhil R, dan.j.williams, devicetree, dmaengine,
	jonathanh, kyarlagadda, ldewangan, linux-kernel, linux-tegra,
	p.zabel, rgumasta

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

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

---

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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] dmaengine: tegra: fix flexible_array.cocci warnings
@ 2021-11-26 16:00 ` Julia Lawall
  0 siblings, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2021-11-26 16:00 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

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

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

---

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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] dmaengine: tegra: fix flexible_array.cocci warnings
@ 2021-11-23 14:38 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-11-23 14:38 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1887 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <1637573292-13214-3-git-send-email-akhilrajeev@nvidia.com>
References: <1637573292-13214-3-git-send-email-akhilrajeev@nvidia.com>
TO: Akhil R <akhilrajeev@nvidia.com>
TO: dan.j.williams(a)intel.com
TO: devicetree(a)vger.kernel.org
TO: dmaengine(a)vger.kernel.org
TO: jonathanh(a)nvidia.com
TO: kyarlagadda(a)nvidia.com
TO: ldewangan(a)nvidia.com
TO: linux-kernel(a)vger.kernel.org
TO: linux-tegra(a)vger.kernel.org
TO: p.zabel(a)pengutronix.de
TO: rgumasta(a)nvidia.com

From: kernel test robot <lkp@intel.com>

drivers/dma/tegra186-gpc-dma.c:241:26-34: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)


 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@nvidia.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-26 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 16:00 [PATCH] dmaengine: tegra: fix flexible_array.cocci warnings Julia Lawall
2021-11-26 16:00 ` Julia Lawall
  -- strict thread matches above, loose matches on Subject: below --
2021-11-23 14:38 kernel test robot

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.