From: kernel test robot <lkp@intel.com>
To: Phil Elwell <phil@raspberrypi.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Dom Cobley <popcornmix@gmail.com>
Subject: [l1k:smsc95xx_5.17 49/887] drivers/tty/serial/amba-pl011.c:1683:15: warning: no previous prototype for 'pl011_clk_round'
Date: Fri, 8 Apr 2022 21:28:23 +0800 [thread overview]
Message-ID: <202204082132.LLpePoZa-lkp@intel.com> (raw)
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
reply other threads:[~2022-04-08 13:29 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=202204082132.LLpePoZa-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phil@raspberrypi.org \
--cc=popcornmix@gmail.com \
/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.