[linux-next:master 3550/3551] arch/sparc/kernel/setup_64.c:658:35: sparse: sparse: incorrect type in assignment (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/next/linux-next.git master
head:   48bbaf8b793e0770798519f8ee1ea2908ff0943a
commit: 233d97f67e6525aff8a621735926a8acbd980ca1 [3550/3551] sparc: turn off Werror for now
config: sparc64-randconfig-r121-20231127 (https://download.01.org/0day-ci/archive/20231127/202311272244.tXvOAAfj-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231127/202311272244.tXvOAAfj-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/202311272244.tXvOAAfj-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
   arch/sparc/kernel/setup_64.c:602:13: sparse: sparse: symbol 'alloc_irqstack_bootmem' was not declared. Should it be static?
>> arch/sparc/kernel/setup_64.c:658:35: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be32 extern [addressable] [toplevel] [usertype] ic_myaddr @@     got unsigned int [assigned] [usertype] cl @@
   arch/sparc/kernel/setup_64.c:658:35: sparse:     expected restricted __be32 extern [addressable] [toplevel] [usertype] ic_myaddr
   arch/sparc/kernel/setup_64.c:658:35: sparse:     got unsigned int [assigned] [usertype] cl
>> arch/sparc/kernel/setup_64.c:659:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be32 extern [addressable] [toplevel] [usertype] ic_servaddr @@     got unsigned int [assigned] [usertype] sv @@
   arch/sparc/kernel/setup_64.c:659:37: sparse:     expected restricted __be32 extern [addressable] [toplevel] [usertype] ic_servaddr
   arch/sparc/kernel/setup_64.c:659:37: sparse:     got unsigned int [assigned] [usertype] sv
>> arch/sparc/kernel/setup_64.c:661:44: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be32 extern [addressable] [toplevel] [usertype] ic_gateway @@     got unsigned int [assigned] [usertype] gw @@
   arch/sparc/kernel/setup_64.c:661:44: sparse:     expected restricted __be32 extern [addressable] [toplevel] [usertype] ic_gateway
   arch/sparc/kernel/setup_64.c:661:44: sparse:     got unsigned int [assigned] [usertype] gw

vim +658 arch/sparc/kernel/setup_64.c

^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  648  
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  649  #ifdef CONFIG_IP_PNP
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  650  	if (!ic_set_manually) {
8d1255627d4ce9 arch/sparc/kernel/setup_64.c Andres Salomon  2010-10-08  651  		phandle chosen = prom_finddevice("/chosen");
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  652  		u32 cl, sv, gw;
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  653  
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  654  		cl = prom_getintdefault (chosen, "client-ip", 0);
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  655  		sv = prom_getintdefault (chosen, "server-ip", 0);
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  656  		gw = prom_getintdefault (chosen, "gateway-ip", 0);
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  657  		if (cl && sv) {
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16 @658  			ic_myaddr = cl;
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16 @659  			ic_servaddr = sv;
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  660  			if (gw)
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16 @661  				ic_gateway = gw;
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  662  #if defined(CONFIG_IP_PNP_BOOTP) || defined(CONFIG_IP_PNP_RARP)
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  663  			ic_proto_enabled = 0;
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  664  #endif
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  665  		}
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  666  	}
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  667  #endif
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  668  
56fb4df6da76c3 arch/sparc64/kernel/setup.c  David S. Miller 2006-02-26  669  	/* Get boot processor trap_block[] setup.  */
72aff53f1fe741 arch/sparc64/kernel/setup.c  David S. Miller 2006-02-17  670  	init_cur_cpu_trap(current_thread_info());
52845cdb3b9c4c arch/sparc64/kernel/setup.c  David S. Miller 2006-02-26  671  
52845cdb3b9c4c arch/sparc64/kernel/setup.c  David S. Miller 2006-02-26  672  	paging_init();
ac85fe8b212480 arch/sparc/kernel/setup_64.c David S. Miller 2011-07-28  673  	init_sparc64_elf_hwcap();
9b2f753ec23710 arch/sparc/kernel/setup_64.c Atish Patra     2016-09-15  674  	smp_fill_in_cpu_possible_map();
ebb99a4c12e4da arch/sparc/kernel/setup_64.c Atish Patra     2016-09-15  675  	/*
ebb99a4c12e4da arch/sparc/kernel/setup_64.c Atish Patra     2016-09-15  676  	 * Once the OF device tree and MDESC have been setup and nr_cpus has
ebb99a4c12e4da arch/sparc/kernel/setup_64.c Atish Patra     2016-09-15  677  	 * been parsed, we know the list of possible cpus.  Therefore we can
ebb99a4c12e4da arch/sparc/kernel/setup_64.c Atish Patra     2016-09-15  678  	 * allocate the IRQ stacks.
ebb99a4c12e4da arch/sparc/kernel/setup_64.c Atish Patra     2016-09-15  679  	 */
ebb99a4c12e4da arch/sparc/kernel/setup_64.c Atish Patra     2016-09-15  680  	alloc_irqstack_bootmem();
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  681  }
^1da177e4c3f41 arch/sparc64/kernel/setup.c  Linus Torvalds  2005-04-16  682  

:::::: The code at line 658 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux