[l1k:smsc95xx_5.17 49/887] drivers/tty/serial/amba-pl011.c:1683:15: warning: no previous prototype for 'pl011_clk_round'

From: kernel test robot
Date: Fri Apr 08 2022 - 09:29:37 EST


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@xxxxxxxxx/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@xxxxxxxxx>

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