[radeon-alex:amd-20.45 2115/2417] drivers/gpu/drm/amd/amdgpu/../display/dc/core/../dcn30/dcn30_resource.h:83:57: warning: 'struct clk_bw_params' declared inside parameter list will not be visible outside of this definition or declaration
kernel test robot
lkp at intel.com
Sun Nov 22 01:35:03 UTC 2020
tree: git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: 1807abbb3a7f17fc931a15d7fd4365ea148c6bb1
commit: 2731dbcd0d317dd03d7552e0356ce0ea08b0b838 [2115/2417] drm/amd/display: Adjust static-ness of resource functions
config: i386-randconfig-a003-20201120 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout 2731dbcd0d317dd03d7552e0356ce0ea08b0b838
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:63:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/../dcn30/dcn30_resource.h:83:57: warning: 'struct clk_bw_params' declared inside parameter list will not be visible outside of this definition or declaration
83 | void dcn30_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params);
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1111:5: warning: no previous prototype for 'shift_border_left_to_dst' [-Wmissing-prototypes]
1111 | int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1122:6: warning: no previous prototype for 'restore_border_left_from_dst' [-Wmissing-prototypes]
1122 | void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/display/dc/inc/core_types.h:88,
from drivers/gpu/drm/amd/display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:30:
drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h:54:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
54 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:30:
drivers/gpu/drm/amd/display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
from drivers/gpu/drm/amd/backport/backport.h:18,
from <command-line>:
drivers/gpu/drm/amd/amdgpu/amdgpu.h:198:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
198 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu.h:197:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
197 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu.h:196:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
196 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:64,
from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
from drivers/gpu/drm/amd/backport/backport.h:18,
from <command-line>:
drivers/gpu/drm/amd/display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:36:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.h:83:57: warning: 'struct clk_bw_params' declared inside parameter list will not be visible outside of this definition or declaration
83 | void dcn30_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params);
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:41:
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h:164:2: error: expected specifier-qualifier-list before 'DCN21_HUBP_REG_COMMON_VARIABLE_LIST'
164 | DCN21_HUBP_REG_COMMON_VARIABLE_LIST;\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h:164:2: note: in definition of macro 'DCN30_HUBP_REG_COMMON_VARIABLE_LIST'
164 | DCN21_HUBP_REG_COMMON_VARIABLE_LIST;\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h:207:2: error: expected specifier-qualifier-list before 'DCN21_HUBP_REG_FIELD_VARIABLE_LIST'
207 | DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type);\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h:207:2: note: in definition of macro 'DCN30_HUBP_REG_FIELD_VARIABLE_LIST'
207 | DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type);\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h:207:2: error: expected specifier-qualifier-list before 'DCN21_HUBP_REG_FIELD_VARIABLE_LIST'
207 | DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type);\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h:207:2: note: in definition of macro 'DCN30_HUBP_REG_FIELD_VARIABLE_LIST'
207 | DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type);\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:70:
drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h:372:52: warning: initialized field overwritten [-Woverride-init]
372 | #define DCN_BASE__INST0_SEG2 0x000034C0
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:242:25: note: in expansion of macro 'DCN_BASE__INST0_SEG2'
242 | #define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:244:19: note: in expansion of macro 'BASE_INNER'
244 | #define BASE(seg) BASE_INNER(seg)
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:251:14: note: in expansion of macro 'BASE'
251 | .reg_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
| ^~~~
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dio_stream_encoder.h:104:2: note: in expansion of macro 'SRI'
104 | SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:443:2: note: in expansion of macro 'SE_DCN3_REG_LIST'
443 | SE_DCN3_REG_LIST(id)\
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:447:2: note: in expansion of macro 'stream_enc_regs'
447 | stream_enc_regs(0),
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h:372:52: note: (near initialization for 'stream_enc_regs[0].DP_SEC_METADATA_TRANSMISSION')
372 | #define DCN_BASE__INST0_SEG2 0x000034C0
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:242:25: note: in expansion of macro 'DCN_BASE__INST0_SEG2'
242 | #define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:244:19: note: in expansion of macro 'BASE_INNER'
244 | #define BASE(seg) BASE_INNER(seg)
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:251:14: note: in expansion of macro 'BASE'
251 | .reg_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
| ^~~~
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dio_stream_encoder.h:104:2: note: in expansion of macro 'SRI'
104 | SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:443:2: note: in expansion of macro 'SE_DCN3_REG_LIST'
443 | SE_DCN3_REG_LIST(id)\
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:447:2: note: in expansion of macro 'stream_enc_regs'
447 | stream_enc_regs(0),
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h:372:52: warning: initialized field overwritten [-Woverride-init]
372 | #define DCN_BASE__INST0_SEG2 0x000034C0
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:242:25: note: in expansion of macro 'DCN_BASE__INST0_SEG2'
242 | #define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:244:19: note: in expansion of macro 'BASE_INNER'
244 | #define BASE(seg) BASE_INNER(seg)
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:251:14: note: in expansion of macro 'BASE'
251 | .reg_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
| ^~~~
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dio_stream_encoder.h:105:2: note: in expansion of macro 'SRI'
105 | SRI(HDMI_METADATA_PACKET_CONTROL, DIG, id), \
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:443:2: note: in expansion of macro 'SE_DCN3_REG_LIST'
443 | SE_DCN3_REG_LIST(id)\
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:447:2: note: in expansion of macro 'stream_enc_regs'
447 | stream_enc_regs(0),
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h:372:52: note: (near initialization for 'stream_enc_regs[0].HDMI_METADATA_PACKET_CONTROL')
372 | #define DCN_BASE__INST0_SEG2 0x000034C0
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:242:25: note: in expansion of macro 'DCN_BASE__INST0_SEG2'
242 | #define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:244:19: note: in expansion of macro 'BASE_INNER'
244 | #define BASE(seg) BASE_INNER(seg)
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:251:14: note: in expansion of macro 'BASE'
251 | .reg_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
| ^~~~
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dio_stream_encoder.h:105:2: note: in expansion of macro 'SRI'
105 | SRI(HDMI_METADATA_PACKET_CONTROL, DIG, id), \
vim +83 drivers/gpu/drm/amd/amdgpu/../display/dc/core/../dcn30/dcn30_resource.h
37
38 struct dcn30_resource_pool {
39 struct resource_pool base;
40 };
41 struct resource_pool *dcn30_create_resource_pool(
42 const struct dc_init_data *init_data,
43 struct dc *dc);
44
45 void dcn30_set_mcif_arb_params(
46 struct dc *dc,
47 struct dc_state *context,
48 display_e2e_pipe_params_st *pipes,
49 int pipe_cnt);
50
51 unsigned int dcn30_calc_max_scaled_time(
52 unsigned int time_per_pixel,
53 enum mmhubbub_wbif_mode mode,
54 unsigned int urgent_watermark);
55
56 bool dcn30_validate_bandwidth(struct dc *dc, struct dc_state *context,
57 bool fast_validate);
58 void dcn30_populate_dml_writeback_from_context(
59 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes);
60
61 int dcn30_populate_dml_pipes_from_context(
62 struct dc *dc, struct dc_state *context,
63 display_e2e_pipe_params_st *pipes);
64
65 bool dcn30_acquire_post_bldn_3dlut(
66 struct resource_context *res_ctx,
67 const struct resource_pool *pool,
68 int mpcc_id,
69 struct dc_3dlut **lut,
70 struct dc_transfer_func **shaper);
71
72 bool dcn30_release_post_bldn_3dlut(
73 struct resource_context *res_ctx,
74 const struct resource_pool *pool,
75 struct dc_3dlut **lut,
76 struct dc_transfer_func **shaper);
77
78 enum dc_status dcn30_add_stream_to_ctx(
79 struct dc *dc,
80 struct dc_state *new_ctx,
81 struct dc_stream_state *dc_stream);
82
> 83 void dcn30_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params);
84
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32710 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201122/839a1b38/attachment-0001.gz>
More information about the dri-devel
mailing list