public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [agd5f:drm-next 350/403] drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:273:9: warning: no previous prototype for function 'dc_dmub_srv_get_pipes_for_stream'
@ 2022-07-08 10:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-08 10:48 UTC (permalink / raw)
  To: Rodrigo Siqueira; +Cc: llvm, kbuild-all, linux-kernel, Alex Deucher

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   51d10e1a9912e950abf19b6314f3d6f95dd16af3
commit: 00fa7f031dd4b885175da390e24cb02f6a45977e [350/403] drm/amd/display: Add basic infrastructure for enabling FAMS
config: riscv-randconfig-r006-20220707 (https://download.01.org/0day-ci/archive/20220708/202207081827.vQ4rn2g8-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 562c3467a6738aa89203f72fc1d1343e5baadf3c)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        git checkout 00fa7f031dd4b885175da390e24cb02f6a45977e
        # 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=riscv SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:273:9: warning: no previous prototype for function 'dc_dmub_srv_get_pipes_for_stream' [-Wmissing-prototypes]
   uint8_t dc_dmub_srv_get_pipes_for_stream(struct dc *dc, struct dc_stream_state *stream)
           ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:273:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   uint8_t dc_dmub_srv_get_pipes_for_stream(struct dc *dc, struct dc_stream_state *stream)
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:287:5: warning: no previous prototype for function 'dc_dmub_srv_get_timing_generator_offset' [-Wmissing-prototypes]
   int dc_dmub_srv_get_timing_generator_offset(struct dc *dc, struct dc_stream_state *stream)
       ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:287:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int dc_dmub_srv_get_timing_generator_offset(struct dc *dc, struct dc_stream_state *stream)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:636:6: warning: no previous prototype for function 'dc_dmub_setup_subvp_dmub_command' [-Wmissing-prototypes]
   void dc_dmub_setup_subvp_dmub_command(struct dc *dc,
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:636:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dc_dmub_setup_subvp_dmub_command(struct dc *dc,
   ^
   static 
   3 warnings generated.


vim +/dc_dmub_srv_get_pipes_for_stream +273 drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c

   272	
 > 273	uint8_t dc_dmub_srv_get_pipes_for_stream(struct dc *dc, struct dc_stream_state *stream)
   274	{
   275		uint8_t pipes = 0;
   276		int i = 0;
   277	
   278		for (i = 0; i < MAX_PIPES; i++) {
   279			struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i];
   280	
   281			if (pipe->stream == stream && pipe->stream_res.tg)
   282				pipes = i;
   283		}
   284		return pipes;
   285	}
   286	
 > 287	int dc_dmub_srv_get_timing_generator_offset(struct dc *dc, struct dc_stream_state *stream)
   288	{
   289		int  tg_inst = 0;
   290		int i = 0;
   291	
   292		for (i = 0; i < MAX_PIPES; i++) {
   293			struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i];
   294	
   295			if (pipe->stream == stream && pipe->stream_res.tg) {
   296				tg_inst = pipe->stream_res.tg->inst;
   297				break;
   298			}
   299		}
   300		return tg_inst;
   301	}
   302	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-08 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-08 10:48 [agd5f:drm-next 350/403] drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:273:9: warning: no previous prototype for function 'dc_dmub_srv_get_pipes_for_stream' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox