[xilinx-xlnx:xlnx_rebase_v5.15_LTS 449/1129] 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
Fri May 6 20:20:34 PDT 2022


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   3076249fc30bf463f8390f89009de928ad3e95ff
commit: 2ba5718a624ee405166bd43683de3825b70a128f [449/1129] clk: Adding Silicon labs si5324 clock driver
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220507/202205071136.hP3ivBuW-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.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/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
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/clk/ drivers/gpu/drm/xlnx/ drivers/media/i2c/ drivers/media/mc/ drivers/media/platform/xilinx/ drivers/misc/ drivers/net/ethernet/xilinx/ drivers/phy/xilinx/ drivers/ptp/ drivers/staging/ drivers/uio/

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