Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH v7 09/10] platform/chrome: Introduce device tree hardware prober
       [not found] <20240911072751.365361-10-wenst@chromium.org>
@ 2024-09-13 15:36 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-13 15:36 UTC (permalink / raw)
  To: Chen-Yu Tsai; +Cc: llvm, oe-kbuild-all

Hi Chen-Yu,

kernel test robot noticed the following build errors:

[auto build test ERROR on broonie-regulator/for-next]
[also build test ERROR on next-20240913]
[cannot apply to robh/for-next wsa/i2c/for-next linus/master v6.11-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Chen-Yu-Tsai/of-dynamic-Add-of_changeset_update_prop_string/20240911-153237
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
patch link:    https://lore.kernel.org/r/20240911072751.365361-10-wenst%40chromium.org
patch subject: [PATCH v7 09/10] platform/chrome: Introduce device tree hardware prober
config: arm64-randconfig-002-20240913 (https://download.01.org/0day-ci/archive/20240913/202409132343.1z91h4au-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project bf684034844c660b778f0eba103582f582b710c9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240913/202409132343.1z91h4au-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/202409132343.1z91h4au-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/platform/chrome/chromeos_of_hw_prober.c:66:8: error: call to undeclared function 'of_machine_is_compatible'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      66 |                 if (!of_machine_is_compatible(hw_prober_platforms[i].compatible))
         |                      ^
   drivers/platform/chrome/chromeos_of_hw_prober.c:93:7: error: call to undeclared function 'of_machine_is_compatible'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      93 |                 if (of_machine_is_compatible(hw_prober_platforms[i].compatible))
         |                     ^
   2 errors generated.


vim +/of_machine_is_compatible +66 drivers/platform/chrome/chromeos_of_hw_prober.c

    60	
    61	static int chromeos_of_hw_prober_probe(struct platform_device *pdev)
    62	{
    63		for (size_t i = 0; i < ARRAY_SIZE(hw_prober_platforms); i++) {
    64			int ret;
    65	
  > 66			if (!of_machine_is_compatible(hw_prober_platforms[i].compatible))
    67				continue;
    68	
    69			ret = hw_prober_platforms[i].prober(&pdev->dev, hw_prober_platforms[i].data);
    70			/* Ignore unrecoverable errors and keep going through other probers */
    71			if (ret == -EPROBE_DEFER)
    72				return ret;
    73		}
    74	
    75		return 0;
    76	}
    77	

-- 
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:[~2024-09-13 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20240911072751.365361-10-wenst@chromium.org>
2024-09-13 15:36 ` [PATCH v7 09/10] platform/chrome: Introduce device tree hardware prober 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