drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hubp.c:1319:6: warning: no previous prototype for function 'hubp1_wait_pipe_read_start'

From: kernel test robot
Date: Mon Apr 04 2022 - 18:47:55 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3123109284176b1532874591f7c81f3837bbdc17
commit: dd15640bcee5a5fa74fc52557dd6220f48b01116 drm/amd/display: Wait for hubp read line for Pollock
date: 3 weeks ago
config: x86_64-buildonly-randconfig-r004-20220404 (https://download.01.org/0day-ci/archive/20220405/202204050538.gofpqsjw-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dd15640bcee5a5fa74fc52557dd6220f48b01116
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout dd15640bcee5a5fa74fc52557dd6220f48b01116
# 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=x86_64 SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hubp.c:1319:6: warning: no previous prototype for function 'hubp1_wait_pipe_read_start' [-Wmissing-prototypes]
void hubp1_wait_pipe_read_start(struct hubp *hubp)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hubp.c:1319:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void hubp1_wait_pipe_read_start(struct hubp *hubp)
^
static
1 warning generated.


vim +/hubp1_wait_pipe_read_start +1319 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hubp.c

1313
1314 /**
1315 * hubp1_wait_pipe_read_start - wait for hubp ret path starting read.
1316 *
1317 * @hubp: hubp struct reference.
1318 */
> 1319 void hubp1_wait_pipe_read_start(struct hubp *hubp)
1320 {
1321 struct dcn10_hubp *hubp1 = TO_DCN10_HUBP(hubp);
1322
1323 REG_WAIT(HUBPRET_READ_LINE_STATUS,
1324 PIPE_READ_VBLANK, 0,
1325 1, 1000);
1326 }
1327

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