Skip to contentSkip to conversation

drivers/parport/procfs.c:267:18-28: 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 Jun 19, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 17/17 drivers/parport/procfs.c:267:18-28: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) (fwd)

See line 267.

---------- Forwarded message ----------
Date: Mon, 19 Jun 2023 05:30:10 +0800
From: kernel test robot <[email protected]>
To: [email protected]
Cc: [email protected], Julia Lawall <[email protected]>
Subject: [joelgranados:jag/sysctl-testing-for-0day 17/17]
drivers/parport/procfs.c:267:18-28: WARNING use flexible-array member instead
(https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-
and-one-element-arrays)

BCC: [email protected]
CC: [email protected]
TO: Joel Granados <[email protected]>

tree:   https://github.com/Joelgranados/linux.git jag/sysctl-testing-for-0day
head:   cbba378db4b97256c72560da5762aaed778957c0
commit: cbba378db4b97256c72560da5762aaed778957c0 [17/17] sysctl: Remove the end element in sysctl table arrays

:::::: branch date: 25 hours ago
:::::: commit date: 25 hours ago
config: sparc64-randconfig-c034-20230618 (https://download.01.org/0day-ci/archive/20230619/[email protected]/config)
compiler: sparc64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230619/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags

| Reported-by: kernel test robot <[email protected]>
| Reported-by: Julia Lawall <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

cocci warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

drivers/parport/procfs.c:267:18-28: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

drivers/parport/procfs.c:364:18-28: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

vim +267 drivers/parport/procfs.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  257
^1da177e4c3f41 Linus Torvalds 2005-04-16  258
^1da177e4c3f41 Linus Torvalds 2005-04-16  259  struct parport_sysctl_table {
0f95d0ec20343b Joel Granados  2023-06-01  260  	struct ctl_table_header *port_header;
0f95d0ec20343b Joel Granados  2023-06-01  261  	struct ctl_table_header *devices_header;
cbba378db4b972 Joel Granados  2023-06-16  262  #ifdef CONFIG_PARPORT_1284
cbba378db4b972 Joel Granados  2023-06-16  263  	struct ctl_table vars[10];
cbba378db4b972 Joel Granados  2023-06-16  264  #else
cbba378db4b972 Joel Granados  2023-06-16  265  	struct ctl_table vars[5];
cbba378db4b972 Joel Granados  2023-06-16  266  #endif /* IEEE 1284 support */

cbba378db4b972 Joel Granados 2023-06-16 @267 struct ctl_table device_dir[1];
^1da177e4c3f41 Linus Torvalds 2005-04-16 268 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 269

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki