From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 485DF2BD02; Fri, 3 Jul 2026 02:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783046422; cv=none; b=uBQCcoW1EtTXvkQ7a7x9gQSC53Wb3tb/UBAOajfbBx9O6KZXEXpMlDT3GS6fW79sA5ayvCOYzn1iCv0Xis1vAbOfzzwV2S7g019aDUU3i86uWX8Di7SdDkU/sPSyWV2OSvwFsjF1ujLZmy11y5jXbzYGQeD8446Zxr78UGMstbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783046422; c=relaxed/simple; bh=0AI1qSUDgyds9NG4txWuFAnA3OGEaeYOFw/nu1gYhCw=; h=Date:From:To:Cc:Subject:Message-ID; b=I5zPBUOycr5JsAtFz/jvwRAkuPrCCA7ZJOZP0Hw3ltnrG66TFm5he1ajWJDA6BWoXb5+osOQ4b8sgH3DMTg3YsMyHNyQqCUiVjif7/ju80x2lFIoUoEKBB2tJHwMOm4mIIRfjcYugnyW+3T2jhdUsB77dtwjh4uZ05U8htGuffI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=JEU2SghN; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JEU2SghN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1783046421; x=1814582421; h=date:from:to:cc:subject:message-id; bh=0AI1qSUDgyds9NG4txWuFAnA3OGEaeYOFw/nu1gYhCw=; b=JEU2SghN7gORFTQWF9p1g3r5im/qm2pIbxTiXLjm0rWE2aTeQPE7647R j0KgOTWEeFHvkDLOjk3/m31Op35I3JhVX0ic4XF8DcxNgKL7tnSQyzhzd NzEHUxCuGI3Jd8vxDYa88fNPmzQAQ73+85riq6l4mQAlpFGvUUmcvjzW7 CdVyPTEmQO8Hd/NoWrsBmN5+c119eWFqVYy6/+WKJXSNK/M9pmZ9YlAxv 8PkUQvCdDB9hV6A8E0Io4IKZCxjln72HudvsLqMfJYRzLp8OMZCZ7Ja4Z zGHrrvIgnbmLsmIDjEt0X7gBfFvVjFE8Do6CHNSdUxWxSwcyKkU4Qcy7r A==; X-CSE-ConnectionGUID: jwV1ULrHTSavexCtDlADMw== X-CSE-MsgGUID: XmwTKBb5ROazqV1PhMBEXw== X-IronPort-AV: E=McAfee;i="6800,10657,11835"; a="101337780" X-IronPort-AV: E=Sophos;i="6.25,144,1779174000"; d="scan'208";a="101337780" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2026 19:40:21 -0700 X-CSE-ConnectionGUID: +fGNcFVSQXCu5/nDMh5N1Q== X-CSE-MsgGUID: SeaJYc8BT3+8pD76raOZSA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,144,1779174000"; d="scan'208";a="249653406" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by fmviesa007.fm.intel.com with ESMTP; 02 Jul 2026 19:40:19 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wfTp7-00000000BZN-2Ed1; Fri, 03 Jul 2026 02:40:14 +0000 Date: Fri, 03 Jul 2026 10:39:11 +0800 From: kernel test robot To: Brian Cain Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [bcain:bcain/qemu_boot 61/62] arch/hexagon/mm/init.c:200:23: error: use of undeclared identifier 'initial_boot_params' Message-ID: <202607031056.NzWE7jI9-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/qemu_boot head: a74f943885b7a0e655c7c47d4d02f852c12c1ce1 commit: 69ae2bd79fdcdf08cf389539f20a37d98ed42631 [61/62] hexagon: harden adoption of a bootloader-provided DTB config: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20260703/202607031056.NzWE7jI9-lkp@intel.com/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 0a2fb2a2269da0e2a3e230beb6cad39ca314db33) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260703/202607031056.NzWE7jI9-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202607031056.NzWE7jI9-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/hexagon/mm/init.c:200:23: error: use of undeclared identifier 'initial_boot_params' 200 | if (boot_dtb_phys && initial_boot_params) | ^~~~~~~~~~~~~~~~~~~ arch/hexagon/mm/init.c:202:20: error: use of undeclared identifier 'initial_boot_params' 202 | fdt_totalsize(initial_boot_params)); | ^~~~~~~~~~~~~~~~~~~ 2 errors generated. vim +/initial_boot_params +200 arch/hexagon/mm/init.c 188 189 memblock_add(PHYS_OFFSET, 190 (bootmem_lastpg - ARCH_PFN_OFFSET) << PAGE_SHIFT); 191 192 /* Reserve kernel text/data/bss */ 193 memblock_reserve(PHYS_OFFSET, 194 (bootmem_startpg - ARCH_PFN_OFFSET) << PAGE_SHIFT); 195 196 /* 197 * A bootloader-provided DTB sits in our RAM until it is 198 * unflattened; keep the allocator away from it. 199 */ > 200 if (boot_dtb_phys && initial_boot_params) 201 memblock_reserve(boot_dtb_phys, 202 fdt_totalsize(initial_boot_params)); 203 /* 204 * Reserve the top DMA_RESERVE bytes of RAM for DMA (uncached) 205 * memory allocation 206 */ 207 max_low_pfn = bootmem_lastpg - PFN_DOWN(DMA_RESERVED_BYTES); 208 min_low_pfn = ARCH_PFN_OFFSET; 209 memblock_reserve(PFN_PHYS(max_low_pfn), DMA_RESERVED_BYTES); 210 211 printk(KERN_INFO "bootmem_startpg: 0x%08lx\n", bootmem_startpg); 212 printk(KERN_INFO "bootmem_lastpg: 0x%08lx\n", bootmem_lastpg); 213 printk(KERN_INFO "min_low_pfn: 0x%08lx\n", min_low_pfn); 214 printk(KERN_INFO "max_low_pfn: 0x%08lx\n", max_low_pfn); 215 216 /* 217 * The default VM page tables (will be) populated with 218 * VA=PA+PAGE_OFFSET mapping. We go in and invalidate entries 219 * higher than what we have memory for. 220 */ 221 222 /* this is pointer arithmetic; each entry covers 4MB */ 223 segtable = segtable + (PAGE_OFFSET >> 22); 224 // probably should do something more graceful than this 225 #ifdef CONFIG_HEXAGON_SPLIT_2GB 226 #define KERNEL_BIGPAGES_GB (2) 227 #else 228 #define KERNEL_BIGPAGES_GB (1) 229 #endif 230 231 segtable_end = segtable + (KERNEL_BIGPAGES_GB<<(30-22)); 232 233 /* 234 * Move forward to the start of empty pages; take into account 235 * phys_offset shift. 236 */ 237 238 segtable += (bootmem_lastpg-ARCH_PFN_OFFSET)>>(22-PAGE_SHIFT); 239 { 240 int i; 241 for (i = 1 ; i <= DMA_RESERVE ; i++) 242 segtable[-i] = ((segtable[-i] & __HVM_PTE_PGMASK_4MB) 243 | __HVM_PTE_R | __HVM_PTE_W | __HVM_PTE_X 244 | __HEXAGON_C_UNC << 6 245 | __HVM_PDE_S_4MB); 246 } 247 248 printk(KERN_INFO "clearing segtable from %p to %p\n", segtable, 249 segtable_end); 250 while (segtable < (segtable_end-8)) 251 *(segtable++) = __HVM_PDE_S_INVALID; 252 /* stop the pointer at the device I/O 4MB page */ 253 254 printk(KERN_INFO "segtable = %p (should be equal to _K_io_map; %p)\n", 255 segtable, &_K_io_map); 256 257 // Should use set_pmd or whatever, but whatevs 258 // these are fixed 4k regardless of what the kernel is using for everything else 259 *segtable = __pa(&_K_init_devicetable) | __HVM_PDE_S_4KB; 260 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki