[gerg-m68knommu:dt 12/14] arch/m68k/kernel/setup_mm.c:214:14: error: implicit declaration of function 'early_init_dt_verify'

kernel test robot <[email protected]> Thu, 12 Jun 2025 21:56:23 +0800
Newsgroups gmane.linux.ports.m68k,gmane.linux.uclinux.devel
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu.git dt
head:   a227d3c7914f7e7059bba92fc8a99e4be11b0abf
commit: 57417b30738e9f804d3efecdf41a3119fce08244 [12/14] m68k: implement a builtin devicetree for mm targets
config: m68k-randconfig-r133-20250612 (https://download.01.org/0day-ci/archive/20250613/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 11.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250613/[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 errors (new ones prefixed by >>):

   In file included from arch/m68k/kernel/setup.c:3:
   arch/m68k/kernel/setup_mm.c: In function 'm68k_setup_fdt':
>> arch/m68k/kernel/setup_mm.c:214:14: error: implicit declaration of function 'early_init_dt_verify' [-Werror=implicit-function-declaration]
     214 |         if (!early_init_dt_verify(__va(fdt), fdt)) {
         |              ^~~~~~~~~~~~~~~~~~~~
>> arch/m68k/kernel/setup_mm.c:218:9: error: implicit declaration of function 'early_init_dt_scan_nodes'; did you mean 'early_init_dt_scan_chosen_stdout'? [-Werror=implicit-function-declaration]
     218 |         early_init_dt_scan_nodes();
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
         |         early_init_dt_scan_chosen_stdout
   cc1: some warnings being treated as errors


vim +/early_init_dt_verify +214 arch/m68k/kernel/setup_mm.c

   207	
   208	#ifdef CONFIG_BUILTIN_DTB
   209	static void __init m68k_setup_fdt(void)
   210	{
   211		phys_addr_t fdt = (phys_addr_t) &__dtb_start;
   212	
   213		pr_info("m68k generic DT machine support, FDT blob at 0x%08x\n", fdt);
 > 214		if (!early_init_dt_verify(__va(fdt), fdt)) {
   215			pr_err("FDT blob is bad?!\n");
   216			return;
   217		}
 > 218		early_init_dt_scan_nodes();
   219		unflatten_device_tree();
   220	}
   221	

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