[pci:pci/review/cpumask 1/5] arch/s390/include/asm/topology.h:81:9: error: return from incompatible pointer type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/review/cpumask
head:   50fcb29e443db489b159054e9d5f4d8663812da2
commit: bda265a2476ada02be7335217193d3f0858c9961 [1/5] Unify node_to_cpumask_map
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout bda265a2476ada02be7335217193d3f0858c9961
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/mm.h:10,
                    from include/linux/kvm_host.h:14,
                    from arch/s390/kernel/asm-offsets.c:11:
   arch/s390/include/asm/topology.h: In function 'cpumask_of_node':
>> arch/s390/include/asm/topology.h:81:9: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
     return &node_to_cpumask_map[node];
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [arch/s390/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2
   24 real  7 user  10 sys  74.51% cpu 	make prepare

vim +81 arch/s390/include/asm/topology.h

3a368f742da1395 Philipp Hachtmann  2014-03-06  76  
3a368f742da1395 Philipp Hachtmann  2014-03-06  77  /* Returns a pointer to the cpumask of CPUs on node 'node'. */
3a368f742da1395 Philipp Hachtmann  2014-03-06  78  #define cpumask_of_node cpumask_of_node
3a368f742da1395 Philipp Hachtmann  2014-03-06  79  static inline const struct cpumask *cpumask_of_node(int node)
3a368f742da1395 Philipp Hachtmann  2014-03-06  80  {
22be9cd9f22a4b2 Martin Schwidefsky 2015-09-22 @81  	return &node_to_cpumask_map[node];
3a368f742da1395 Philipp Hachtmann  2014-03-06  82  }
3a368f742da1395 Philipp Hachtmann  2014-03-06  83  

:::::: The code at line 81 was first introduced by commit
:::::: 22be9cd9f22a4b2acc5fe6666ca23206ebe4d495 s390/numa: use correct type for node_to_cpumask_map

:::::: TO: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
:::::: CC: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux