[xilinx-xlnx:xlnx_rebase_v5.15_LTS_2022.1_update 470/1102] drivers/misc/jesd204b/jesd_phy.c:172:6: warning: no previous prototype for function 'jesd204_phy_set_speed'
kernel test robot
lkp at intel.com
Mon May 30 21:46:49 PDT 2022
Hi Shubhrajyoti,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS_2022.1_update
head: 8e42834c82e505bacccca3c9d35da7041793d9d7
commit: 4cf40e565c55a749ca7a7bbc7bc998fd3f3a2486 [470/1102] misc: jesd204b: Add driver for Xilinx jesd204b
config: arm-randconfig-r026-20220531 (https://download.01.org/0day-ci/archive/20220531/202205311254.tY9EYYED-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/Xilinx/linux-xlnx/commit/4cf40e565c55a749ca7a7bbc7bc998fd3f3a2486
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS_2022.1_update
git checkout 4cf40e565c55a749ca7a7bbc7bc998fd3f3a2486
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/xlnx/ drivers/media/i2c/ drivers/misc/jesd204b/ drivers/staging/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/misc/jesd204b/jesd_phy.c:97:6: warning: variable 'pll' set but not used [-Wunused-but-set-variable]
int pll = st->pll;
^
>> drivers/misc/jesd204b/jesd_phy.c:172:6: warning: no previous prototype for function 'jesd204_phy_set_speed' [-Wmissing-prototypes]
void jesd204_phy_set_speed(struct jesd204b_phy_state *st, u32 band)
^
drivers/misc/jesd204b/jesd_phy.c:172:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void jesd204_phy_set_speed(struct jesd204b_phy_state *st, u32 band)
^
static
2 warnings generated.
vim +/jesd204_phy_set_speed +172 drivers/misc/jesd204b/jesd_phy.c
171
> 172 void jesd204_phy_set_speed(struct jesd204b_phy_state *st, u32 band)
173 {
174 /* make sure we have the correct PLL's selected. */
175 configure_channel_drp(st, band);
176 }
177
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the linux-arm-kernel
mailing list