From: kernel test robot <lkp@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Mallesh Koujalagi <mallesh.koujalagi@intel.com>
Subject: drivers/gpu/drm/xe/xe_log.c:43:9: sparse: sparse: incompatible types for 'case' statement
Date: Sun, 06 Dec 2026 12:27:54 +0100 [thread overview]
Message-ID: <20261204170017.QQiwIAbL-lkp@intel.com> (raw)
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
reply other threads:[~2026-12-06 11:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261204170017.QQiwIAbL-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mallesh.koujalagi@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rodrigo.vivi@intel.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 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®