From: kernel test robot <lkp@intel.com>
To: "Jim Cromie" <jim.cromie@gmail.com>,
" Łukasz Bartosik" <ukaszb@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jimc:dyndbg-maple-clean 47/50] lib/dynamic_debug.c:301:39: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 3458764513820540928 to 0
Date: Mon, 09 Nov 2026 19:36:16 +0800 [thread overview]
Message-ID: <202611091955.WMblcOS9-lkp@intel.com> (raw)
tree: https://github.com/jimc/linux.git dyndbg-maple-clean
head: 5f7782a41d4ca319992609b6589a592f87e83006
commit: af718ee6a3256d73ee276d2c2bbbae9df0da6bfb [47/50] dyndbg: Save _ddebug_site fields into a maple-tree
config: loongarch-randconfig-1000-20261109 (https://download.01.org/0day-ci/archive/20261109/202611091955.WMblcOS9-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project fc9576e3b179738d99c5babe5cd9d6c1f883e0db)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261109/202611091955.WMblcOS9-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611091955.WMblcOS9-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/dynamic_debug.c:301:39: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 3458764513820540928 to 0 [-Wconstant-conversion]
301 | DEFINE_DYNDBG_SITE_ACCESSOR(function, DD_TAG_FUNC)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
lib/dynamic_debug.c:117:28: note: expanded from macro 'DD_TAG_FUNC'
117 | #define DD_TAG_FUNC (3ULL << DD_KEY_TAG_SHIFT)
| ^
lib/dynamic_debug.c:292:61: note: expanded from macro 'DEFINE_DYNDBG_SITE_ACCESSOR'
292 | unsigned long key = ddebug_site_tag_key((unsigned long)dp, tag); \
| ~~~~~~~~~~~~~~~~~~~ ^~~
lib/dynamic_debug.c:302:39: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 2305843009213693952 to 0 [-Wconstant-conversion]
302 | DEFINE_DYNDBG_SITE_ACCESSOR(filename, DD_TAG_FILE)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
lib/dynamic_debug.c:116:28: note: expanded from macro 'DD_TAG_FILE'
116 | #define DD_TAG_FILE (2ULL << DD_KEY_TAG_SHIFT)
| ^
lib/dynamic_debug.c:292:61: note: expanded from macro 'DEFINE_DYNDBG_SITE_ACCESSOR'
292 | unsigned long key = ddebug_site_tag_key((unsigned long)dp, tag); \
| ~~~~~~~~~~~~~~~~~~~ ^~~
lib/dynamic_debug.c:303:38: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 1152921504606846976 to 0 [-Wconstant-conversion]
303 | DEFINE_DYNDBG_SITE_ACCESSOR(modname, DD_TAG_MOD)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
lib/dynamic_debug.c:115:27: note: expanded from macro 'DD_TAG_MOD'
115 | #define DD_TAG_MOD (1ULL << DD_KEY_TAG_SHIFT)
| ^
lib/dynamic_debug.c:292:61: note: expanded from macro 'DEFINE_DYNDBG_SITE_ACCESSOR'
292 | unsigned long key = ddebug_site_tag_key((unsigned long)dp, tag); \
| ~~~~~~~~~~~~~~~~~~~ ^~~
lib/dynamic_debug.c:311:51: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 1152921504606846976 to 0 [-Wconstant-conversion]
311 | *mod = mtree_load(mt, ddebug_site_tag_key(addr, DD_TAG_MOD)) ?: "unknown";
| ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
lib/dynamic_debug.c:115:27: note: expanded from macro 'DD_TAG_MOD'
115 | #define DD_TAG_MOD (1ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:313:52: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 2305843009213693952 to 0 [-Wconstant-conversion]
313 | *file = mtree_load(mt, ddebug_site_tag_key(addr, DD_TAG_FILE)) ?: "unknown";
| ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
lib/dynamic_debug.c:116:28: note: expanded from macro 'DD_TAG_FILE'
116 | #define DD_TAG_FILE (2ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:315:52: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 3458764513820540928 to 0 [-Wconstant-conversion]
315 | *func = mtree_load(mt, ddebug_site_tag_key(addr, DD_TAG_FUNC)) ?: "unknown";
| ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
lib/dynamic_debug.c:117:28: note: expanded from macro 'DD_TAG_FUNC'
117 | #define DD_TAG_FUNC (3ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:1825:35: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 3458764513820540928 to 0 [-Wconstant-conversion]
1824 | funcs = ddebug_grow_tree(di, &dd_site_map,
| ~~~~~~~~~~~~~~~~
1825 | "func", ddebug_get_function, DD_TAG_FUNC);
| ^~~~~~~~~~~
lib/dynamic_debug.c:117:28: note: expanded from macro 'DD_TAG_FUNC'
117 | #define DD_TAG_FUNC (3ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:1827:35: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 2305843009213693952 to 0 [-Wconstant-conversion]
1826 | files = ddebug_grow_tree(di, &dd_site_map,
| ~~~~~~~~~~~~~~~~
1827 | "file", ddebug_get_filename, DD_TAG_FILE);
| ^~~~~~~~~~~
lib/dynamic_debug.c:116:28: note: expanded from macro 'DD_TAG_FILE'
116 | #define DD_TAG_FILE (2ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:1829:32: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 1152921504606846976 to 0 [-Wconstant-conversion]
1828 | mods = ddebug_grow_tree(di, &dd_site_map,
| ~~~~~~~~~~~~~~~~
1829 | "mod", ddebug_get_modname, DD_TAG_MOD);
| ^~~~~~~~~~
lib/dynamic_debug.c:115:27: note: expanded from macro 'DD_TAG_MOD'
115 | #define DD_TAG_MOD (1ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:1968:52: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 3458764513820540928 to 0 [-Wconstant-conversion]
1968 | unsigned long tags[] = { DD_TAG_MOD, DD_TAG_FILE, DD_TAG_FUNC };
| ~ ^~~~~~~~~~~
lib/dynamic_debug.c:117:28: note: expanded from macro 'DD_TAG_FUNC'
117 | #define DD_TAG_FUNC (3ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:1968:39: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 2305843009213693952 to 0 [-Wconstant-conversion]
1968 | unsigned long tags[] = { DD_TAG_MOD, DD_TAG_FILE, DD_TAG_FUNC };
| ~ ^~~~~~~~~~~
lib/dynamic_debug.c:116:28: note: expanded from macro 'DD_TAG_FILE'
116 | #define DD_TAG_FILE (2ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
lib/dynamic_debug.c:1968:27: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 1152921504606846976 to 0 [-Wconstant-conversion]
1968 | unsigned long tags[] = { DD_TAG_MOD, DD_TAG_FILE, DD_TAG_FUNC };
| ~ ^~~~~~~~~~
lib/dynamic_debug.c:115:27: note: expanded from macro 'DD_TAG_MOD'
115 | #define DD_TAG_MOD (1ULL << DD_KEY_TAG_SHIFT)
| ~~~~~^~~~~~~~~~~~~~~~~~~
12 warnings generated.
vim +301 lib/dynamic_debug.c
300
> 301 DEFINE_DYNDBG_SITE_ACCESSOR(function, DD_TAG_FUNC)
302 DEFINE_DYNDBG_SITE_ACCESSOR(filename, DD_TAG_FILE)
303 DEFINE_DYNDBG_SITE_ACCESSOR(modname, DD_TAG_MOD)
304
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-11-09 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 11:36 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-09 5:05 [jimc:dyndbg-maple-clean 47/50] lib/dynamic_debug.c:301:39: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 3458764513820540928 to 0 kernel 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=202611091955.WMblcOS9-lkp@intel.com \
--to=lkp@intel.com \
--cc=jim.cromie@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ukaszb@chromium.org \
/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.