[pci:pci/review/cpumask 5/5] arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression

[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:   f926e1b19abb750caa57840ff2e76afabae33ce1
commit: f926e1b19abb750caa57840ff2e76afabae33ce1 [5/5] Unify ia64
config: ia64-randconfig-a001-20200210 (attached as .config)
compiler: ia64-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 f926e1b19abb750caa57840ff2e76afabae33ce1
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from drivers/video/fbdev/aty/aty128fb.c:50:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/xarray.h:14,
                    from include/linux/radix-tree.h:18,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers//pci/pci-driver.c:7:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   In file included from include/linux/rcupdate.h:31:0,
                    from include/linux/radix-tree.h:15,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers//pci/pci-driver.c:7:
   drivers//pci/pci-driver.c: In function 'pci_call_probe':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
   include/linux/cpumask.h:611:63: note: in definition of macro 'cpumask_first_and'
    #define cpumask_first_and(src1p, src2p) cpumask_next_and(-1, (src1p), (src2p))
                                                                  ^~~~~
>> drivers//pci/pci-driver.c:356:9: note: in expansion of macro 'cpumask_any_and'
      cpu = cpumask_any_and(cpumask_of_node(node), cpu_online_mask);
            ^~~~~~~~~~~~~~~
>> drivers//pci/pci-driver.c:356:25: note: in expansion of macro 'cpumask_of_node'
      cpu = cpumask_any_and(cpumask_of_node(node), cpu_online_mask);
                            ^~~~~~~~~~~~~~~
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/xarray.h:14,
                    from include/linux/radix-tree.h:18,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers//pci/pci-sysfs.c:18:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   drivers//pci/pci-sysfs.c: In function 'pci_dev_show_local_cpu':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> drivers//pci/pci-sysfs.c:85:8: note: in expansion of macro 'cpumask_of_node'
           cpumask_of_node(dev_to_node(dev));
           ^~~~~~~~~~~~~~~
   drivers//pci/pci-sysfs.c: In function 'cpuaffinity_show':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> arch/ia64/include/asm/topology.h:52:6: note: in expansion of macro 'cpumask_of_node'
         cpumask_of_node(pcibus_to_node(bus)))
         ^~~~~~~~~~~~~~~
>> drivers//pci/pci-sysfs.c:112:34: note: in expansion of macro 'cpumask_of_pcibus'
     const struct cpumask *cpumask = cpumask_of_pcibus(to_pci_bus(dev));
                                     ^~~~~~~~~~~~~~~~~
   drivers//pci/pci-sysfs.c: In function 'cpulistaffinity_show':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> arch/ia64/include/asm/topology.h:52:6: note: in expansion of macro 'cpumask_of_node'
         cpumask_of_node(pcibus_to_node(bus)))
         ^~~~~~~~~~~~~~~
   drivers//pci/pci-sysfs.c:121:34: note: in expansion of macro 'cpumask_of_pcibus'
     const struct cpumask *cpumask = cpumask_of_pcibus(to_pci_bus(dev));
                                     ^~~~~~~~~~~~~~~~~
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/xarray.h:14,
                    from include/linux/radix-tree.h:18,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:17,
                    from include/linux/platform_device.h:13,
                    from drivers//dma/dmaengine.c:34:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   drivers//dma/dmaengine.c: In function 'dma_chan_is_local':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> drivers//dma/dmaengine.c:228:25: note: in expansion of macro 'cpumask_of_node'
      cpumask_test_cpu(cpu, cpumask_of_node(node));
                            ^~~~~~~~~~~~~~~
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from drivers//base/node.c:6:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   drivers//base/node.c: In function 'node_read_cpumap':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> drivers//base/node.c:42:20: note: in expansion of macro 'cpumask_of_node'
     cpumask_and(mask, cpumask_of_node(node_dev->dev.id), cpu_online_mask);
                       ^~~~~~~~~~~~~~~
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from drivers//mtd/devices/docg3.c:9:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   In file included from drivers//mtd/devices/docg3.h:343:0,
                    from drivers//mtd/devices/docg3.c:27:
   include/trace/define_trace.h: At top level:
   include/trace/define_trace.h:95:42: fatal error: ./docg3.h: No such file or directory
    #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
                                             ^
   compilation terminated.
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/xarray.h:14,
                    from include/linux/radix-tree.h:18,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:17,
                    from drivers//base/regmap/regmap.c:9:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   In file included from drivers//base/regmap/trace.h:258:0,
                    from drivers//base/regmap/regmap.c:22:
   include/trace/define_trace.h: At top level:
   include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
    #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
                                             ^
   compilation terminated.
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from drivers//media/tuners/mxl5005s.c:62:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   drivers//media/tuners/mxl5005s.c: In function 'MXL5005_ControlInit.isra.2':
   drivers//media/tuners/mxl5005s.c:1660:1: warning: the frame size of 4448 bytes is larger than 2048 bytes [-Wframe-larger-than=]
    }
    ^
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/slab.h:15,
                    from include/linux/greybus.h:17,
                    from drivers//greybus/core.c:12:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   In file included from drivers//greybus/greybus_trace.h:501:0,
                    from drivers//greybus/core.c:13:
   include/trace/define_trace.h: At top level:
   include/trace/define_trace.h:95:42: fatal error: ./greybus_trace.h: No such file or directory
    #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
                                             ^
   compilation terminated.
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/mm.h:10,
                    from arch/ia64/include/asm/uaccess.h:38,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel///sched/sched.h:11,
                    from kernel///sched/core.c:9:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/mm.h:10,
                    from arch/ia64/include/asm/uaccess.h:38,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel///sched/sched.h:11,
                    from kernel///sched/core.c:9:
   kernel///sched/core.c: In function 'select_fallback_rq':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> kernel///sched/core.c:2045:14: note: in expansion of macro 'cpumask_of_node'
      nodemask = cpumask_of_node(nid);
                 ^~~~~~~~~~~~~~~
   In file included from include/linux/cpumask.h:12:0,
                    from include/linux/rcupdate.h:31,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from kernel///sched/sched.h:5,
                    from kernel///sched/core.c:9:
   In function 'bitmap_zero',
       inlined from 'cpumask_clear' at include/linux/cpumask.h:406:2,
       inlined from 'get_mmu_context' at arch/ia64/include/asm/mmu_context.h:92:3,
       inlined from 'activate_context' at arch/ia64/include/asm/mmu_context.h:170:11,
       inlined from 'activate_mm.isra.73' at arch/ia64/include/asm/mmu_context.h:194:2,
       inlined from 'idle_task_exit' at kernel///sched/core.c:6193:3:
   include/linux/bitmap.h:232:2: warning: 'memset' writing 512 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
     memset(dst, 0, len);
     ^~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/mm.h:10,
                    from arch/ia64/include/asm/uaccess.h:38,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel///sched/sched.h:11,
                    from kernel///sched/topology.c:5:
   include/linux/topology.h: In function 'cpu_cpu_mask':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> include/linux/topology.h:230:9: note: in expansion of macro 'cpumask_of_node'
     return cpumask_of_node(cpu_to_node(cpu));
            ^~~~~~~~~~~~~~~
   In file included from include/linux/topology.h:36:0,
                    from include/linux/gfp.h:9,
                    from include/linux/mm.h:10,
                    from arch/ia64/include/asm/uaccess.h:38,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel///sched/sched.h:11,
                    from kernel///sched/topology.c:5:
   kernel///sched/topology.c: In function 'sched_init_numa':
>> arch/ia64/include/asm/topology.h:29:24: warning: pointer type mismatch in conditional expression
              cpu_all_mask :    \
                           ^
>> kernel///sched/topology.c:1653:28: note: in expansion of macro 'cpumask_of_node'
        cpumask_or(mask, mask, cpumask_of_node(k));
                               ^~~~~~~~~~~~~~~
..

vim +29 arch/ia64/include/asm/topology.h

e5ecc192dfc5e0 include/asm-ia64/topology.h      Christoph Lameter   2006-04-13  24  
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  25  /*
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  26   * Returns a bitmask of CPUs on Node 'node'.
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  27   */
1d1e9f04216b37 arch/ia64/include/asm/topology.h Anton Blanchard     2010-01-06  28  #define cpumask_of_node(node) ((node) == -1 ?				\
1d1e9f04216b37 arch/ia64/include/asm/topology.h Anton Blanchard     2010-01-06 @29  			       cpu_all_mask :				\
f926e1b19abb75 arch/ia64/include/asm/topology.h Bjorn Helgaas       2020-02-10  30  			       &node_to_cpumask_map[node])
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  31  
514604c6d1779c include/asm-ia64/topology.h      Christoph Lameter   2005-07-07  32  /*
514604c6d1779c include/asm-ia64/topology.h      Christoph Lameter   2005-07-07  33   * Determines the node for a given pci bus
514604c6d1779c include/asm-ia64/topology.h      Christoph Lameter   2005-07-07  34   */
514604c6d1779c include/asm-ia64/topology.h      Christoph Lameter   2005-07-07  35  #define pcibus_to_node(bus) PCI_CONTROLLER(bus)->node
514604c6d1779c include/asm-ia64/topology.h      Christoph Lameter   2005-07-07  36  
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  37  void build_cpu_to_node_map(void);
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  38  
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  39  #endif /* CONFIG_NUMA */
^1da177e4c3f41 include/asm-ia64/topology.h      Linus Torvalds      2005-04-16  40  
69dcc99199fe29 include/asm-ia64/topology.h      Zhang, Yanmin       2006-02-03  41  #ifdef CONFIG_SMP
69dcc99199fe29 include/asm-ia64/topology.h      Zhang, Yanmin       2006-02-03  42  #define topology_physical_package_id(cpu)	(cpu_data(cpu)->socket_id)
69dcc99199fe29 include/asm-ia64/topology.h      Zhang, Yanmin       2006-02-03  43  #define topology_core_id(cpu)			(cpu_data(cpu)->core_id)
333af15341b2f6 arch/ia64/include/asm/topology.h Rusty Russell       2009-01-01  44  #define topology_core_cpumask(cpu)		(&cpu_core_map[cpu])
06931e62246844 arch/ia64/include/asm/topology.h Bartosz Golaszewski 2015-05-26  45  #define topology_sibling_cpumask(cpu)		(&per_cpu(cpu_sibling_map, cpu))
69dcc99199fe29 include/asm-ia64/topology.h      Zhang, Yanmin       2006-02-03  46  #endif
69dcc99199fe29 include/asm-ia64/topology.h      Zhang, Yanmin       2006-02-03  47  
fe086a7bea7ab7 include/asm-ia64/topology.h      Alex Chiang         2008-04-29  48  extern void arch_fix_phys_package_id(int num, u32 slot);
fe086a7bea7ab7 include/asm-ia64/topology.h      Alex Chiang         2008-04-29  49  
fbb776c3ca4501 arch/ia64/include/asm/topology.h Rusty Russell       2008-12-26  50  #define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ?		\
fbb776c3ca4501 arch/ia64/include/asm/topology.h Rusty Russell       2008-12-26  51  				 cpu_all_mask :				\
36c401a44abcc3 arch/ia64/include/asm/topology.h Ingo Molnar         2009-01-06 @52  				 cpumask_of_node(pcibus_to_node(bus)))
fbb776c3ca4501 arch/ia64/include/asm/topology.h Rusty Russell       2008-12-26  53  

:::::: The code at line 29 was first introduced by commit
:::::: 1d1e9f04216b379000128392b11edd7f5d0ebed1 [IA64] cpumask_of_node() should handle -1 as a node

:::::: TO: Anton Blanchard <anton@xxxxxxxxx>
:::::: CC: Tony Luck <tony.luck@xxxxxxxxx>

---
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