[drm:not-butter 9/12] drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:9:29: error: field 'tv' has incomplete type
kernel test robot
lkp at intel.com
Tue Jun 30 21:14:43 UTC 2020
tree: git://people.freedesktop.org/~airlied/linux.git not-butter
head: f9de02ab2d4b7fc8d05e5fff0d5b4d8e474bbba5
commit: 94b5191f7aeb937b75a085b9804da8072a2e1c96 [9/12] i915/ttm: start adding execbuffer
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/../powerplay/renoir_ppt.c:578: warning: Function parameter or member 'clock_table' not described in 'renoir_get_dpm_clock_table'
drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c: In function 'navi10_is_dpm_running':
drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1141:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1141 | int ret = 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/vega20_ppt.c: In function 'vega20_is_dpm_running':
drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:2852:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
2852 | int ret = 0;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:30:
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/vega20_ppt.c:25:
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/vega20_ppt.c:25:
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 };
| ^~~~~~~~~~~~~
In file included from include/drm/drm_mm.h:49,
from include/drm/drm_vma_manager.h:26,
from include/drm/drm_gem.h:40,
from drivers/gpu/drm/i915/i915_drv.h:53,
from drivers/gpu/drm/i915/display/intel_fbdev.c:44:
drivers/gpu/drm/i915/display/intel_fbdev.c: In function 'intelfb_create':
drivers/gpu/drm/i915/display/intel_fbdev.c:350:30: error: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'u64' {aka 'long long unsigned int'} [-Werror=format=]
350 | drm_dbg_kms(&dev_priv->drm, "allocated %dx%d fb: 0x%08x\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
351 | ifbdev->fb->base.width, ifbdev->fb->base.height,
352 | vma ? i915_ggtt_offset(vma) : i915_ttm_bo_gpu_offset(bo));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| u64 {aka long long unsigned int}
include/drm/drm_print.h:436:38: note: in definition of macro 'drm_dbg_kms'
436 | drm_dev_dbg((drm)->dev, DRM_UT_KMS, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/i915/display/intel_fbdev.c:350:56: note: format string is defined here
350 | drm_dbg_kms(&dev_priv->drm, "allocated %dx%d fb: 0x%08x\n",
| ~~~^
| |
| unsigned int
| %08llx
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/display/intel_fbdev.o] Error 1
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega20_hwmgr.c:776: warning: Function parameter or member 'hwmgr' not described in 'vega20_init_smc_table'
In file included from <command-line>:
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:9:29: error: field 'tv' has incomplete type
9 | struct ttm_validate_buffer tv;
| ^~
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:13:18: error: field 'rhead' has incomplete type
13 | struct rcu_head rhead;
| ^~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:14:14: error: field 'refcount' has incomplete type
14 | struct kref refcount;
| ^~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:46:18: error: 'struct list_head' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
46 | struct list_head *validated);
| ^~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [drivers/gpu/drm/i915/Makefile:309: drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.hdrtest] Error 1
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/i915/ttm/i915_ttm_bo_list.c: In function 'i915_ttm_bo_list_get_list':
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.c:101:23: error: unused variable 'bo' [-Werror=unused-variable]
101 | struct i915_ttm_bo *bo = ttm_to_i915_bo(e->tv.bo);
| ^~
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.c:98:11: error: unused variable 'i' [-Werror=unused-variable]
98 | unsigned i;
| ^
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c: In function 'i915_ttm_list_validate':
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:309:27: error: unused variable 'ctx' [-Werror=unused-variable]
309 | struct ttm_operation_ctx ctx = { true, false };
| ^~~
drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c: In function 'i915_ttm_do_execbuffer':
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:447:23: error: unused variable 'bo' [-Werror=unused-variable]
447 | struct i915_ttm_bo *bo = ttm_to_i915_bo(e->tv.bo);
| ^~
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:412:15: error: unused variable 'i' [-Werror=unused-variable]
412 | unsigned int i;
| ^
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:410:36: error: unused variable 'exec2_list' [-Werror=unused-variable]
410 | struct drm_i915_gem_exec_object2 *exec2_list;
| ^~~~~~~~~~
At top level:
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:372:13: error: 'eb_request_add' defined but not used [-Werror=unused-function]
372 | static void eb_request_add(struct i915_ttm_execbuffer *eb)
| ^~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:335:1: error: 'eb_submit' defined but not used [-Werror=unused-function]
335 | eb_submit(struct i915_ttm_execbuffer *eb)
| ^~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:148:13: error: 'eb_unpin_engine' defined but not used [-Werror=unused-function]
148 | static void eb_unpin_engine(struct i915_ttm_execbuffer *eb)
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/i915/ttm/i915_ttm.h:5,
from <command-line>:
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:9:29: error: field 'tv' has incomplete type
9 | struct ttm_validate_buffer tv;
| ^~
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h: In function 'i915_ttm_bo_reserve':
drivers/gpu/drm/i915/ttm/i915_ttm.h:32:34: error: implicit declaration of function 'to_i915_ttm_dev' [-Werror=implicit-function-declaration]
32 | struct drm_i915_private *i915 = to_i915_ttm_dev(bo->tbo.bdev);
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:32:34: error: initialization of 'struct drm_i915_private *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
In file included from include/linux/device.h:15,
from include/drm/drm_print.h:32,
from include/drm/drm_mm.h:49,
from include/drm/drm_vma_manager.h:26,
from include/drm/drm_gem.h:40,
from include/drm/ttm/ttm_bo_api.h:34,
from drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:4,
from drivers/gpu/drm/i915/ttm/i915_ttm.h:4,
from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h:38:16: error: dereferencing pointer to incomplete type 'struct drm_i915_private'
38 | dev_err(i915->drm.dev, "%p reserve failed\n", bo);
| ^~
include/linux/dev_printk.h:104:11: note: in definition of macro 'dev_err'
104 | _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h: In function 'i915_ttm_mem_type_to_region':
drivers/gpu/drm/i915/ttm/i915_ttm.h:59:10: error: 'REGION_LMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
59 | return REGION_LMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h:59:10: note: each undeclared identifier is reported only once for each function it appears in
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:20:6: error: unused variable 'ret' [-Werror=unused-variable]
20 | int ret;
| ^~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:17:27: error: unused variable 'i915' [-Werror=unused-variable]
17 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
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);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_evict_flags':
drivers/gpu/drm/i915/ttm/i915_ttm.c:67:32: error: unused variable 'placements' [-Werror=unused-variable]
67 | static const struct ttm_place placements = {
| ^~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c:65:27: error: unused variable 'i915' [-Werror=unused-variable]
65 | struct drm_i915_private *i915 = to_i915_ttm_dev(tbo->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_bo_destroy':
drivers/gpu/drm/i915/ttm/i915_ttm.c:440:27: error: unused variable 'i915' [-Werror=unused-variable]
440 | struct drm_i915_private *i915 = to_i915_ttm_dev(tbo->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.c:503:5: error: no previous prototype for 'i915_ttm_bo_create' [-Werror=missing-prototypes]
503 | int i915_ttm_bo_create(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~~~
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:35:27: error: unused variable 'i915' [-Werror=unused-variable]
35 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:52:6: error: no previous prototype for 'i915_ttm_gtt_mgr_has_gart_addr' [-Werror=missing-prototypes]
52 | bool i915_ttm_gtt_mgr_has_gart_addr(struct ttm_mem_reg *mem)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_alloc':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:64:27: error: unused variable 'i915' [-Werror=unused-variable]
64 | 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_new':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:105:17: error: unused variable 'mm' [-Werror=unused-variable]
105 | struct drm_mm *mm = &mgr->mm;
| ^~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:103:27: error: unused variable 'i915' [-Werror=unused-variable]
103 | 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_del':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:148:27: error: unused variable 'i915' [-Werror=unused-variable]
148 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:61:10: error: 'REGION_SMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
61 | return REGION_SMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.h:91:17: error: 'struct drm_i915_gem_execbuffer2' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
91 | struct drm_i915_gem_execbuffer2 *args,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_bo_placement_from_region':
drivers/gpu/drm/i915/ttm/i915_ttm.c:521:27: error: unused variable 'i915' [-Werror=unused-variable]
521 | struct drm_i915_private *i915 = to_i915_ttm_dev(bo->tbo.bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.c:816:5: error: no previous prototype for 'i915_ttm_bo_pin_restricted' [-Werror=missing-prototypes]
816 | int i915_ttm_bo_pin_restricted(struct i915_ttm_bo *bo, u32 region,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c:995:6: error: no previous prototype for 'i915_ttm_gem_object_free' [-Werror=missing-prototypes]
995 | void i915_ttm_gem_object_free(struct drm_gem_object *gobj)
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [drivers/gpu/drm/i915/Makefile:309: drivers/gpu/drm/i915/ttm/i915_ttm.hdrtest] Error 1
--
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'
drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c: In function 'navi10_is_dpm_running':
drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1141:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1141 | int ret = 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/vega20_ppt.c: In function 'vega20_is_dpm_running':
drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:2852:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
2852 | int ret = 0;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:30:
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/vega20_ppt.c:25:
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/vega20_ppt.c:25:
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 };
| ^~~~~~~~~~~~~
In file included from include/drm/drm_mm.h:49,
from include/drm/drm_vma_manager.h:26,
from include/drm/drm_gem.h:40,
from drivers/gpu/drm/i915/i915_drv.h:53,
from drivers/gpu/drm/i915/display/intel_fbdev.c:44:
drivers/gpu/drm/i915/display/intel_fbdev.c: In function 'intelfb_create':
drivers/gpu/drm/i915/display/intel_fbdev.c:350:30: error: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'u64' {aka 'long long unsigned int'} [-Werror=format=]
350 | drm_dbg_kms(&dev_priv->drm, "allocated %dx%d fb: 0x%08x\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
351 | ifbdev->fb->base.width, ifbdev->fb->base.height,
352 | vma ? i915_ggtt_offset(vma) : i915_ttm_bo_gpu_offset(bo));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| u64 {aka long long unsigned int}
include/drm/drm_print.h:436:38: note: in definition of macro 'drm_dbg_kms'
436 | drm_dev_dbg((drm)->dev, DRM_UT_KMS, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/i915/display/intel_fbdev.c:350:56: note: format string is defined here
350 | drm_dbg_kms(&dev_priv->drm, "allocated %dx%d fb: 0x%08x\n",
| ~~~^
| |
| unsigned int
| %08llx
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/display/intel_fbdev.o] Error 1
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega20_hwmgr.c:776: warning: Function parameter or member 'hwmgr' not described in 'vega20_init_smc_table'
In file included from <command-line>:
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:9:29: error: field 'tv' has incomplete type
9 | struct ttm_validate_buffer tv;
| ^~
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:13:18: error: field 'rhead' has incomplete type
13 | struct rcu_head rhead;
| ^~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:14:14: error: field 'refcount' has incomplete type
14 | struct kref refcount;
| ^~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:46:18: error: 'struct list_head' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
46 | struct list_head *validated);
| ^~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [drivers/gpu/drm/i915/Makefile:309: drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.hdrtest] Error 1
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/i915/ttm/i915_ttm_bo_list.c: In function 'i915_ttm_bo_list_get_list':
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.c:101:23: error: unused variable 'bo' [-Werror=unused-variable]
101 | struct i915_ttm_bo *bo = ttm_to_i915_bo(e->tv.bo);
| ^~
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.c:98:11: error: unused variable 'i' [-Werror=unused-variable]
98 | unsigned i;
| ^
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.o] Error 1
drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c: In function 'i915_ttm_list_validate':
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:309:27: error: unused variable 'ctx' [-Werror=unused-variable]
309 | struct ttm_operation_ctx ctx = { true, false };
| ^~~
drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c: In function 'i915_ttm_do_execbuffer':
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:447:23: error: unused variable 'bo' [-Werror=unused-variable]
447 | struct i915_ttm_bo *bo = ttm_to_i915_bo(e->tv.bo);
| ^~
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:412:15: error: unused variable 'i' [-Werror=unused-variable]
412 | unsigned int i;
| ^
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:410:36: error: unused variable 'exec2_list' [-Werror=unused-variable]
410 | struct drm_i915_gem_exec_object2 *exec2_list;
| ^~~~~~~~~~
At top level:
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:372:13: error: 'eb_request_add' defined but not used [-Werror=unused-function]
372 | static void eb_request_add(struct i915_ttm_execbuffer *eb)
| ^~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:335:1: error: 'eb_submit' defined but not used [-Werror=unused-function]
335 | eb_submit(struct i915_ttm_execbuffer *eb)
| ^~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm_execbuffer.c:148:13: error: 'eb_unpin_engine' defined but not used [-Werror=unused-function]
148 | static void eb_unpin_engine(struct i915_ttm_execbuffer *eb)
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/i915/ttm/i915_ttm.h:5,
from <command-line>:
>> drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h:9:29: error: field 'tv' has incomplete type
9 | struct ttm_validate_buffer tv;
| ^~
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h: In function 'i915_ttm_bo_reserve':
drivers/gpu/drm/i915/ttm/i915_ttm.h:32:34: error: implicit declaration of function 'to_i915_ttm_dev' [-Werror=implicit-function-declaration]
32 | struct drm_i915_private *i915 = to_i915_ttm_dev(bo->tbo.bdev);
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:32:34: error: initialization of 'struct drm_i915_private *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
In file included from include/linux/device.h:15,
from include/drm/drm_print.h:32,
from include/drm/drm_mm.h:49,
from include/drm/drm_vma_manager.h:26,
from include/drm/drm_gem.h:40,
from include/drm/ttm/ttm_bo_api.h:34,
from drivers/gpu/drm/i915/ttm/i915_ttm_object_types.h:4,
from drivers/gpu/drm/i915/ttm/i915_ttm.h:4,
from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h:38:16: error: dereferencing pointer to incomplete type 'struct drm_i915_private'
38 | dev_err(i915->drm.dev, "%p reserve failed\n", bo);
| ^~
include/linux/dev_printk.h:104:11: note: in definition of macro 'dev_err'
104 | _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h: In function 'i915_ttm_mem_type_to_region':
drivers/gpu/drm/i915/ttm/i915_ttm.h:59:10: error: 'REGION_LMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
59 | return REGION_LMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h:59:10: note: each undeclared identifier is reported only once for each function it appears in
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:20:6: error: unused variable 'ret' [-Werror=unused-variable]
20 | int ret;
| ^~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:17:27: error: unused variable 'i915' [-Werror=unused-variable]
17 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
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);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_evict_flags':
drivers/gpu/drm/i915/ttm/i915_ttm.c:67:32: error: unused variable 'placements' [-Werror=unused-variable]
67 | static const struct ttm_place placements = {
| ^~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c:65:27: error: unused variable 'i915' [-Werror=unused-variable]
65 | struct drm_i915_private *i915 = to_i915_ttm_dev(tbo->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_bo_destroy':
drivers/gpu/drm/i915/ttm/i915_ttm.c:440:27: error: unused variable 'i915' [-Werror=unused-variable]
440 | struct drm_i915_private *i915 = to_i915_ttm_dev(tbo->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.c:503:5: error: no previous prototype for 'i915_ttm_bo_create' [-Werror=missing-prototypes]
503 | int i915_ttm_bo_create(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~~~
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:35:27: error: unused variable 'i915' [-Werror=unused-variable]
35 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:52:6: error: no previous prototype for 'i915_ttm_gtt_mgr_has_gart_addr' [-Werror=missing-prototypes]
52 | bool i915_ttm_gtt_mgr_has_gart_addr(struct ttm_mem_reg *mem)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c: In function 'i915_ttm_gtt_mgr_alloc':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:64:27: error: unused variable 'i915' [-Werror=unused-variable]
64 | 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_new':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:105:17: error: unused variable 'mm' [-Werror=unused-variable]
105 | struct drm_mm *mm = &mgr->mm;
| ^~
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:103:27: error: unused variable 'i915' [-Werror=unused-variable]
103 | 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_del':
drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:148:27: error: unused variable 'i915' [-Werror=unused-variable]
148 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:61:10: error: 'REGION_SMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
61 | return REGION_SMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.h:91:17: error: 'struct drm_i915_gem_execbuffer2' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
91 | struct drm_i915_gem_execbuffer2 *args,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_bo_placement_from_region':
drivers/gpu/drm/i915/ttm/i915_ttm.c:521:27: error: unused variable 'i915' [-Werror=unused-variable]
521 | struct drm_i915_private *i915 = to_i915_ttm_dev(bo->tbo.bdev);
| ^~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.c:816:5: error: no previous prototype for 'i915_ttm_bo_pin_restricted' [-Werror=missing-prototypes]
816 | int i915_ttm_bo_pin_restricted(struct i915_ttm_bo *bo, u32 region,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c:995:6: error: no previous prototype for 'i915_ttm_gem_object_free' [-Werror=missing-prototypes]
995 | void i915_ttm_gem_object_free(struct drm_gem_object *gobj)
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [drivers/gpu/drm/i915/Makefile:309: drivers/gpu/drm/i915/ttm/i915_ttm.hdrtest] Error 1
..
vim +/tv +9 drivers/gpu/drm/i915/ttm/i915_ttm_bo_list.h
7
8 struct i915_ttm_bo_list_entry {
> 9 struct ttm_validate_buffer tv;
10 };
11
12 struct i915_ttm_bo_list {
> 13 struct rcu_head rhead;
> 14 struct kref refcount;
15 unsigned num_entries;
16 };
17
---
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/20200701/23f94b0b/attachment-0001.gz>
More information about the dri-devel
mailing list