Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [bcain:bcain/boot_qemu 17/40] arch/hexagon/kernel/setup.c:50:15: error: use of undeclared identifier '__dtb_start'; did you mean '__bss_start'?
@ 2026-05-24  0:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-24  0:42 UTC (permalink / raw)
  To: Brian Cain; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/boot_qemu
head:   35eb04372bf7b3ef31afcde7c3336a0ff690d16c
commit: 069f8d84bd3fe3a24e07fbf9de23de4537d60c29 [17/40] hexagon: add platform infrastructure
config: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20260524/202605240825.mlcuRxza-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260524/202605240825.mlcuRxza-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605240825.mlcuRxza-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/hexagon/kernel/setup.c:22:
   arch/hexagon/include/asm/platform.h:29:13: error: conflicting types for 'early_memtest'
      29 | extern void early_memtest(unsigned long start, unsigned long end);
         |             ^
   include/linux/memblock.h:609:20: note: previous definition is here
     609 | static inline void early_memtest(phys_addr_t start, phys_addr_t end) { }
         |                    ^
   arch/hexagon/kernel/setup.c:49:13: error: use of undeclared identifier 'external_buffer'
      49 |         char *p = &external_buffer;
         |                    ^~~~~~~~~~~~~~~
>> arch/hexagon/kernel/setup.c:50:15: error: use of undeclared identifier '__dtb_start'; did you mean '__bss_start'?
      50 |         void *dtb = &__dtb_start;
         |                      ^~~~~~~~~~~
         |                      __bss_start
   include/asm-generic/sections.h:37:13: note: '__bss_start' declared here
      37 | extern char __bss_start[], __bss_stop[];
         |             ^
   3 errors generated.


vim +50 arch/hexagon/kernel/setup.c

e03167b26b7fcf Richard Kuo  2011-10-31  41  
e03167b26b7fcf Richard Kuo  2011-10-31  42  /*
e03167b26b7fcf Richard Kuo  2011-10-31  43   * setup_arch -  high level architectural setup routine
e03167b26b7fcf Richard Kuo  2011-10-31  44   * @cmdline_p: pointer to pointer to command-line arguments
e03167b26b7fcf Richard Kuo  2011-10-31  45   */
e03167b26b7fcf Richard Kuo  2011-10-31  46  
e03167b26b7fcf Richard Kuo  2011-10-31  47  void __init setup_arch(char **cmdline_p)
e03167b26b7fcf Richard Kuo  2011-10-31  48  {
af437bfe6b48c6 Brian Cain   2026-01-24 @49  	char *p = &external_buffer;
af437bfe6b48c6 Brian Cain   2026-01-24 @50  	void *dtb = &__dtb_start;
e03167b26b7fcf Richard Kuo  2011-10-31  51  
e03167b26b7fcf Richard Kuo  2011-10-31  52  	/*
e03167b26b7fcf Richard Kuo  2011-10-31  53  	 * Set up event bindings to handle exceptions and interrupts.
e03167b26b7fcf Richard Kuo  2011-10-31  54  	 */
e03167b26b7fcf Richard Kuo  2011-10-31  55  	__vmsetvec(_K_VM_event_vector);
e03167b26b7fcf Richard Kuo  2011-10-31  56  
2738f359b1dcae Randy Dunlap 2018-06-14  57  	printk(KERN_INFO "PHYS_OFFSET=0x%08lx\n", PHYS_OFFSET);
af437bfe6b48c6 Brian Cain   2026-01-24  58  	/*  initial machine setup from flattened device tree  */
af437bfe6b48c6 Brian Cain   2026-01-24  59  	mdesc = setup_machine_fdt(dtb);
af437bfe6b48c6 Brian Cain   2026-01-24  60  
af437bfe6b48c6 Brian Cain   2026-01-24  61  	if (!mdesc)
af437bfe6b48c6 Brian Cain   2026-01-24  62  		panic("setup_machine_fdt returned NULL\n");
8f5a0b9dffeb3c Richard Kuo  2013-03-22  63  
af437bfe6b48c6 Brian Cain   2026-01-24  64  	if (mdesc->setup_arch_platform) {
af437bfe6b48c6 Brian Cain   2026-01-24  65  		mdesc->setup_arch_platform();
af437bfe6b48c6 Brian Cain   2026-01-24  66  	}
af437bfe6b48c6 Brian Cain   2026-01-24  67  
af437bfe6b48c6 Brian Cain   2026-01-24  68  	printk("vmversion=0x%08lx\n", vmversion);
af437bfe6b48c6 Brian Cain   2026-01-24  69  	printk("vm build id=0x%08lx\n", __vmgetinfo(vm_info_build_id));
af437bfe6b48c6 Brian Cain   2026-01-24  70  	printk("boot_info=%p\n", boot_info);
e03167b26b7fcf Richard Kuo  2011-10-31  71  	/*
af437bfe6b48c6 Brian Cain   2026-01-24  72  	 * Will need to work on boot specification.
e03167b26b7fcf Richard Kuo  2011-10-31  73  	 */
af437bfe6b48c6 Brian Cain   2026-01-24  74  	//  Todo:  seriously need to fix this for all platforms
af437bfe6b48c6 Brian Cain   2026-01-24  75  #ifdef CONFIG_HEXAGON_MSM8960_FLUID
af437bfe6b48c6 Brian Cain   2026-01-24  76  	{
af437bfe6b48c6 Brian Cain   2026-01-24  77  		unsigned int *magic;
af437bfe6b48c6 Brian Cain   2026-01-24  78  
af437bfe6b48c6 Brian Cain   2026-01-24  79  		p = NULL;
af437bfe6b48c6 Brian Cain   2026-01-24  80  		for (magic = (unsigned int *)&external_buffer;
af437bfe6b48c6 Brian Cain   2026-01-24  81  		     magic < ((unsigned int *)&external_buffer) + 32; magic++) {
af437bfe6b48c6 Brian Cain   2026-01-24  82  			if (*magic == 0x54410009) {
af437bfe6b48c6 Brian Cain   2026-01-24  83  				p = (char *)++magic;
af437bfe6b48c6 Brian Cain   2026-01-24  84  				break;
af437bfe6b48c6 Brian Cain   2026-01-24  85  			}
af437bfe6b48c6 Brian Cain   2026-01-24  86  		}
af437bfe6b48c6 Brian Cain   2026-01-24  87  	}
af437bfe6b48c6 Brian Cain   2026-01-24  88  #endif
e03167b26b7fcf Richard Kuo  2011-10-31  89  

:::::: The code at line 50 was first introduced by commit
:::::: af437bfe6b48c6b7436b42f989f7eeb4afc5cfbc hexagon: update boot and setup code

:::::: TO: Brian Cain <brian.cain@oss.qualcomm.com>
:::::: CC: Brian Cain <brian.cain@oss.qualcomm.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-24  0:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-24  0:42 [bcain:bcain/boot_qemu 17/40] arch/hexagon/kernel/setup.c:50:15: error: use of undeclared identifier '__dtb_start'; did you mean '__bss_start'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox