public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Paul Hsieh <paul.hsieh@amd.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Alex Deucher <alexander.deucher@amd.com>,
	Eric Yang <Eric.Yang2@amd.com>
Subject: [agd5f:drm-next 67/201] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:618:6: warning: no previous prototype for function 'dcn31_set_low_power_state'
Date: Sun, 24 Apr 2022 08:41:16 +0800	[thread overview]
Message-ID: <202204240845.twj3M5Ei-lkp@intel.com> (raw)

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   a2443ef0a8046ca98868224ee9bd6861c17e4995
commit: 06bab5897c51e15d9a6b7ec11b1eacc4f2e1a145 [67/201] drm/amd/display: Power down hardware if timer not trigger
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220424/202204240845.twj3M5Ei-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 429cbac0390654f90bba18a41799464adf31a5ec)
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
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        git checkout 06bab5897c51e15d9a6b7ec11b1eacc4f2e1a145
        # 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=i386 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:49:
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30:
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:3049:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
                   uint64_t temp;
                            ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:618:6: warning: no previous prototype for function 'dcn31_set_low_power_state' [-Wmissing-prototypes]
   void dcn31_set_low_power_state(struct clk_mgr *clk_mgr_base)
        ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:618:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dcn31_set_low_power_state(struct clk_mgr *clk_mgr_base)
   ^
   static 
   2 warnings generated.


vim +/dcn31_set_low_power_state +618 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c

   617	
 > 618	void dcn31_set_low_power_state(struct clk_mgr *clk_mgr_base)
   619	{
   620		int display_count;
   621		struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
   622		struct dc *dc = clk_mgr_base->ctx->dc;
   623		struct dc_state *context = dc->current_state;
   624	
   625		if (clk_mgr_base->clks.pwr_state != DCN_PWR_STATE_LOW_POWER) {
   626			display_count = dcn31_get_active_display_cnt_wa(dc, context);
   627			/* if we can go lower, go lower */
   628			if (display_count == 0) {
   629				union display_idle_optimization_u idle_info = { 0 };
   630	
   631				idle_info.idle_info.df_request_disabled = 1;
   632				idle_info.idle_info.phy_ref_clk_off = 1;
   633				idle_info.idle_info.s0i2_rdy = 1;
   634				dcn31_smu_set_display_idle_optimization(clk_mgr, idle_info.data);
   635				/* update power state */
   636				clk_mgr_base->clks.pwr_state = DCN_PWR_STATE_LOW_POWER;
   637			}
   638		}
   639	}
   640	

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

                 reply	other threads:[~2022-04-24  0:42 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=202204240845.twj3M5Ei-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Eric.Yang2@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=paul.hsieh@amd.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox