lkml.org 
[lkml]   [2022]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[l1k:smsc95xx_5.17 49/887] drivers/tty/serial/amba-pl011.c:1683:15: warning: no previous prototype for 'pl011_clk_round'
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

\
 
 \ /
  Last update: 2022-04-08 15:30    [W:0.090 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site