llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [masneyb:20250729-clk-round-rate-test 41/84] drivers/clk/nxp/clk-lpc32xx.c:979:37: error: use of undeclared identifier 'rate'
@ 2025-07-31  3:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-31  3:48 UTC (permalink / raw)
  To: Brian Masney; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/masneyb/linux 20250729-clk-round-rate-test
head:   41999896917d01bf839d72daf8328790029b9a56
commit: d3c486e03d156b6ee1d164161bcb3b9832781889 [41/84] clk: nxp: lpc32xx: convert from round_rate() to determine_rate()
config: arm-randconfig-004-20250731 (https://download.01.org/0day-ci/archive/20250731/202507311123.vRJHjnCu-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 8f09b03aebb71c154f3bbe725c29e3f47d37c26e)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250731/202507311123.vRJHjnCu-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/202507311123.vRJHjnCu-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/clk/nxp/clk-lpc32xx.c:979:37: error: use of undeclared identifier 'rate'
     979 |         req->rate = divider_round_rate(hw, rate, &req->best_parent_rate,
         |                                            ^~~~
   1 error generated.


vim +/rate +979 drivers/clk/nxp/clk-lpc32xx.c

   960	
   961	static int clk_divider_determine_rate(struct clk_hw *hw,
   962					      struct clk_rate_request *req)
   963	{
   964		struct lpc32xx_clk_div *divider = to_lpc32xx_div(hw);
   965		unsigned int bestdiv;
   966	
   967		/* if read only, just return current value */
   968		if (divider->flags & CLK_DIVIDER_READ_ONLY) {
   969			regmap_read(clk_regmap, divider->reg, &bestdiv);
   970			bestdiv >>= divider->shift;
   971			bestdiv &= div_mask(divider->width);
   972			bestdiv = _get_div(divider->table, bestdiv, divider->flags,
   973				divider->width);
   974			req->rate = DIV_ROUND_UP(req->best_parent_rate, bestdiv);
   975	
   976			return 0;
   977		}
   978	
 > 979		req->rate = divider_round_rate(hw, rate, &req->best_parent_rate,
   980					       divider->table,
   981					       divider->width, divider->flags);
   982	
   983		return 0;
   984	}
   985	

-- 
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:[~2025-07-31  3:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31  3:48 [masneyb:20250729-clk-round-rate-test 41/84] drivers/clk/nxp/clk-lpc32xx.c:979:37: error: use of undeclared identifier 'rate' 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;
as well as URLs for NNTP newsgroup(s).