lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204082132.LLpePoZa-lkp@intel.com>
Date:   Fri, 8 Apr 2022 21:28:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     Phil Elwell <phil@...pberrypi.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Dom Cobley <popcornmix@...il.com>
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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ