lkml.org 
[lkml]   [2022]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[agd5f:drm-next 151/201] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:618:6: warning: no previous prototype for 'dcn31_set_low_power_state'
tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: a2443ef0a8046ca98868224ee9bd6861c17e4995
commit: 593692d2de458a68c8e2326d48d1325d87947d90 [151/201] drm/amd/display: Power down hardware if timer not trigger
config: powerpc64-buildonly-randconfig-r004-20220424 (https://download.01.org/0day-ci/archive/20220424/202204242243.jhz4z3rX-lkp@intel.com/config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.0
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 593692d2de458a68c8e2326d48d1325d87947d90
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=powerpc 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 >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:618:6: warning: no previous prototype for 'dcn31_set_low_power_state' [-Wmissing-prototypes]
618 | void dcn31_set_low_power_state(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:129:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=]
129 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA";
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:126:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
126 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:125:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
125 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~


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

\
 
 \ /
  Last update: 2022-04-24 16:11    [W:0.181 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site