All of lore.kernel.org
 help / color / mirror / Atom feed
* [habanaai:dev/ogabbay/gaudi 27/27] drivers/misc/habanalabs/include/gaudi/gaudi.h:57: warning: "CACHE_LINE_SIZE" redefined
@ 2020-05-08 18:45 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-08 18:45 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/HabanaAI/linux.git dev/ogabbay/gaudi
head:   10a68eef69cdab0cef7c99fe2e895b42c4c031ea
commit: 10a68eef69cdab0cef7c99fe2e895b42c4c031ea [27/27] add gaudi files
config: m68k-randconfig-r016-20200508 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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 10a68eef69cdab0cef7c99fe2e895b42c4c031ea
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/misc/habanalabs/gaudi/gaudiP.h:15,
                    from drivers/misc/habanalabs/gaudi/gaudi.c:8:
>> drivers/misc/habanalabs/include/gaudi/gaudi.h:57: warning: "CACHE_LINE_SIZE" redefined
      57 | #define CACHE_LINE_SIZE  128
         | 
   In file included from arch/m68k/include/asm/m54xxsim.h:17,
                    from arch/m68k/include/asm/mcfsim.h:46,
                    from arch/m68k/include/asm/io_no.h:35,
                    from arch/m68k/include/asm/io.h:6,
                    from include/linux/io.h:13,
                    from include/linux/iopoll.h:14,
                    from drivers/misc/habanalabs/habanalabs.h:15,
                    from drivers/misc/habanalabs/gaudi/gaudiP.h:12,
                    from drivers/misc/habanalabs/gaudi/gaudi.c:8:
   arch/m68k/include/asm/m54xxacr.h:65: note: this is the location of the previous definition
      65 | #define CACHE_LINE_SIZE 0x0010 /* 16 bytes */
         | 
   In file included from include/linux/device.h:15,
                    from include/linux/cdev.h:8,
                    from drivers/misc/habanalabs/habanalabs.h:14,
                    from drivers/misc/habanalabs/gaudi/gaudiP.h:12,
                    from drivers/misc/habanalabs/gaudi/gaudi.c:8:
   drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_get_dma_desc_list_size':
   drivers/misc/habanalabs/gaudi/gaudi.c:3851:4: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
    3851 |    "SG no. %d, addr 0x%llx, size %llu\n",
         |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
     133 |   dev_level(dev, fmt, ##__VA_ARGS__);   \
         |   ^~~~~~~~~
   include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
     159 |  dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~
   drivers/misc/habanalabs/gaudi/gaudi.c:3850:3: note: in expansion of macro 'dev_dbg_once'
    3850 |   dev_dbg_once(hdev->dev,
         |   ^~~~~~~~~~~~
   drivers/misc/habanalabs/gaudi/gaudi.c:3851:26: note: format string is defined here
    3851 |    "SG no. %d, addr 0x%llx, size %llu\n",
         |                       ~~~^
         |                          |
         |                          long long unsigned int
         |                       %x
   In file included from include/linux/device.h:15,
                    from include/linux/cdev.h:8,
                    from drivers/misc/habanalabs/habanalabs.h:14,
                    from drivers/misc/habanalabs/gaudi/gaudiP.h:12,
                    from drivers/misc/habanalabs/gaudi/gaudi.c:8:
   drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_pin_memory_before_cs':
   drivers/misc/habanalabs/gaudi/gaudi.c:3919:3: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
    3919 |   "JOB %d.%llu.%d, 1st DMA address 0x%llx\n",
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/misc/habanalabs/gaudi/gaudi.c:3918:2: note: in expansion of macro 'dev_dbg'
    3918 |  dev_dbg(hdev->dev,
         |  ^~~~~~~
   drivers/misc/habanalabs/gaudi/gaudi.c:3919:41: note: format string is defined here
    3919 |   "JOB %d.%llu.%d, 1st DMA address 0x%llx\n",
         |                                      ~~~^
         |                                         |
         |                                         long long unsigned int
         |                                      %x
   In file included from include/linux/device.h:15,
                    from include/linux/cdev.h:8,
                    from drivers/misc/habanalabs/habanalabs.h:14,
                    from drivers/misc/habanalabs/gaudi/gaudiP.h:12,
                    from drivers/misc/habanalabs/gaudi/gaudi.c:8:
   drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_patch_dma_packet':
   drivers/misc/habanalabs/gaudi/gaudi.c:4166:4: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
    4166 |    "SG no. %d, addr 0x%llx, size %llu\n",
         |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
     133 |   dev_level(dev, fmt, ##__VA_ARGS__);   \
         |   ^~~~~~~~~
   include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
     159 |  dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~
   drivers/misc/habanalabs/gaudi/gaudi.c:4165:3: note: in expansion of macro 'dev_dbg_once'
    4165 |   dev_dbg_once(hdev->dev,
         |   ^~~~~~~~~~~~
   drivers/misc/habanalabs/gaudi/gaudi.c:4166:26: note: format string is defined here
    4166 |    "SG no. %d, addr 0x%llx, size %llu\n",
         |                       ~~~^
         |                          |
         |                          long long unsigned int
         |                       %x
--
   In file included from drivers/misc/habanalabs/gaudi/gaudiP.h:15,
                    from drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c:8:
>> drivers/misc/habanalabs/include/gaudi/gaudi.h:57: warning: "CACHE_LINE_SIZE" redefined
      57 | #define CACHE_LINE_SIZE  128
         | 
   In file included from arch/m68k/include/asm/m54xxsim.h:17,
                    from arch/m68k/include/asm/mcfsim.h:46,
                    from arch/m68k/include/asm/io_no.h:35,
                    from arch/m68k/include/asm/io.h:6,
                    from include/linux/io.h:13,
                    from include/linux/iopoll.h:14,
                    from drivers/misc/habanalabs/habanalabs.h:15,
                    from drivers/misc/habanalabs/gaudi/gaudiP.h:12,
                    from drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c:8:
   arch/m68k/include/asm/m54xxacr.h:65: note: this is the location of the previous definition
      65 | #define CACHE_LINE_SIZE 0x0010 /* 16 bytes */
         | 

vim +/CACHE_LINE_SIZE +57 drivers/misc/habanalabs/include/gaudi/gaudi.h

ec585821d10f81a Oded Gabbay 2020-05-03  56  
ec585821d10f81a Oded Gabbay 2020-05-03 @57  #define CACHE_LINE_SIZE		128
ec585821d10f81a Oded Gabbay 2020-05-03  58  

:::::: The code at line 57 was first introduced by commit
:::::: ec585821d10f81aacdbd7db890c1caddbf6b4e50 add gaudi registers header files

:::::: TO: Oded Gabbay <oded.gabbay@gmail.com>
:::::: CC: Oded Gabbay <oded.gabbay@gmail.com>

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

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

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

only message in thread, other threads:[~2020-05-08 18:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 18:45 [habanaai:dev/ogabbay/gaudi 27/27] drivers/misc/habanalabs/include/gaudi/gaudi.h:57: warning: "CACHE_LINE_SIZE" redefined 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.