* drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
@ 2026-12-06 11:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-06 11:27 UTC (permalink / raw)
To: Michal Wajdeczko
Cc: oe-kbuild-all, linux-kernel, Rodrigo Vivi, Mallesh Koujalagi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 007722b8211f7b34fdf21b1e6a9c32497633ea29
commit: 1151b9f6f46570650bdda5931380320119ae97e4 drm/xe/log: Add component/location decorations to dmesg
date: 4 months ago
config: alpha-randconfig-r2311-20261203 (https://download.01.org/0day-ci/archive/20261204/20261204170017.QQiwIAbL-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204170017.QQiwIAbL-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
| Fixes: 1151b9f6f465 ("drm/xe/log: Add component/location decorations to dmesg")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261204170017.QQiwIAbL-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/xe/xe_log.c: note: in included file:
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
drivers/gpu/drm/xe/abi/xe_log_abi.h:171:9: sparse: sparse: bad constant expression
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
>> drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: Expected constant expression in case statement
vim +/case +43 drivers/gpu/drm/xe/xe_log.c
37
38 static const char *log_component_prefix(u32 component)
39 {
40 switch (component) {
41 #define MAKE_XE_LOG_COMPONENT_CASE_PREFIX(_CLASS, _ID, _TAG, _SIG, _NAME) \
42 case XE_LOG_COMPONENT_##_TAG: return #_TAG ": ";
> 43 DEFINE_XE_LOG_COMPONENTS(MAKE_XE_LOG_COMPONENT_CASE_PREFIX)
44 #undef MAKE_XE_LOG_COMPONENT_CASE_PREFIX
45 }
46
47 return component ? log_unknown_component_prefix(component) : "";
48 }
49
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-06 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-06 11:27 drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®