All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pintu Kumar <quic_pintu@quicinc.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, 0day robot <lkp@intel.com>,
	Pintu Agarwal <pintu.ping@gmail.com>
Subject: include/uapi/linux/sysinfo.h:23:10: error: array is too large (18446744073709551608 elements)
Date: Sat, 8 Jan 2022 18:43:23 +0800	[thread overview]
Message-ID: <202201081822.SPIpoaId-lkp@intel.com> (raw)

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: include/uapi/linux/sysinfo.h:23:10: error: array is too large (18446744073709551608 elements)
Date: Sat, 08 Jan 2022 18:43:23 +0800	[thread overview]
Message-ID: <202201081822.SPIpoaId-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3888 bytes --]

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(a)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(a)lists.01.org

             reply	other threads:[~2022-01-08 10:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-08 10:43 kernel test robot [this message]
2022-01-08 10:43 ` include/uapi/linux/sysinfo.h:23:10: error: array is too large (18446744073709551608 elements) kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201081822.SPIpoaId-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=pintu.ping@gmail.com \
    --cc=quic_pintu@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.