[drm:not-butter 1/12] drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:6:27: error: unused variable 'i915'
kernel test robot
lkp at intel.com
Tue Jun 30 14:52:54 UTC 2020
tree: git://people.freedesktop.org/~airlied/linux.git not-butter
head: f9de02ab2d4b7fc8d05e5fff0d5b4d8e474bbba5
commit: aa9156566812da129f0ea379878ae97710347e76 [1/12] TTM JDI
config: i386-randconfig-m021-20200630 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:32:
At top level:
drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smu_v11_0.h:68:43: warning: 'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
68 | static const struct smu_temperature_range smu11_thermal_policy[] =
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:26:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:26:
drivers/gpu/drm/amd/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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 };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:551: warning: Function parameter or member 'hwmgr' not described in 'vega10_get_evv_voltages'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'voltage' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'lookup_table' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'hwmgr' not described in 'vega10_trim_voltage_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'vol_table' not described in 'vega10_trim_voltage_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1160: warning: Function parameter or member 'hwmgr' not described in 'vega10_construct_voltage_tables'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'gfx_clock' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'current_gfxclk_level' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'acg_freq' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1613: warning: Cannot understand * @brief Populates single SMC SOCCLK structure using the provided clock.
on line 1613 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1667: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_all_graphic_levels'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1750: warning: Cannot understand * @brief Populates single SMC GFXCLK structure using the provided clock.
on line 1750 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1811: warning: Cannot understand * @brief Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states.
on line 1811 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:2496: warning: Function parameter or member 'hwmgr' not described in 'vega10_init_smc_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:2867: warning: Cannot understand * @brief Tell SMC to enabled the supported DPMs.
on line 2867 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'smu' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'clk_type' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'dpm_level' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'freq' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:578: warning: Function parameter or member 'smu' not described in 'renoir_get_dpm_clock_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:578: warning: Function parameter or member 'clock_table' not described in 'renoir_get_dpm_clock_table'
In file included from drivers/gpu/drm/i915/ttm/i915_ttm.h:4,
from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:5:23: error: field 'bdev' has incomplete type
5 | struct ttm_bo_device bdev;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:6:2: error: unknown type name 'bool'
6 | bool mem_global_referenced;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:7:2: error: unknown type name 'bool'
7 | bool initialized;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:11:27: error: field 'base' has incomplete type
11 | struct ttm_buffer_object base;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:12:23: error: field 'placement' has incomplete type
12 | struct ttm_placement placement;
| ^~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h: In function 'ttm_to_i915_object':
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:17:9: error: implicit declaration of function 'container_of' [-Werror=implicit-function-declaration]
17 | return container_of(tbo, struct i915_ttm_object, base);
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:17:27: error: expected expression before 'struct'
17 | return container_of(tbo, struct i915_ttm_object, base);
| ^~~~~~
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.h:6:26: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
6 | int i915_ttm_init(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:7:27: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
7 | void i915_ttm_fini(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [drivers/gpu/drm/i915/Makefile:307: drivers/gpu/drm/i915/ttm/i915_ttm.hdrtest] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_init':
>> drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:6:27: error: unused variable 'i915' [-Werror=unused-variable]
6 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_fini':
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:13:27: error: unused variable 'i915' [-Werror=unused-variable]
13 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:280: drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_init_mem_type':
>> drivers/gpu/drm/i915/ttm/i915_ttm.c:28:27: error: unused variable 'i915' [-Werror=unused-variable]
28 | struct drm_i915_private *i915 = to_i915_ttm_dev(bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_init':
>> drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:7:27: error: unused variable 'i915' [-Werror=unused-variable]
7 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_fini':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:14:27: error: unused variable 'i915' [-Werror=unused-variable]
14 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.o] Error 1
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm/i915] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: drivers/gpu/drm] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1756: drivers/gpu] Error 2
make[1]: Target '__all' not remade because of errors.
--
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:32:
At top level:
drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smu_v11_0.h:68:43: warning: 'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
68 | static const struct smu_temperature_range smu11_thermal_policy[] =
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:26:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:26:
drivers/gpu/drm/amd/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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 };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:551: warning: Function parameter or member 'hwmgr' not described in 'vega10_get_evv_voltages'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'voltage' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'lookup_table' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'hwmgr' not described in 'vega10_trim_voltage_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'vol_table' not described in 'vega10_trim_voltage_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1160: warning: Function parameter or member 'hwmgr' not described in 'vega10_construct_voltage_tables'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'gfx_clock' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'current_gfxclk_level' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'acg_freq' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1613: warning: Cannot understand * @brief Populates single SMC SOCCLK structure using the provided clock.
on line 1613 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1667: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_all_graphic_levels'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1750: warning: Cannot understand * @brief Populates single SMC GFXCLK structure using the provided clock.
on line 1750 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1811: warning: Cannot understand * @brief Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states.
on line 1811 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:2496: warning: Function parameter or member 'hwmgr' not described in 'vega10_init_smc_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:2867: warning: Cannot understand * @brief Tell SMC to enabled the supported DPMs.
on line 2867 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'smu' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'clk_type' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'dpm_level' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'freq' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:578: warning: Function parameter or member 'smu' not described in 'renoir_get_dpm_clock_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:578: warning: Function parameter or member 'clock_table' not described in 'renoir_get_dpm_clock_table'
In file included from drivers/gpu/drm/i915/ttm/i915_ttm.h:4,
from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:5:23: error: field 'bdev' has incomplete type
5 | struct ttm_bo_device bdev;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:6:2: error: unknown type name 'bool'
6 | bool mem_global_referenced;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:7:2: error: unknown type name 'bool'
7 | bool initialized;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:11:27: error: field 'base' has incomplete type
11 | struct ttm_buffer_object base;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:12:23: error: field 'placement' has incomplete type
12 | struct ttm_placement placement;
| ^~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h: In function 'ttm_to_i915_object':
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:17:9: error: implicit declaration of function 'container_of' [-Werror=implicit-function-declaration]
17 | return container_of(tbo, struct i915_ttm_object, base);
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:17:27: error: expected expression before 'struct'
17 | return container_of(tbo, struct i915_ttm_object, base);
| ^~~~~~
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.h:6:26: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
6 | int i915_ttm_init(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:7:27: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
7 | void i915_ttm_fini(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [drivers/gpu/drm/i915/Makefile:307: drivers/gpu/drm/i915/ttm/i915_ttm.hdrtest] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_init':
>> drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:6:27: error: unused variable 'i915' [-Werror=unused-variable]
6 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_fini':
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:13:27: error: unused variable 'i915' [-Werror=unused-variable]
13 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:280: drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_init_mem_type':
>> drivers/gpu/drm/i915/ttm/i915_ttm.c:28:27: error: unused variable 'i915' [-Werror=unused-variable]
28 | struct drm_i915_private *i915 = to_i915_ttm_dev(bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_init':
>> drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:7:27: error: unused variable 'i915' [-Werror=unused-variable]
7 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_fini':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:14:27: error: unused variable 'i915' [-Werror=unused-variable]
14 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.o] Error 1
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm/i915] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: drivers/gpu/drm] Error 2
make[2]: Target '__build' not remade because of errors.
--
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:32:
At top level:
drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smu_v11_0.h:68:43: warning: 'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
68 | static const struct smu_temperature_range smu11_thermal_policy[] =
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:26:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:26:
drivers/gpu/drm/amd/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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 };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:551: warning: Function parameter or member 'hwmgr' not described in 'vega10_get_evv_voltages'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'voltage' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_with_vdd_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'lookup_table' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_lookup_table_with_leakage'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'hwmgr' not described in 'vega10_trim_voltage_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'vol_table' not described in 'vega10_trim_voltage_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1160: warning: Function parameter or member 'hwmgr' not described in 'vega10_construct_voltage_tables'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'gfx_clock' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'current_gfxclk_level' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'acg_freq' not described in 'vega10_populate_single_gfx_level'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1613: warning: Cannot understand * @brief Populates single SMC SOCCLK structure using the provided clock.
on line 1613 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1667: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_all_graphic_levels'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1750: warning: Cannot understand * @brief Populates single SMC GFXCLK structure using the provided clock.
on line 1750 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:1811: warning: Cannot understand * @brief Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states.
on line 1811 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:2496: warning: Function parameter or member 'hwmgr' not described in 'vega10_init_smc_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:2867: warning: Cannot understand * @brief Tell SMC to enabled the supported DPMs.
on line 2867 - I thought it was a doc line
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'smu' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'clk_type' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'dpm_level' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:224: warning: Function parameter or member 'freq' not described in 'renoir_get_dpm_clk_limited'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:578: warning: Function parameter or member 'smu' not described in 'renoir_get_dpm_clock_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/renoir_ppt.c:578: warning: Function parameter or member 'clock_table' not described in 'renoir_get_dpm_clock_table'
In file included from drivers/gpu/drm/i915/ttm/i915_ttm.h:4,
from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:5:23: error: field 'bdev' has incomplete type
5 | struct ttm_bo_device bdev;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:6:2: error: unknown type name 'bool'
6 | bool mem_global_referenced;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:7:2: error: unknown type name 'bool'
7 | bool initialized;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:11:27: error: field 'base' has incomplete type
11 | struct ttm_buffer_object base;
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:12:23: error: field 'placement' has incomplete type
12 | struct ttm_placement placement;
| ^~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h: In function 'ttm_to_i915_object':
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:17:9: error: implicit declaration of function 'container_of' [-Werror=implicit-function-declaration]
17 | return container_of(tbo, struct i915_ttm_object, base);
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:17:27: error: expected expression before 'struct'
17 | return container_of(tbo, struct i915_ttm_object, base);
| ^~~~~~
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.h:6:26: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
6 | int i915_ttm_init(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:7:27: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
7 | void i915_ttm_fini(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [drivers/gpu/drm/i915/Makefile:307: drivers/gpu/drm/i915/ttm/i915_ttm.hdrtest] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_init':
>> drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:6:27: error: unused variable 'i915' [-Werror=unused-variable]
6 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_fini':
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:13:27: error: unused variable 'i915' [-Werror=unused-variable]
13 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:280: drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_init_mem_type':
>> drivers/gpu/drm/i915/ttm/i915_ttm.c:28:27: error: unused variable 'i915' [-Werror=unused-variable]
28 | struct drm_i915_private *i915 = to_i915_ttm_dev(bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_init':
>> drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:7:27: error: unused variable 'i915' [-Werror=unused-variable]
7 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_fini':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:14:27: error: unused variable 'i915' [-Werror=unused-variable]
14 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.o] Error 1
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm/i915] Error 2
make[3]: Target '__build' not remade because of errors.
..
vim +/i915 +6 drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c
1
2 #include "i915_drv.h"
3 static int i915_ttm_vram_mgr_init(struct ttm_mem_type_manager *man,
4 unsigned long p_size)
5 {
> 6 struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
7
8 return 0;
9 }
10
---
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: 30844 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200630/1e8c124c/attachment-0001.gz>
More information about the dri-devel
mailing list