All of lore.kernel.org
 help / color / mirror / Atom feed
* [shenki:aspeed-6.9-rebase 130/1143] drivers/clk/clk-ast2700.c:133:16: warning: no previous prototype for function 'ast2700_calc_mpll'
@ 2024-05-04 10:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-04 10:43 UTC (permalink / raw)
  To: Joel Stanley; +Cc: oe-kbuild-all

tree:   https://github.com/shenki/linux aspeed-6.9-rebase
head:   9bdcee91eb5d9149678acb9d066e9dafbd026721
commit: d3ae9642003754e62475a7e3a3f5844a319f05e9 [130/1143] clk: add support for ast2700
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20240504/202405041846.PdTZwnIF-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 37ae4ad0eef338776c7e2cffb3896153d43dcd90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405041846.PdTZwnIF-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/202405041846.PdTZwnIF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/clk/clk-ast2700.c:110:16: warning: no previous prototype for function 'ast2700_cpu_hw_pll' [-Wmissing-prototypes]
     110 | struct clk_hw *ast2700_cpu_hw_pll(const char *name, const char *parent_name,
         |                ^
   drivers/clk/clk-ast2700.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     110 | struct clk_hw *ast2700_cpu_hw_pll(const char *name, const char *parent_name,
         | ^
         | static 
>> drivers/clk/clk-ast2700.c:133:16: warning: no previous prototype for function 'ast2700_calc_mpll' [-Wmissing-prototypes]
     133 | struct clk_hw *ast2700_calc_mpll(const char *name, const char *parent_name,
         |                ^
   drivers/clk/clk-ast2700.c:133:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     133 | struct clk_hw *ast2700_calc_mpll(const char *name, const char *parent_name,
         | ^
         | static 
   drivers/clk/clk-ast2700.c:182:16: warning: no previous prototype for function 'ast2700_calc_io_pll' [-Wmissing-prototypes]
     182 | struct clk_hw *ast2700_calc_io_pll(const char *name, const char *parent_name,
         |                ^
   drivers/clk/clk-ast2700.c:182:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     182 | struct clk_hw *ast2700_calc_io_pll(const char *name, const char *parent_name,
         | ^
         | static 
   3 warnings generated.


vim +/ast2700_calc_mpll +133 drivers/clk/clk-ast2700.c

   131	
   132	/* MPLL 1600Mhz(default) */
 > 133	struct clk_hw *ast2700_calc_mpll(const char *name, const char *parent_name,
   134					u32 val)
   135	{
   136		unsigned int mult, div;
   137	
   138		if (val & BIT(24)) {
   139			/* Pass through mode */
   140			mult = div = 1;
   141		} else {
   142			/* F = CLKIN(25MHz) * [CLKF/(CLKR+1)] /(CLKOD+1) */
   143			u32 m = val & 0x1fff;
   144			u32 n = (val >> 13) & 0x3f;
   145			u32 p = (val >> 19) & 0xf;
   146	
   147			mult = m / (n + 1);
   148			div = (p + 1);
   149		}
   150		return clk_hw_register_fixed_factor(NULL, name, parent_name, 0, mult,
   151						    div);
   152	};
   153	

-- 
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-05-04 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-04 10:43 [shenki:aspeed-6.9-rebase 130/1143] drivers/clk/clk-ast2700.c:133:16: warning: no previous prototype for function 'ast2700_calc_mpll' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.