[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) (fwd)

Julia Lawall julia.lawall at inria.fr
Sat Aug 28 04:12:14 PDT 2021


Please check line 47.

---------- Forwarded message ----------
Date: Wed, 25 Aug 2021 22:49:02 +0800
From: kernel test robot <lkp at intel.com>
To: kbuild at lists.01.org
Cc: lkp at intel.com, Julia Lawall <julia.lawall at lip6.fr>
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 at lists.01.org
CC: linux-arm-kernel at lists.infradead.org
TO: Saurabh Sengar <saurabh.singh at xilinx.com>
CC: Michal Simek <monstr at monstr.eu>
CC: Hyun Kwon <hyun.kwon at xilinx.com>

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
Reported-by: kernel test robot <lkp at intel.com>
Reported-by: Julia Lawall <julia.lawall at lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> 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@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 31078 bytes
Desc: 
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210828/5b384f09/attachment-0001.gz>


More information about the linux-arm-kernel mailing list