All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-11-09  5:05 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-11-09  5:05 UTC (permalink / raw)
  To: Jim Cromie,  Łukasz Bartosik; +Cc: oe-kbuild-all

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: hexagon-randconfig-2200-20261109 (https://download.01.org/0day-ci/archive/20261109/202611090644.2AXd5ibO-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261109/202611090644.2AXd5ibO-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/202611090644.2AXd5ibO-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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
@ 2026-11-09 11:36 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-11-09 11:36 UTC (permalink / raw)
  To: Jim Cromie,  Łukasz Bartosik; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-09 11:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 11:36 [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
  -- strict thread matches above, loose matches on Subject: below --
2026-11-09  5:05 kernel 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.