All of lore.kernel.org
 help / color / mirror / Atom feed
* [amir73il:sb_iostats 5/12] include/linux/percpu_counter.h:122:31: error: incompatible types when assigning to type 'struct percpu_counter' from type 's64' {aka 'long long int'}
@ 2022-03-08  9:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-08  9:50 UTC (permalink / raw)
  To: Amir Goldstein; +Cc: kbuild-all, linux-kernel

tree:   https://github.com/amir73il/linux sb_iostats
head:   e0cfb03c7706e5f555c4c7568d5575b0c12ce1c0
commit: f459e7283ed5d3be5fe79aa7a49e45333dac08d0 [5/12] lib/percpu_counter: add helpers for arrays of counters
config: arm-randconfig-r015-20220307 (https://download.01.org/0day-ci/archive/20220308/202203081741.vFnZtCst-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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/amir73il/linux/commit/f459e7283ed5d3be5fe79aa7a49e45333dac08d0
        git remote add amir73il https://github.com/amir73il/linux
        git fetch --no-tags amir73il sb_iostats
        git checkout f459e7283ed5d3be5fe79aa7a49e45333dac08d0
        # 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=arm 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/linux/sched/user.h:7,
                    from include/linux/cred.h:17,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:697,
                    from arch/arm/kernel/asm-offsets.c:12:
   include/linux/percpu_counter.h: In function 'percpu_counters_init':
>> include/linux/percpu_counter.h:122:31: error: incompatible types when assigning to type 'struct percpu_counter' from type 's64' {aka 'long long int'}
     122 |                 counters[i] = amount;
         |                               ^~~~~~
   make[2]: *** [scripts/Makefile.build:121: arch/arm/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1191: 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 +122 include/linux/percpu_counter.h

   115	
   116	static inline int percpu_counters_init(struct percpu_counter counters[],
   117					       int num, s64 amount, gfp_t gfp)
   118	{
   119		int i;
   120	
   121		for (i = 0; i < num; i++)
 > 122			counters[i] = amount;
   123		return 0;
   124	}
   125	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-08  9:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-08  9:50 [amir73il:sb_iostats 5/12] include/linux/percpu_counter.h:122:31: error: incompatible types when assigning to type 'struct percpu_counter' from type 's64' {aka 'long long int'} kernel test robot

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.