linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [l1k:smsc95xx_5.17 49/887] drivers/tty/serial/amba-pl011.c:1683:15: warning: no previous prototype for 'pl011_clk_round'
@ 2022-04-08 13:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-08 13:28 UTC (permalink / raw)
  To: Phil Elwell; +Cc: kbuild-all, linux-kernel, Dom Cobley

tree:   https://github.com/l1k/linux smsc95xx_5.17
head:   05d68ced287b30f62f18f95b5476135ef669804a
commit: 6772a88f41ecca42cf47b805ddf28483377792fd [49/887] amba_pl011: Round input clock up
config: arm-randconfig-c002-20220408 (https://download.01.org/0day-ci/archive/20220408/202204082132.LLpePoZa-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/l1k/linux/commit/6772a88f41ecca42cf47b805ddf28483377792fd
        git remote add l1k https://github.com/l1k/linux
        git fetch --no-tags l1k smsc95xx_5.17
        git checkout 6772a88f41ecca42cf47b805ddf28483377792fd
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/tty/serial/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/amba-pl011.c:1683:15: warning: no previous prototype for 'pl011_clk_round' [-Wmissing-prototypes]
    1683 | unsigned long pl011_clk_round(unsigned long clk)
         |               ^~~~~~~~~~~~~~~


vim +/pl011_clk_round +1683 drivers/tty/serial/amba-pl011.c

  1682	
> 1683	unsigned long pl011_clk_round(unsigned long clk)
  1684	{
  1685		unsigned long scaler;
  1686	
  1687		/*
  1688		 * If increasing a clock by less than 0.1% changes it
  1689		 * from ..999.. to ..000.., round up.
  1690		 */
  1691		scaler = 1;
  1692		while (scaler * 100000 < clk)
  1693			scaler *= 10;
  1694		if ((clk + scaler - 1)/scaler % 1000 == 0)
  1695			clk = (clk/scaler + 1) * scaler;
  1696	
  1697		return clk;
  1698	}
  1699	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-08 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08 13:28 [l1k:smsc95xx_5.17 49/887] drivers/tty/serial/amba-pl011.c:1683:15: warning: no previous prototype for 'pl011_clk_round' 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).