Skip to contentSkip to conversation

drivers/gpu/drm/xlnx/xlnx_pl_disp.c:47:19-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) (fwd)

PATCH New Julia Lawall 1 participant 1 message Aug 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 10763/12418 drivers/gpu/drm/xlnx/xlnx_pl_disp.c:47:19-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) (fwd)

Please check line 47.

---------- Forwarded message ----------
Date: Wed, 25 Aug 2021 22:49:02 +0800
From: kernel test robot <[email protected]>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <[email protected]>
Subject: [xlnx:master 10763/12418] drivers/gpu/drm/xlnx/xlnx_pl_disp.c:47:19-22:
WARNING use flexible-array member instead
(https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-
and-one-element-arrays)

CC: kbuild-all(a)lists.01.org
CC: linux-arm-kernel(a)lists.infradead.org
TO: Saurabh Sengar <[email protected]>
CC: Michal Simek <[email protected]>
CC: Hyun Kwon <[email protected]>

tree:   https://github.com/Xilinx/linux-xlnx master
head:   45cd0074cdf1ddd710b28848e6a860b442babfcc
commit: f74536b5ee8056ab562f04c81e1a34e6c4779025 [10763/12418] drm: xlnx: DRM KMS driver for xilinx display pipeline

:::::: branch date: 2 days ago
:::::: commit date: 5 months ago
config: arm64-randconfig-c024-20210825 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate

cocci warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

drivers/gpu/drm/xlnx/xlnx_pl_disp.c:47:19-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

vim +47 drivers/gpu/drm/xlnx/xlnx_pl_disp.c

f74536b5ee8056 Saurabh Sengar 2018-02-07  27
f74536b5ee8056 Saurabh Sengar 2018-02-07  28  /*
f74536b5ee8056 Saurabh Sengar 2018-02-07  29   * Overview
f74536b5ee8056 Saurabh Sengar 2018-02-07  30   * --------
f74536b5ee8056 Saurabh Sengar 2018-02-07  31   *
f74536b5ee8056 Saurabh Sengar 2018-02-07  32   * This driver intends to support the display pipeline with DMA engine
f74536b5ee8056 Saurabh Sengar 2018-02-07  33   * driver by initializing DRM crtc and plane objects. The driver makes
f74536b5ee8056 Saurabh Sengar 2018-02-07  34   * an assumption that it's single plane pipeline, as multi-plane pipeline
f74536b5ee8056 Saurabh Sengar 2018-02-07  35   * would require programing beyond the DMA engine interface.
f74536b5ee8056 Saurabh Sengar 2018-02-07  36   */
f74536b5ee8056 Saurabh Sengar 2018-02-07  37
f74536b5ee8056 Saurabh Sengar 2018-02-07  38  /**
f74536b5ee8056 Saurabh Sengar 2018-02-07  39   * struct xlnx_dma_chan - struct for DMA engine
f74536b5ee8056 Saurabh Sengar 2018-02-07  40   * @dma_chan: DMA channel
f74536b5ee8056 Saurabh Sengar 2018-02-07  41   * @xt: Interleaved desc config container
f74536b5ee8056 Saurabh Sengar 2018-02-07  42   * @sgl: Data chunk for dma_interleaved_template
f74536b5ee8056 Saurabh Sengar 2018-02-07  43   */
f74536b5ee8056 Saurabh Sengar 2018-02-07  44  struct xlnx_dma_chan {
f74536b5ee8056 Saurabh Sengar 2018-02-07  45  	struct dma_chan *dma_chan;
f74536b5ee8056 Saurabh Sengar 2018-02-07  46  	struct dma_interleaved_template xt;

f74536b5ee8056 Saurabh Sengar 2018-02-07 @47 struct data_chunk sgl[1];
f74536b5ee8056 Saurabh Sengar 2018-02-07 48 };
f74536b5ee8056 Saurabh Sengar 2018-02-07 49

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org