All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chrome-os:chromeos-5.10 14300/15499] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:661:6: error: no previous prototype for function 'dce110_enable_stream'
Date: Sat, 03 Jul 2021 07:56:19 +0800	[thread overview]
Message-ID: <202107030711.NB7mCT69-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 10336 bytes --]

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head:   685ab048ae7fbfee2ef83e20696bdff3a2005d32
commit: 8939cb71896288e79239f436065d5c391a3e7b3d [14300/15499] UPSTREAM: drm: display: Remove duplicate include in dce110
config: arm-randconfig-r023-20210702 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9eb613b2de3163686b1a4bd1160f15ac56a4b083)
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
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-5.10
        git checkout 8939cb71896288e79239f436065d5c391a3e7b3d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:661:6: error: no previous prototype for function 'dce110_enable_stream' [-Werror,-Wmissing-prototypes]
   void dce110_enable_stream(struct pipe_ctx *pipe_ctx)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:661:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_enable_stream(struct pipe_ctx *pipe_ctx)
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1133:6: error: no previous prototype for function 'dce110_disable_stream' [-Werror,-Wmissing-prototypes]
   void dce110_disable_stream(struct pipe_ctx *pipe_ctx)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1133:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_disable_stream(struct pipe_ctx *pipe_ctx)
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1159:6: error: no previous prototype for function 'dce110_unblank_stream' [-Werror,-Wmissing-prototypes]
   void dce110_unblank_stream(struct pipe_ctx *pipe_ctx,
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_unblank_stream(struct pipe_ctx *pipe_ctx,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1785:6: error: no previous prototype for function 'dce110_set_safe_displaymarks' [-Werror,-Wmissing-prototypes]
   void dce110_set_safe_displaymarks(
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:1785:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_set_safe_displaymarks(
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2566:6: error: no previous prototype for function 'dce110_prepare_bandwidth' [-Werror,-Wmissing-prototypes]
   void dce110_prepare_bandwidth(
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2566:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_prepare_bandwidth(
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2580:6: error: no previous prototype for function 'dce110_optimize_bandwidth' [-Werror,-Wmissing-prototypes]
   void dce110_optimize_bandwidth(
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2580:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_optimize_bandwidth(
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2863:6: error: no previous prototype for function 'dce110_set_backlight_level' [-Werror,-Wmissing-prototypes]
   bool dce110_set_backlight_level(struct pipe_ctx *pipe_ctx,
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2863:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool dce110_set_backlight_level(struct pipe_ctx *pipe_ctx,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2897:6: error: no previous prototype for function 'dce110_set_abm_immediate_disable' [-Werror,-Wmissing-prototypes]
   void dce110_set_abm_immediate_disable(struct pipe_ctx *pipe_ctx)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2897:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_set_abm_immediate_disable(struct pipe_ctx *pipe_ctx)
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2910:6: error: no previous prototype for function 'dce110_set_pipe' [-Werror,-Wmissing-prototypes]
   void dce110_set_pipe(struct pipe_ctx *pipe_ctx)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2910:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_set_pipe(struct pipe_ctx *pipe_ctx)
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2976:6: error: no previous prototype for function 'dce110_hw_sequencer_construct' [-Werror,-Wmissing-prototypes]
   void dce110_hw_sequencer_construct(struct dc *dc)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2976:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dce110_hw_sequencer_construct(struct dc *dc)
   ^
   static 
   10 errors generated.


vim +/dce110_enable_stream +661 drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c

4562236b3bc0a2 Harry Wentland   2017-09-12  660  
4562236b3bc0a2 Harry Wentland   2017-09-12 @661  void dce110_enable_stream(struct pipe_ctx *pipe_ctx)
4562236b3bc0a2 Harry Wentland   2017-09-12  662  {
4562236b3bc0a2 Harry Wentland   2017-09-12  663  	enum dc_lane_count lane_count =
ceb3dbb4690db8 Jun Lei          2018-11-09  664  		pipe_ctx->stream->link->cur_link_settings.lane_count;
4fa086b9b66408 Leo (Sunpeng  Li 2017-07-25  665) 	struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
ceb3dbb4690db8 Jun Lei          2018-11-09  666  	struct dc_link *link = pipe_ctx->stream->link;
f42ea55be11147 Anthony Koo      2019-11-05  667  	const struct dc *dc = link->dc;
f215a57dca691c Eric Yang        2018-02-21  668  
4562236b3bc0a2 Harry Wentland   2017-09-12  669  	uint32_t active_total_with_borders;
4562236b3bc0a2 Harry Wentland   2017-09-12  670  	uint32_t early_control = 0;
6b670fa965b620 Harry Wentland   2017-07-30  671  	struct timing_generator *tg = pipe_ctx->stream_res.tg;
4562236b3bc0a2 Harry Wentland   2017-09-12  672  
f215a57dca691c Eric Yang        2018-02-21  673  	/* For MST, there are multiply stream go to only one link.
f215a57dca691c Eric Yang        2018-02-21  674  	 * connect DIG back_end to front_end while enable_stream and
f215a57dca691c Eric Yang        2018-02-21  675  	 * disconnect them during disable_stream
f215a57dca691c Eric Yang        2018-02-21  676  	 * BY this, it is logic clean to separate stream and link */
f215a57dca691c Eric Yang        2018-02-21  677  	link->link_enc->funcs->connect_dig_be_to_fe(link->link_enc,
f215a57dca691c Eric Yang        2018-02-21  678  						    pipe_ctx->stream_res.stream_enc->id, true);
f215a57dca691c Eric Yang        2018-02-21  679  
f42ea55be11147 Anthony Koo      2019-11-05  680  	dc->hwss.update_info_frame(pipe_ctx);
f215a57dca691c Eric Yang        2018-02-21  681  
4562236b3bc0a2 Harry Wentland   2017-09-12  682  	/* enable early control to avoid corruption on DP monitor*/
4562236b3bc0a2 Harry Wentland   2017-09-12  683  	active_total_with_borders =
4562236b3bc0a2 Harry Wentland   2017-09-12  684  			timing->h_addressable
4562236b3bc0a2 Harry Wentland   2017-09-12  685  				+ timing->h_border_left
4562236b3bc0a2 Harry Wentland   2017-09-12  686  				+ timing->h_border_right;
4562236b3bc0a2 Harry Wentland   2017-09-12  687  
4562236b3bc0a2 Harry Wentland   2017-09-12  688  	if (lane_count != 0)
4562236b3bc0a2 Harry Wentland   2017-09-12  689  		early_control = active_total_with_borders % lane_count;
4562236b3bc0a2 Harry Wentland   2017-09-12  690  
4562236b3bc0a2 Harry Wentland   2017-09-12  691  	if (early_control == 0)
4562236b3bc0a2 Harry Wentland   2017-09-12  692  		early_control = lane_count;
4562236b3bc0a2 Harry Wentland   2017-09-12  693  
4562236b3bc0a2 Harry Wentland   2017-09-12  694  	tg->funcs->set_early_control(tg, early_control);
4562236b3bc0a2 Harry Wentland   2017-09-12  695  
4562236b3bc0a2 Harry Wentland   2017-09-12  696  	/* enable audio only within mode set */
afaacef4827592 Harry Wentland   2017-07-30  697  	if (pipe_ctx->stream_res.audio != NULL) {
4562236b3bc0a2 Harry Wentland   2017-09-12  698  		if (dc_is_dp_signal(pipe_ctx->stream->signal))
8e9c4c8cf35ff2 Harry Wentland   2017-07-30  699  			pipe_ctx->stream_res.stream_enc->funcs->dp_audio_enable(pipe_ctx->stream_res.stream_enc);
4562236b3bc0a2 Harry Wentland   2017-09-12  700  	}
4562236b3bc0a2 Harry Wentland   2017-09-12  701  
f215a57dca691c Eric Yang        2018-02-21  702  
f215a57dca691c Eric Yang        2018-02-21  703  
4562236b3bc0a2 Harry Wentland   2017-09-12  704  

:::::: The code at line 661 was first introduced by commit
:::::: 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c drm/amd/dc: Add dc display driver (v2)

:::::: TO: Harry Wentland <harry.wentland@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27917 bytes --]

                 reply	other threads:[~2021-07-02 23:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107030711.NB7mCT69-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.