Re: [PATCH v3 07/12] clk: rp1: Add support for clocks provided by RP1

From: kernel test robot
Date: Thu Oct 31 2024 - 10:12:44 EST


Hi Andrea,

kernel test robot noticed the following build errors:

[auto build test ERROR on clk/clk-next]
[also build test ERROR on char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus robh/for-next linus/master v6.12-rc5]
[cannot apply to next-20241031]
[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/Andrea-della-Porta/dt-bindings-clock-Add-RaspberryPi-RP1-clock-bindings/20241028-221122
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
patch link: https://lore.kernel.org/r/c20e3d6d87c71691b149cdeeafc94009953346b2.1730123575.git.andrea.porta%40suse.com
patch subject: [PATCH v3 07/12] clk: rp1: Add support for clocks provided by RP1
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20241031/202410312134.vf7iY2Sz-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241031/202410312134.vf7iY2Sz-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/202410312134.vf7iY2Sz-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/clk/clk-rp1.c: In function 'rp1_pll_set_rate':
>> drivers/clk/clk-rp1.c:399:19: error: implicit declaration of function 'FIELD_PREP'; did you mean 'FIELD_SET'? [-Wimplicit-function-declaration]
399 | (_reg) |= FIELD_PREP(mask, (_val)); \
| ^~~~~~~~~~
drivers/clk/clk-rp1.c:621:9: note: in expansion of macro 'FIELD_SET'
621 | FIELD_SET(prim, PLL_PRIM_DIV1_MASK, prim_div1);
| ^~~~~~~~~


vim +399 drivers/clk/clk-rp1.c

394
395 #define FIELD_SET(_reg, _mask, _val) \
396 do { \
397 u32 mask = (_mask); \
398 (_reg) &= ~mask; \
> 399 (_reg) |= FIELD_PREP(mask, (_val)); \
400 } while (0)
401

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