Messages in this thread | | | Date | Sat, 8 Jan 2022 18:43:23 +0800 | From | kernel test robot <> | Subject | include/uapi/linux/sysinfo.h:23:10: error: array is too large (18446744073709551608 elements) |
| |
tree: https://github.com/0day-ci/linux/commits/UPDATE-20220108-020953/Pintu-Kumar/sysinfo-include-availram-field-in-sysinfo-struct/20220106-233557 head: 85f46444fa2eff4f03aeb701d44edd62af00ee44 commit: 85f46444fa2eff4f03aeb701d44edd62af00ee44 sysinfo: include availram field in sysinfo struct date: 17 hours ago config: s390-randconfig-r015-20220107 (https://download.01.org/0day-ci/archive/20220108/202201081822.SPIpoaId-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://github.com/0day-ci/linux/commit/85f46444fa2eff4f03aeb701d44edd62af00ee44 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review UPDATE-20220108-020953/Pintu-Kumar/sysinfo-include-availram-field-in-sysinfo-struct/20220106-233557 git checkout 85f46444fa2eff4f03aeb701d44edd62af00ee44 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 prepare
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/s390/include/asm/bug.h:68: In file included from include/asm-generic/bug.h:22: In file included from include/linux/printk.h:9: In file included from include/linux/cache.h:5: In file included from include/uapi/linux/kernel.h:5: >> include/uapi/linux/sysinfo.h:23:10: error: array is too large (18446744073709551608 elements) char _f[20-3*sizeof(__kernel_ulong_t)-sizeof(__u32)]; /* Padding: libc5 uses this.. */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make[2]: *** [scripts/Makefile.build:121: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1197: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors.
vim +23 include/uapi/linux/sysinfo.h
6 7 #define SI_LOAD_SHIFT 16 8 struct sysinfo { 9 __kernel_long_t uptime; /* Seconds since boot */ 10 __kernel_ulong_t loads[3]; /* 1, 5, and 15 minute load averages */ 11 __kernel_ulong_t totalram; /* Total usable main memory size */ 12 __kernel_ulong_t freeram; /* Available memory size */ 13 __kernel_ulong_t sharedram; /* Amount of shared memory */ 14 __kernel_ulong_t bufferram; /* Memory used by buffers */ 15 __kernel_ulong_t totalswap; /* Total swap space size */ 16 __kernel_ulong_t freeswap; /* swap space still available */ 17 __u16 procs; /* Number of current processes */ 18 __u16 pad; /* Explicit padding for m68k */ 19 __kernel_ulong_t totalhigh; /* Total high memory size */ 20 __kernel_ulong_t freehigh; /* Available high memory size */ 21 __u32 mem_unit; /* Memory unit size in bytes */ 22 __kernel_ulong_t availram; /* Memory available for allocation */ > 23 char _f[20-3*sizeof(__kernel_ulong_t)-sizeof(__u32)]; /* Padding: libc5 uses this.. */ 24 }; 25
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |