Messages in this thread | | | Date | Sat, 8 Jan 2022 10:43:35 +0800 | From | kernel test robot <> | Subject | include/uapi/linux/sysinfo.h:23:14: error: size of array '_f' is too large |
| |
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: 9 hours ago config: ia64-randconfig-r015-20220107 (https://download.01.org/0day-ci/archive/20220108/202201081013.w2UXbEsE-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.0 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 # 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=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 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 include/uapi/linux/kernel.h:5, from include/linux/cache.h:5, from include/linux/printk.h:9, from include/asm-generic/bug.h:22, from arch/ia64/include/asm/bug.h:17, from include/linux/bug.h:5, from include/linux/page-flags.h:10, from kernel/bounds.c:10: >> include/uapi/linux/sysinfo.h:23:14: error: size of array '_f' is too large 23 | char _f[20-3*sizeof(__kernel_ulong_t)-sizeof(__u32)]; /* Padding: libc5 uses this.. */ | ^~ 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 +/_f +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
| |