All of lore.kernel.org
 help / color / mirror / Atom feed
* [bvanassche:master 27/34] include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
@ 2019-12-16 10:33 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-12-16 10:33 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/bvanassche/linux master
head:   ccbf6a171141bb759d0b1ae7db982aa61074a9f7
commit: fb44e03c77a65d1c0a723a484a0b28aebe19252e [27/34] include-asm-generic-io-h
config: ia64-randconfig-a001-20191216 (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 fb44e03c77a65d1c0a723a484a0b28aebe19252e
        # 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@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c: In function 'cn23xx_dump_pf_initialized_regs':
   drivers/net/ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net/ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:122:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net/ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net/ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:152:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net/ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net/ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:176:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net/ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net/ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:181:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:25:0:
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c: In function 'cn23xx_pf_setup_global_output_regs':
   drivers/net/ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:494:13: note: in expansion of macro 'octeon_read_csr'
      reg_val = octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(q_no));
                ^~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:25:0:
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c: In function 'cn23xx_setup_oq_regs':
   drivers/net/ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:655:7: note: in expansion of macro 'octeon_read_csr'
          octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(oq_no));
          ^~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:25:0:
   drivers/net/ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:663:7: note: in expansion of macro 'octeon_read_csr'
          octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(oq_no));
          ^~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    from include/linux/gfp.h:9,
                    from include/linux/xarray.h:14,
                    from include/linux/radix-tree.h:18,
--
   In file included from drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c: In function 'cn23xx_dump_pf_initialized_regs':
   drivers/net//ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net//ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:122:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net//ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net//ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:152:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net//ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net//ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:176:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:27:0:
   drivers/net//ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net//ethernet/cavium/liquidio/octeon_main.h:31:42: note: in definition of macro 'CVM_CAST64'
    #define CVM_CAST64(v) ((long long)(long)(v))
                                             ^
>> include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr'
      dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
                                                  ^~~~~~~~~~~
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:181:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(&oct->pci_dev->dev, "%s(%d)[%llx] : 0x%016llx\n",
      ^~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:25:0:
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c: In function 'cn23xx_pf_setup_global_output_regs':
   drivers/net//ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:494:13: note: in expansion of macro 'octeon_read_csr'
      reg_val = octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(q_no));
                ^~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:25:0:
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c: In function 'cn23xx_setup_oq_regs':
   drivers/net//ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:655:7: note: in expansion of macro 'octeon_read_csr'
          octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(oq_no));
          ^~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    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/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:18:
   include/asm-generic/io.h:173:15: note: expected 'const volatile __le32 * {aka const volatile unsigned int *}' but argument is of type 'u8 * {aka unsigned char *}'
    #define readl readl
                  ^
   include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
    static inline u32 readl(const volatile __le32 __iomem *addr)
                      ^~~~~
   In file included from drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:25:0:
   drivers/net//ethernet/cavium/liquidio/octeon_device.h:759:9: error: passing argument 1 of 'readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
      readl((oct_dev)->mmio[0].hw_addr + (reg_off))
            ^
   drivers/net//ethernet/cavium/liquidio/cn23xx_pf_device.c:663:7: note: in expansion of macro 'octeon_read_csr'
          octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(oq_no));
          ^~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/io.h:282:0,
                    from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/percpu.h:7,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    from include/linux/gfp.h:9,
                    from include/linux/xarray.h:14,
                    from include/linux/radix-tree.h:18,

vim +/octeon_read_csr +1792 include/linux/device.h

99bcf217183e02 Joe Perches  2010-06-27  1761  
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1762  /*
663336ee262809 Joe Perches  2018-05-09  1763   * #defines for all the dev_<level> macros to prefix with whatever
663336ee262809 Joe Perches  2018-05-09  1764   * possible use of #define dev_fmt(fmt) ...
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1765   */
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1766  
663336ee262809 Joe Perches  2018-05-09  1767  #define dev_emerg(dev, fmt, ...)					\
663336ee262809 Joe Perches  2018-05-09  1768  	_dev_emerg(dev, dev_fmt(fmt), ##__VA_ARGS__)
663336ee262809 Joe Perches  2018-05-09  1769  #define dev_crit(dev, fmt, ...)						\
663336ee262809 Joe Perches  2018-05-09  1770  	_dev_crit(dev, dev_fmt(fmt), ##__VA_ARGS__)
663336ee262809 Joe Perches  2018-05-09  1771  #define dev_alert(dev, fmt, ...)					\
663336ee262809 Joe Perches  2018-05-09  1772  	_dev_alert(dev, dev_fmt(fmt), ##__VA_ARGS__)
663336ee262809 Joe Perches  2018-05-09  1773  #define dev_err(dev, fmt, ...)						\
663336ee262809 Joe Perches  2018-05-09  1774  	_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
663336ee262809 Joe Perches  2018-05-09  1775  #define dev_warn(dev, fmt, ...)						\
663336ee262809 Joe Perches  2018-05-09  1776  	_dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__)
663336ee262809 Joe Perches  2018-05-09  1777  #define dev_notice(dev, fmt, ...)					\
663336ee262809 Joe Perches  2018-05-09  1778  	_dev_notice(dev, dev_fmt(fmt), ##__VA_ARGS__)
663336ee262809 Joe Perches  2018-05-09  1779  #define dev_info(dev, fmt, ...)						\
663336ee262809 Joe Perches  2018-05-09  1780  	_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1781  
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1782  #if defined(CONFIG_DYNAMIC_DEBUG)
663336ee262809 Joe Perches  2018-05-09  1783  #define dev_dbg(dev, fmt, ...)						\
663336ee262809 Joe Perches  2018-05-09  1784  	dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1785  #elif defined(DEBUG)
663336ee262809 Joe Perches  2018-05-09  1786  #define dev_dbg(dev, fmt, ...)						\
663336ee262809 Joe Perches  2018-05-09  1787  	dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1788  #else
663336ee262809 Joe Perches  2018-05-09  1789  #define dev_dbg(dev, fmt, ...)						\
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1790  ({									\
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1791  	if (0)								\
663336ee262809 Joe Perches  2018-05-09 @1792  		dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1793  })
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1794  #endif
6f586e663e3b36 Hiroshi Doyu 2012-09-04  1795  

:::::: The code at line 1792 was first introduced by commit
:::::: 663336ee2628096df0ce2b546b148cb74b5249fe device: Add #define dev_fmt similar to #define pr_fmt

:::::: TO: Joe Perches <joe@perches.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31575 bytes --]

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

only message in thread, other threads:[~2019-12-16 10:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-16 10:33 [bvanassche:master 27/34] include/linux/device.h:1792:47: note: in expansion of macro 'octeon_read_csr' kbuild 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.