All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Oded Gabbay <oded.gabbay@gmail.com>
Cc: kbuild-all@lists.01.org, dri-devel@lists.freedesktop.org
Subject: [gabbayo:habanalabs-next 32/36] include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t'
Date: Thu, 14 May 2020 22:23:59 +0800	[thread overview]
Message-ID: <202005142252.GvurdBR8%lkp@intel.com> (raw)

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

tree:   git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head:   26238fa1d1b5837f4ff047721adbfafed48bf175
commit: f58f37e092abe1577fcc4fd5d29b9b1a533c6e54 [32/36] habanalabs: add gaudi asic-dependent code
config: i386-randconfig-a002-20200514 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce:
        git checkout f58f37e092abe1577fcc4fd5d29b9b1a533c6e54
        # save the attached .config to linux build tree
        make ARCH=i386 

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 >>, old ones prefixed by <<):

In file included from include/linux/dynamic_debug.h:6:0,
from include/linux/printk.h:326,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/cdev.h:5,
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':
>> include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false))                                                               ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id))            ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg,        ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
dev_level(dev, fmt, ##__VA_ARGS__);         ^
include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:3964:3: note: in expansion of macro 'dev_dbg_once'
dev_dbg_once(hdev->dev,
^
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_pin_memory_before_cs':
include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false))                                                               ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id))            ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg,        ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:4032:2: note: in expansion of macro 'dev_dbg'
dev_dbg(hdev->dev,
^
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_patch_dma_packet':
>> include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false))                                                               ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id))            ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg,        ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
dev_level(dev, fmt, ##__VA_ARGS__);         ^
include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:4279:3: note: in expansion of macro 'dev_dbg_once'
dev_dbg_once(hdev->dev,
^

vim +471 include/linux/jump_label.h

11276d5306b8e5 Peter Zijlstra 2015-07-24  465  
11276d5306b8e5 Peter Zijlstra 2015-07-24  466  #define static_branch_unlikely(x)						\
11276d5306b8e5 Peter Zijlstra 2015-07-24  467  ({										\
11276d5306b8e5 Peter Zijlstra 2015-07-24  468  	bool branch;								\
11276d5306b8e5 Peter Zijlstra 2015-07-24  469  	if (__builtin_types_compatible_p(typeof(*x), struct static_key_true))	\
11276d5306b8e5 Peter Zijlstra 2015-07-24  470  		branch = arch_static_branch_jump(&(x)->key, false);		\
11276d5306b8e5 Peter Zijlstra 2015-07-24 @471  	else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false)) \
11276d5306b8e5 Peter Zijlstra 2015-07-24  472  		branch = arch_static_branch(&(x)->key, false);			\
11276d5306b8e5 Peter Zijlstra 2015-07-24  473  	else									\
11276d5306b8e5 Peter Zijlstra 2015-07-24  474  		branch = ____wrong_branch_error();				\
81dcf89f03204d Peter Zijlstra 2018-01-18  475  	unlikely(branch);							\
11276d5306b8e5 Peter Zijlstra 2015-07-24  476  })
11276d5306b8e5 Peter Zijlstra 2015-07-24  477  

:::::: The code at line 471 was first introduced by commit
:::::: 11276d5306b8e5b438a36bbff855fe792d7eaa61 locking/static_keys: Add a new static_key interface

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

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

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [gabbayo:habanalabs-next 32/36] include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t'
Date: Thu, 14 May 2020 22:23:59 +0800	[thread overview]
Message-ID: <202005142252.GvurdBR8%lkp@intel.com> (raw)

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

tree:   git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head:   26238fa1d1b5837f4ff047721adbfafed48bf175
commit: f58f37e092abe1577fcc4fd5d29b9b1a533c6e54 [32/36] habanalabs: add gaudi asic-dependent code
config: i386-randconfig-a002-20200514 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce:
        git checkout f58f37e092abe1577fcc4fd5d29b9b1a533c6e54
        # save the attached .config to linux build tree
        make ARCH=i386 

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 >>, old ones prefixed by <<):

In file included from include/linux/dynamic_debug.h:6:0,
from include/linux/printk.h:326,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/cdev.h:5,
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':
>> include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false))                                                               ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id))            ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg,        ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
dev_level(dev, fmt, ##__VA_ARGS__);         ^
include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:3964:3: note: in expansion of macro 'dev_dbg_once'
dev_dbg_once(hdev->dev,
^
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_pin_memory_before_cs':
include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false))                                                               ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id))            ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg,        ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:4032:2: note: in expansion of macro 'dev_dbg'
dev_dbg(hdev->dev,
^
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_patch_dma_packet':
>> include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false))                                                               ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id))            ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg,        ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
dev_level(dev, fmt, ##__VA_ARGS__);         ^
include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:4279:3: note: in expansion of macro 'dev_dbg_once'
dev_dbg_once(hdev->dev,
^

vim +471 include/linux/jump_label.h

11276d5306b8e5 Peter Zijlstra 2015-07-24  465  
11276d5306b8e5 Peter Zijlstra 2015-07-24  466  #define static_branch_unlikely(x)						\
11276d5306b8e5 Peter Zijlstra 2015-07-24  467  ({										\
11276d5306b8e5 Peter Zijlstra 2015-07-24  468  	bool branch;								\
11276d5306b8e5 Peter Zijlstra 2015-07-24  469  	if (__builtin_types_compatible_p(typeof(*x), struct static_key_true))	\
11276d5306b8e5 Peter Zijlstra 2015-07-24  470  		branch = arch_static_branch_jump(&(x)->key, false);		\
11276d5306b8e5 Peter Zijlstra 2015-07-24 @471  	else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false)) \
11276d5306b8e5 Peter Zijlstra 2015-07-24  472  		branch = arch_static_branch(&(x)->key, false);			\
11276d5306b8e5 Peter Zijlstra 2015-07-24  473  	else									\
11276d5306b8e5 Peter Zijlstra 2015-07-24  474  		branch = ____wrong_branch_error();				\
81dcf89f03204d Peter Zijlstra 2018-01-18  475  	unlikely(branch);							\
11276d5306b8e5 Peter Zijlstra 2015-07-24  476  })
11276d5306b8e5 Peter Zijlstra 2015-07-24  477  

:::::: The code at line 471 was first introduced by commit
:::::: 11276d5306b8e5b438a36bbff855fe792d7eaa61 locking/static_keys: Add a new static_key interface

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

---
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: 34708 bytes --]

             reply	other threads:[~2020-05-14 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14 14:23 kbuild test robot [this message]
2020-05-14 14:23 ` [gabbayo:habanalabs-next 32/36] include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' kbuild test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202005142252.GvurdBR8%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kbuild-all@lists.01.org \
    --cc=oded.gabbay@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.