[android-common:android14-6.1 0/1] drivers/firmware/arm_scmi/shmem.c:190:9: warning: 'reg_io_width' is used uninitialized

kernel test robot <[email protected]> Tue, 28 Jul 2026 18:42:10 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
Hi Florian,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android14-6.1
head:   a6fc30b246f0d8be1c91e0d37c8b3bc859b1b2bc
commit: fa34bcaf9e7b5bd86a417a14ea86bb88d9ea524e [0/1] BACKPORT: firmware: arm_scmi: Support 'reg-io-width' property for shared memory
config: x86_64-buildonly-randconfig-003-20260728 (https://download.01.org/0day-ci/archive/20260728/[email protected]/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260728/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   drivers/firmware/arm_scmi/shmem.c: In function 'shmem_get_io_ops':
>> drivers/firmware/arm_scmi/shmem.c:190:9: warning: 'reg_io_width' is used uninitialized [-Wuninitialized]
     190 |         switch (reg_io_width) {
         |         ^~~~~~
   drivers/firmware/arm_scmi/shmem.c:187:13: note: 'reg_io_width' was declared here
     187 |         u32 reg_io_width;
         |             ^~~~~~~~~~~~


vim +/reg_io_width +190 drivers/firmware/arm_scmi/shmem.c

   184	
   185	struct scmi_shmem_io_ops *shmem_get_io_ops(struct device_node *shmem)
   186	{
   187		u32 reg_io_width;
   188	
   189		of_property_read_u32(shmem, "reg-io-width", &reg_io_width);
 > 190		switch (reg_io_width) {

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