tree: git://people.freedesktop.org/~airlied/linux.git not-butter head: f9de02ab2d4b7fc8d05e5fff0d5b4d8e474bbba5 commit: 9ef551714e1c0e9a800143eb927c68b6eadb87cb [2/12] flesh out mgrs a bit config: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): git checkout 9ef551714e1c0e9a800143eb927c68b6eadb87cb # 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@xxxxxxxxx> All warnings (new ones prefixed by >>): 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: warning: unused variable 'ret' [-Wunused-variable] 20 | int ret; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:17:27: warning: unused variable 'i915' [-Wunused-variable] 17 | 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:35:27: warning: unused variable 'i915' [-Wunused-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: warning: no previous prototype for 'i915_ttm_gtt_mgr_has_gart_addr' [-Wmissing-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: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'mm' [-Wunused-variable] 105 | struct drm_mm *mm = &mgr->mm; | ^~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:103:27: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'i915' [-Wunused-variable] 148 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev); | ^~~~ -- 104 | static const struct kv_lcac_config_values cpl_local_cac_cfg_kv[] = | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/kv_dpm.c:98:43: warning: 'mc3_local_cac_cfg_kv' defined but not used [-Wunused-const-variable=] 98 | static const struct kv_lcac_config_values mc3_local_cac_cfg_kv[] = | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/kv_dpm.c:92:43: warning: 'mc2_local_cac_cfg_kv' defined but not used [-Wunused-const-variable=] 92 | static const struct kv_lcac_config_values mc2_local_cac_cfg_kv[] = | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/kv_dpm.c:86:43: warning: 'mc1_local_cac_cfg_kv' defined but not used [-Wunused-const-variable=] 86 | static const struct kv_lcac_config_values mc1_local_cac_cfg_kv[] = | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/kv_dpm.c:80:43: warning: 'mc0_local_cac_cfg_kv' defined but not used [-Wunused-const-variable=] 80 | static const struct kv_lcac_config_values mc0_local_cac_cfg_kv[] = | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/kv_dpm.c:67:43: warning: 'sx_local_cac_cfg_kv' defined but not used [-Wunused-const-variable=] 67 | static const struct kv_lcac_config_values sx_local_cac_cfg_kv[] = | ^~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:433: warning: Function parameter or member 'flush_type' not described in 'gmc_v7_0_flush_gpu_tlb_pasid' drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:433: warning: Function parameter or member 'all_hub' not described in 'gmc_v7_0_flush_gpu_tlb_pasid' drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:471: warning: Function parameter or member 'vmhub' not described in 'gmc_v7_0_flush_gpu_tlb' drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:471: warning: Function parameter or member 'flush_type' not described in 'gmc_v7_0_flush_gpu_tlb' drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:771: warning: Function parameter or member 'pasid' not described in 'gmc_v7_0_vm_decode_fault' 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:16:6: warning: unused variable 'ret' [-Wunused-variable] 16 | int ret; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:13:27: warning: unused variable 'i915' [-Wunused-variable] 13 | 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:31:27: warning: unused variable 'i915' [-Wunused-variable] 31 | 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_new': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:53:22: warning: unused variable 'max_bytes' [-Wunused-variable] 53 | uint64_t mem_bytes, max_bytes; | ^~~~~~~~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:47:27: warning: unused variable 'i915' [-Wunused-variable] 47 | 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_del': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:144:22: warning: unused variable 'nodes' [-Wunused-variable] 144 | struct drm_mm_node *nodes = mem->mm_node; | ^~~~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:143:28: warning: unused variable 'mgr' [-Wunused-variable] 143 | struct i915_ttm_vram_mgr *mgr = man->priv; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:142:27: warning: unused variable 'i915' [-Wunused-variable] 142 | 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: warning: unused variable 'i915' [-Wunused-variable] 28 | struct drm_i915_private *i915 = to_i915_ttm_dev(bdev); | ^~~~ In file included from drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c:23: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c:23: 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/gmc_v9_0.c:478: warning: Function parameter or member 'vmhub' not described in 'gmc_v9_0_flush_gpu_tlb' drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:588: warning: Function parameter or member 'flush_type' not described in 'gmc_v9_0_flush_gpu_tlb_pasid' drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:588: warning: Function parameter or member 'all_hub' not described in 'gmc_v9_0_flush_gpu_tlb_pasid' drivers/gpu/drm/radeon/radeon_dp_mst.c: In function 'radeon_mst_encoder_dpms': drivers/gpu/drm/radeon/radeon_dp_mst.c:366:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 366 | int ret, slots; | ^~~ 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: warning: unused variable 'ret' [-Wunused-variable] 20 | int ret; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:17:27: warning: unused variable 'i915' [-Wunused-variable] 17 | 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:35:27: warning: unused variable 'i915' [-Wunused-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: warning: no previous prototype for 'i915_ttm_gtt_mgr_has_gart_addr' [-Wmissing-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: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'mm' [-Wunused-variable] 105 | struct drm_mm *mm = &mgr->mm; | ^~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:103:27: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'i915' [-Wunused-variable] 148 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev); | ^~~~ In file included from drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c:23: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c:23: 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/radeon/radeon_ib.c:61: warning: Function parameter or member 'vm' not described in 'radeon_ib_get' In file included from drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c:24: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c:24: 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/radeon/radeon_vm.c:131: warning: Function parameter or member 'rdev' not described in 'radeon_vm_get_bos' drivers/gpu/drm/radeon/radeon_vm.c:643: warning: Excess function parameter 'start' description in 'radeon_vm_update_page_directory' drivers/gpu/drm/radeon/radeon_vm.c:643: warning: Excess function parameter 'end' description in 'radeon_vm_update_page_directory' drivers/gpu/drm/radeon/radeon_vm.c:819: warning: Function parameter or member 'ib' not described in 'radeon_vm_update_ptes' drivers/gpu/drm/radeon/radeon_vm.c:915: warning: Function parameter or member 'bo_va' not described in 'radeon_vm_bo_update' drivers/gpu/drm/radeon/radeon_vm.c:915: warning: Excess function parameter 'vm' description in 'radeon_vm_bo_update' drivers/gpu/drm/radeon/radeon_vm.c:915: warning: Excess function parameter 'bo' description in 'radeon_vm_bo_update' drivers/gpu/drm/radeon/radeon_vm.c:1155: warning: Excess function parameter 'vm' description in 'radeon_vm_bo_invalidate' drivers/gpu/drm/radeon/radeon_sync.c:92: warning: Function parameter or member 'rdev' not described in 'radeon_sync_resv' drivers/gpu/drm/radeon/radeon_mn.c:51: warning: Function parameter or member 'cur_seq' not described in 'radeon_mn_invalidate' In file included from drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c:24: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c:24: 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/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_init': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:16:6: warning: unused variable 'ret' [-Wunused-variable] 16 | int ret; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:13:27: warning: unused variable 'i915' [-Wunused-variable] 13 | 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:31:27: warning: unused variable 'i915' [-Wunused-variable] 31 | 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_new': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:53:22: warning: unused variable 'max_bytes' [-Wunused-variable] 53 | uint64_t mem_bytes, max_bytes; | ^~~~~~~~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:47:27: warning: unused variable 'i915' [-Wunused-variable] 47 | 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_del': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:144:22: warning: unused variable 'nodes' [-Wunused-variable] 144 | struct drm_mm_node *nodes = mem->mm_node; | ^~~~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:143:28: warning: unused variable 'mgr' [-Wunused-variable] 143 | struct i915_ttm_vram_mgr *mgr = man->priv; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:142:27: warning: unused variable 'i915' [-Wunused-variable] 142 | 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: warning: unused variable 'i915' [-Wunused-variable] 28 | struct drm_i915_private *i915 = to_i915_ttm_dev(bdev); | ^~~~ 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: warning: unused variable 'ret' [-Wunused-variable] 20 | int ret; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:17:27: warning: unused variable 'i915' [-Wunused-variable] 17 | 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:35:27: warning: unused variable 'i915' [-Wunused-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: warning: no previous prototype for 'i915_ttm_gtt_mgr_has_gart_addr' [-Wmissing-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: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'mm' [-Wunused-variable] 105 | struct drm_mm *mm = &mgr->mm; | ^~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:103:27: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'i915' [-Wunused-variable] 148 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev); | ^~~~ -- | ^~~~~~~~~~ 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 drivers/gpu/drm/amd/amdgpu/dce_virtual.c:26: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/dce_virtual.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/i915/ttm/i915_ttm_vram_mgr.c: In function 'i915_ttm_vram_mgr_init': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:16:6: warning: unused variable 'ret' [-Wunused-variable] 16 | int ret; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:13:27: warning: unused variable 'i915' [-Wunused-variable] 13 | 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:31:27: warning: unused variable 'i915' [-Wunused-variable] 31 | 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_new': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:53:22: warning: unused variable 'max_bytes' [-Wunused-variable] 53 | uint64_t mem_bytes, max_bytes; | ^~~~~~~~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:47:27: warning: unused variable 'i915' [-Wunused-variable] 47 | 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_del': drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:144:22: warning: unused variable 'nodes' [-Wunused-variable] 144 | struct drm_mm_node *nodes = mem->mm_node; | ^~~~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:143:28: warning: unused variable 'mgr' [-Wunused-variable] 143 | struct i915_ttm_vram_mgr *mgr = man->priv; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:142:27: warning: unused variable 'i915' [-Wunused-variable] 142 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev); | ^~~~ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: In function 'gfx_v10_rlcg_wreg': drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1291:18: warning: variable 'grbm_idx' set but not used [-Wunused-but-set-variable] 1291 | static uint32_t grbm_idx; | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1290:18: warning: variable 'grbm_cntl' set but not used [-Wunused-but-set-variable] 1290 | static uint32_t grbm_cntl; | ^~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1288:15: warning: variable 'scratch_reg3' set but not used [-Wunused-but-set-variable] 1288 | static void *scratch_reg3; | ^~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1287:15: warning: variable 'scratch_reg2' set but not used [-Wunused-but-set-variable] 1287 | static void *scratch_reg2; | ^~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: At top level: drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:4589:6: warning: no previous prototype for 'gfx_v10_0_rlc_stop' [-Wmissing-prototypes] 4589 | void gfx_v10_0_rlc_stop(struct amdgpu_device *adev) | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:725:6: warning: no previous prototype for 'gfx_v9_0_rlcg_wreg' [-Wmissing-prototypes] 725 | void gfx_v9_0_rlcg_wreg(struct amdgpu_device *adev, u32 offset, u32 v) | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2989:6: warning: no previous prototype for 'gfx_v9_0_rlc_stop' [-Wmissing-prototypes] 2989 | void gfx_v9_0_rlc_stop(struct amdgpu_device *adev) | ^~~~~~~~~~~~~~~~~ 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: warning: unused variable 'ret' [-Wunused-variable] 20 | int ret; | ^~~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:17:27: warning: unused variable 'i915' [-Wunused-variable] 17 | 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:35:27: warning: unused variable 'i915' [-Wunused-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: warning: no previous prototype for 'i915_ttm_gtt_mgr_has_gart_addr' [-Wmissing-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: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'mm' [-Wunused-variable] 105 | struct drm_mm *mm = &mgr->mm; | ^~ drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c:103:27: warning: unused variable 'i915' [-Wunused-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: warning: unused variable 'i915' [-Wunused-variable] 148 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev); | ^~~~ In file included from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:29: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:29: 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 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:30: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:30: 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 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c:24: drivers/gpu/drm/amd/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.h:65, from drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c:24: 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/dce_v10_0.c:237: warning: Function parameter or member 'async' not described in 'dce_v10_0_page_flip' drivers/gpu/drm/amd/amdgpu/mes_v10_1.c:58:38: warning: 'mes_v10_1_funcs' defined but not used [-Wunused-const-variable=] .. vim +/i915_ttm_gtt_mgr_has_gart_addr +52 drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.c 9 10 struct i915_ttm_gtt_node { 11 struct drm_mm_node node; 12 struct ttm_buffer_object *tbo; 13 }; 14 static int i915_ttm_gtt_mgr_init(struct ttm_mem_type_manager *man, 15 unsigned long p_size) 16 { > 17 struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev); 18 struct i915_ttm_gtt_mgr *mgr; 19 20 int ret; 21 22 mgr = kzalloc(sizeof(*mgr), GFP_KERNEL); 23 if (!mgr) 24 return -ENOMEM; 25 26 drm_mm_init(&mgr->mm, 0, p_size); 27 spin_lock_init(&mgr->lock); 28 man->priv = mgr; 29 30 return 0; 31 } 32 33 static int i915_ttm_gtt_mgr_fini(struct ttm_mem_type_manager *man) 34 { 35 struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev); 36 struct i915_ttm_gtt_mgr *mgr = man->priv; 37 spin_lock(&mgr->lock); 38 drm_mm_takedown(&mgr->mm); 39 spin_unlock(&mgr->lock); 40 kfree(mgr); 41 man->priv = NULL; 42 return 0; 43 } 44 45 /** 46 * i915_ttm_gtt_mgr_has_gart_addr - Check if mem has address space 47 * 48 * @mem: the mem object to check 49 * 50 * Check if a mem object has already address space allocated. 51 */ > 52 bool i915_ttm_gtt_mgr_has_gart_addr(struct ttm_mem_reg *mem) 53 { 54 struct i915_ttm_gtt_node *node = mem->mm_node; 55 56 return (node->node.start != I915_BO_INVALID_OFFSET); 57 } 58 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel