[android-common:android14-5.15 1/1] vec-syscfg.c:24:9: warning: "ARRAY_SIZE" redefined

kernel test robot <[email protected]> Sat, 25 Jul 2026 07:46:01 +0200
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: [email protected]
CC: [email protected]
TO: [email protected]

Hi Shuah,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android14-5.15
head:   e8c801716e1e12ca613c0be1b7174fbf468e9471
commit: c9e52db90031b7a89bf667057df5ca9c25cd68ff [1/1] tools: fix ARRAY_SIZE defines in tools and selftests hdrs
:::::: branch date: 15 hours ago
:::::: commit date: 3 years, 6 months ago
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260725/[email protected]/config)
compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260725/[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]>
| Closes: https://lore.kernel.org/r/[email protected]/

All warnings (new ones prefixed by >>):

>> vec-syscfg.c:24:9: warning: "ARRAY_SIZE" redefined
      24 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
         |         ^~~~~~~~~~
   In file included from vec-syscfg.c:21:
   ../../kselftest.h:52:9: note: this is the location of the previous definition
      52 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
         |         ^~~~~~~~~~
   vec-syscfg.c: In function 'get_child_rdvl':
   vec-syscfg.c:112:33: warning: too many arguments for format [-Wformat-extra-args]
     112 |                 fprintf(stderr, "execl(%s) failed: %d\n",
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   vec-syscfg.c: At top level:
   vec-syscfg.c:326:13: warning: 'prctl_set_same' defined but not used [-Wunused-function]
     326 | static void prctl_set_same(struct vec_data *data)
         |             ^~~~~~~~~~~~~~
   vec-syscfg.c: In function 'file_write_integer':
   vec-syscfg.c:195:12: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized]
     195 |         if (ret < 0) {
         |            ^
   vec-syscfg.c:183:13: note: 'ret' was declared here
     183 |         int ret;
         |             ^~~
--
>> vec-syscfg.c:24:9: warning: "ARRAY_SIZE" redefined
      24 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
         |         ^~~~~~~~~~
   In file included from vec-syscfg.c:21:
   ../../kselftest.h:52:9: note: this is the location of the previous definition
      52 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
         |         ^~~~~~~~~~
   vec-syscfg.c: In function 'get_child_rdvl':
   vec-syscfg.c:112:33: warning: too many arguments for format [-Wformat-extra-args]
     112 |                 fprintf(stderr, "execl(%s) failed: %d\n",
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   vec-syscfg.c: At top level:
   vec-syscfg.c:326:13: warning: 'prctl_set_same' defined but not used [-Wunused-function]
     326 | static void prctl_set_same(struct vec_data *data)
         |             ^~~~~~~~~~~~~~
   vec-syscfg.c: In function 'file_write_integer':
   vec-syscfg.c:195:12: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized]
     195 |         if (ret < 0) {
         |            ^
   vec-syscfg.c:183:13: note: 'ret' was declared here
     183 |         int ret;
         |             ^~~
   /usr/lib/gcc-cross/aarch64-linux-gnu/14/../../../../aarch64-linux-gnu/bin/ld: /tmp/cc4vZnJ7.o:(.data.rel+0x20): undefined reference to `rdvl_sve'
   collect2: error: ld returned 1 exit status

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