lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207081827.vQ4rn2g8-lkp@intel.com>
Date:   Fri, 8 Jul 2022 18:48:32 +0800
From:   kernel test robot <lkp@...el.com>
To:     Rodrigo Siqueira <Rodrigo.Siqueira@....com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>
Subject: [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'

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ