[ti:ti-rt-linux-5.10.y 10173/10206] drivers/media/platform/vxe-vxd/common/idgen_api.c:66:7-16: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) (fwd)

From: Julia Lawall
Date: Sat Nov 20 2021 - 05:06:07 EST


Hello,

I didn't reeive a patch for the first warning, but you may want to check
on it anyway. I guess that there is an array declared as [] that should
be declared as [0].

julia

---------- Forwarded message ----------
Date: Sat, 20 Nov 2021 09:21:03 +0800
From: kernel test robot <lkp@xxxxxxxxx>
To: kbuild@xxxxxxxxxxxx
Cc: lkp@xxxxxxxxx, Julia Lawall <julia.lawall@xxxxxxx>
Subject: [ti:ti-rt-linux-5.10.y 10173/10206]
drivers/media/platform/vxe-vxd/common/idgen_api.c:66:7-16: 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@xxxxxxxxxxxx
CC: linux-kernel@xxxxxxxxxxxxxxx
TO: Sidraya <sidraya.bj@xxxxxxxxxxxxxxxxxxx>
CC: Praneeth Bajjuri <praneeth@xxxxxx>
CC: Angela Stegmaier <angelabaker@xxxxxx>

tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 0c67d996db8f3c9149598bc98657ae28fee22208
commit: 97dfdd999ba7266785579c99c40a3c65e63e864a [10173/10206] media: platform: vxd: Kconfig: Add Video decoder Kconfig and Makefile
:::::: branch date: 2 days ago
:::::: commit date: 9 days ago
config: nios2-randconfig-c004-20211116 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Reported-by: Julia Lawall <julia.lawall@xxxxxxx>


cocci warnings: (new ones prefixed by >>)
>> drivers/media/platform/vxe-vxd/common/idgen_api.c:66:7-16: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
--
>> drivers/media/platform/vxe-vxd/common/work_queue.c:65:17-23: ERROR: application of sizeof to pointer
drivers/media/platform/vxe-vxd/common/work_queue.c:42:17-23: ERROR: application of sizeof to pointer

Please review and possibly fold the followup patch.

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

Attachment: .config.gz
Description: application/gzip