[groeck-staging:testing 10/11] arch/nios2/kernel/prom.c:24:39: sparse: sparse: incorrect type in initializer (different base types)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git testing
head:   471566efaf17fc2be0b9be63bf04d2c44fbb3b20
commit: a1f82fe941b07e2ba651fd5ace75e88209adb8ba [10/11] nios2: Only use built-in devicetree blob if configured to do so
config: nios2-randconfig-r132-20240323 (https://download.01.org/0day-ci/archive/20240323/202403232201.JtbvWJxL-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240323/202403232201.JtbvWJxL-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403232201.JtbvWJxL-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> arch/nios2/kernel/prom.c:24:39: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __be32 [usertype] *[unused] dtb @@     got unsigned int [usertype] * @@
   arch/nios2/kernel/prom.c:24:39: sparse:     expected restricted __be32 [usertype] *[unused] dtb
   arch/nios2/kernel/prom.c:24:39: sparse:     got unsigned int [usertype] *

vim +24 arch/nios2/kernel/prom.c

    21	
    22	void __init early_init_devtree(void *params)
    23	{
  > 24		__be32 __maybe_unused *dtb = (u32 *)__dtb_start;
    25	

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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux