All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yury Norov <ynorov@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: drivers/platform/cznic/turris-omnia-mcu-base.c:230:14: sparse: sparse: incompatible types for 'case' statement
Date: Thu, 03 Dec 2026 06:07:47 +0100	[thread overview]
Message-ID: <20261203060723.CD2wiA1r-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 09472f591aa0b72c2dd6c693f48b2d6fea66c7ba bitfield: wire __bf_shf to __builtin_ctzll
date:   7 months ago
config: xtensa-randconfig-r2303-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203060723.CD2wiA1r-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 15.3.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203060723.CD2wiA1r-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: 09472f591aa0 ("bitfield: wire __bf_shf to __builtin_ctzll")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203060723.CD2wiA1r-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/platform/cznic/turris-omnia-mcu-base.c: note: in included file (through arch/xtensa/include/asm/thread_info.h, arch/xtensa/include/asm/current.h, include/linux/sched.h, include/linux/ratelimit.h, ...):
   arch/xtensa/include/asm/processor.h:105:2: sparse: sparse: Unsupported xtensa ABI
   arch/xtensa/include/asm/processor.h:135:2: sparse: sparse: Unsupported Xtensa ABI
   drivers/platform/cznic/turris-omnia-mcu-base.c: note: in included file:
   include/linux/turris-omnia-mcu-interface.h:102:51: sparse: sparse: bad constant expression
   include/linux/turris-omnia-mcu-interface.h:103:51: sparse: sparse: bad constant expression
   include/linux/turris-omnia-mcu-interface.h:104:51: sparse: sparse: bad constant expression
   include/linux/turris-omnia-mcu-interface.h:135:43: sparse: sparse: bad constant expression
   include/linux/turris-omnia-mcu-interface.h:136:43: sparse: sparse: bad constant expression
   include/linux/turris-omnia-mcu-interface.h:158:51: sparse: sparse: bad constant expression
   include/linux/turris-omnia-mcu-interface.h:159:51: sparse: sparse: bad constant expression
   include/linux/turris-omnia-mcu-interface.h:160:51: sparse: sparse: bad constant expression
>> drivers/platform/cznic/turris-omnia-mcu-base.c:230:14: sparse: sparse: incompatible types for 'case' statement
   drivers/platform/cznic/turris-omnia-mcu-base.c:232:14: sparse: sparse: incompatible types for 'case' statement
   drivers/platform/cznic/turris-omnia-mcu-base.c:234:14: sparse: sparse: incompatible types for 'case' statement
   drivers/platform/cznic/turris-omnia-mcu-base.c:230:14: sparse: sparse: Expected constant expression in case statement
   drivers/platform/cznic/turris-omnia-mcu-base.c:232:14: sparse: sparse: Expected constant expression in case statement
   drivers/platform/cznic/turris-omnia-mcu-base.c:234:14: sparse: sparse: Expected constant expression in case statement

vim +/case +230 drivers/platform/cznic/turris-omnia-mcu-base.c

992f1a3d4e88498 Marek Behún 2024-07-01  226  
992f1a3d4e88498 Marek Behún 2024-07-01  227  static const char *omnia_status_to_mcu_type(u16 status)
992f1a3d4e88498 Marek Behún 2024-07-01  228  {
992f1a3d4e88498 Marek Behún 2024-07-01  229  	switch (status & OMNIA_STS_MCU_TYPE_MASK) {
992f1a3d4e88498 Marek Behún 2024-07-01 @230  	case OMNIA_STS_MCU_TYPE_STM32:
992f1a3d4e88498 Marek Behún 2024-07-01  231  		return "STM32";
992f1a3d4e88498 Marek Behún 2024-07-01  232  	case OMNIA_STS_MCU_TYPE_GD32:
992f1a3d4e88498 Marek Behún 2024-07-01  233  		return "GD32";
992f1a3d4e88498 Marek Behún 2024-07-01  234  	case OMNIA_STS_MCU_TYPE_MKL:
992f1a3d4e88498 Marek Behún 2024-07-01  235  		return "MKL";
992f1a3d4e88498 Marek Behún 2024-07-01  236  	default:
992f1a3d4e88498 Marek Behún 2024-07-01  237  		return "unknown";
992f1a3d4e88498 Marek Behún 2024-07-01  238  	}
992f1a3d4e88498 Marek Behún 2024-07-01  239  }
992f1a3d4e88498 Marek Behún 2024-07-01  240  

:::::: The code at line 230 was first introduced by commit
:::::: 992f1a3d4e88498de04b0b13b94705d8540f3d81 platform: cznic: Add preliminary support for Turris Omnia MCU

:::::: TO: Marek Behún <kabel@kernel.org>
:::::: CC: Arnd Bergmann <arnd@arndb.de>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-12-03  5:08 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=20261203060723.CD2wiA1r-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ynorov@nvidia.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.