[xilinx-xlnx:xlnx_rebase_v5.15_LTS 449/1039] drivers/clk/clk-si5324.c:474: warning: expecting prototype for si5324_regmap_is_writable(). Prototype was for si5324_regmap_is_writeable() instead

kernel test robot lkp at intel.com
Tue Mar 29 19:46:51 PDT 2022


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   ea33365bd1a8cf667a122498e8f551df05609f92
commit: 2ba5718a624ee405166bd43683de3825b70a128f [449/1039] clk: Adding Silicon labs si5324 clock driver
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220330/202203301024.kfL1z28R-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/Xilinx/linux-xlnx/commit/2ba5718a624ee405166bd43683de3825b70a128f
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
        git checkout 2ba5718a624ee405166bd43683de3825b70a128f
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> drivers/clk/clk-si5324.c:474: warning: expecting prototype for si5324_regmap_is_writable(). Prototype was for si5324_regmap_is_writeable() instead


vim +474 drivers/clk/clk-si5324.c

   462	
   463	/**
   464	 * si5324_regmap_is_writable - Checks the register is writable or not
   465	 *
   466	 * @dev:	Registered device
   467	 * @reg:	Register offset
   468	 *
   469	 * Checks the register is writable or not.
   470	 *
   471	 * Return:	True if the register is writeable, False if it's not writeable.
   472	 */
   473	static bool si5324_regmap_is_writeable(struct device *dev, unsigned int reg)
 > 474	{
   475		if ((reg > SI5324_POWERDOWN && reg < SI5324_FOS_LOCKT) ||
   476		    (reg > SI5324_N1_HS && reg < SI5324_NC1_LS_H) ||
   477		    (reg > SI5324_NC2_LS_L && reg < SI5324_N2_HS_LS_H) ||
   478		    (reg > SI5324_N32_CLKIN_L && reg < SI5324_FOS_CLKIN_RATE) ||
   479		    (reg > SI5324_FOS_CLKIN_RATE && reg < SI5324_PLL_ACTV_CLK) ||
   480		    reg > SI5324_SKEW2 ||
   481		    (reg >= SI5324_PLL_ACTV_CLK && reg <= SI5324_CLKIN_LOL_STATUS) ||
   482		    (reg >= SI5324_PARTNO_H && reg <= SI5324_PARTNO_L))
   483			return false;
   484	
   485		return true;
   486	}
   487	

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



More information about the linux-arm-kernel mailing list