All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Joel Stanley <joel@jms.id.au>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [shenki:aspeed-6.9-rebase 130/1143] drivers/clk/clk-ast2700.c:133:16: warning: no previous prototype for function 'ast2700_calc_mpll'
Date: Sat, 4 May 2024 18:43:37 +0800	[thread overview]
Message-ID: <202405041846.PdTZwnIF-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-05-04 10:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202405041846.PdTZwnIF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=joel@jms.id.au \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.