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: <202204240845.twj3M5Ei-lkp@intel.com>
Date:   Sun, 24 Apr 2022 08:41:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Paul Hsieh <paul.hsieh@....com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>,
        Eric Yang <Eric.Yang2@....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'

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ