[drm:not-butter 6/12] drivers/gpu/drm/i915/ttm/i915_ttm.c:280:5: error: no previous prototype for 'i915_ttm_bo_create'
kernel test robot
lkp at intel.com
Tue Jun 30 18:09:26 UTC 2020
tree: git://people.freedesktop.org/~airlied/linux.git not-butter
head: f9de02ab2d4b7fc8d05e5fff0d5b4d8e474bbba5
commit: 5212462bfe5c8cb3f783accd4afd40413c45ac57 [6/12] i915: hacks the planet
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 >>):
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/smu_v11_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/../powerplay/renoir_ppt.c:24:
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/renoir_ppt.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/../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 };
| ^~~~~~~~~~~~~
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'
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_bo_destroy':
drivers/gpu/drm/i915/ttm/i915_ttm.c:225:27: error: unused variable 'i915' [-Werror=unused-variable]
225 | 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:280:5: error: no previous prototype for 'i915_ttm_bo_create' [-Werror=missing-prototypes]
280 | int i915_ttm_bo_create(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_bo_placement_from_region':
drivers/gpu/drm/i915/ttm/i915_ttm.c:298:27: error: unused variable 'i915' [-Werror=unused-variable]
298 | 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:593:5: error: no previous prototype for 'i915_ttm_bo_pin_restricted' [-Werror=missing-prototypes]
593 | int i915_ttm_bo_pin_restricted(struct i915_ttm_bo *bo, u32 region,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm.c:772:6: error: no previous prototype for 'i915_ttm_gem_object_free' [-Werror=missing-prototypes]
772 | void i915_ttm_gem_object_free(struct drm_gem_object *gobj)
| ^~~~~~~~~~~~~~~~~~~~~~~~
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_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);
| ^~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.o] 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:16:6: error: unused variable 'ret' [-Werror=unused-variable]
16 | int ret;
| ^~~
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);
| ^~~~
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: error: unused variable 'i915' [-Werror=unused-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: error: unused variable 'max_bytes' [-Werror=unused-variable]
53 | uint64_t mem_bytes, max_bytes;
| ^~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:47:27: error: unused variable 'i915' [-Werror=unused-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:142:27: error: unused variable 'i915' [-Werror=unused-variable]
142 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:280: drivers/gpu/drm/i915/ttm/i915_ttm.o] Error 1
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:280: drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.o] Error 1
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h:8:26: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
8 | int i915_ttm_init(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:9:27: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
9 | void i915_ttm_fini(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h: In function 'i915_ttm_bo_reserve':
>> drivers/gpu/drm/i915/ttm/i915_ttm.h:30:34: error: implicit declaration of function 'to_i915_ttm_dev' [-Werror=implicit-function-declaration]
30 | struct drm_i915_private *i915 = to_i915_ttm_dev(bo->tbo.bdev);
| ^~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm.h:30: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:36:16: error: dereferencing pointer to incomplete type 'struct drm_i915_private'
36 | 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:57:10: error: 'REGION_LMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
57 | return REGION_LMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h:57:10: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/i915/ttm/i915_ttm.h:59:10: error: 'REGION_SMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
59 | return REGION_SMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.h:68:40: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
68 | int i915_ttm_bo_create_reserved(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:73:54: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
73 | uint32_t i915_ttm_bo_get_preferred_pin_region(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:76:38: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
76 | int i915_ttm_bo_create_kernel(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:80:39: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
80 | int i915_ttm_gem_object_create(struct drm_i915_private *i915, unsigned long size,
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [drivers/gpu/drm/i915/Makefile:307: drivers/gpu/drm/i915/ttm/i915_ttm.hdrtest] Error 1
make[5]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: drivers/gpu] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1756: drivers] Error 2
make[1]: Target 'drivers/gpu/' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm] Error 2
make[3]: Target '__build' not remade because of errors.
make[4]: *** [scripts/Makefile.build:497: drivers/gpu/drm/i915] Error 2
make[4]: Target '__build' not remade because of errors.
--
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/smu_v11_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/../powerplay/renoir_ppt.c:24:
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/renoir_ppt.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/../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 };
| ^~~~~~~~~~~~~
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'
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_bo_destroy':
drivers/gpu/drm/i915/ttm/i915_ttm.c:225:27: error: unused variable 'i915' [-Werror=unused-variable]
225 | 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:280:5: error: no previous prototype for 'i915_ttm_bo_create' [-Werror=missing-prototypes]
280 | int i915_ttm_bo_create(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.c: In function 'i915_ttm_bo_placement_from_region':
drivers/gpu/drm/i915/ttm/i915_ttm.c:298:27: error: unused variable 'i915' [-Werror=unused-variable]
298 | 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:593:5: error: no previous prototype for 'i915_ttm_bo_pin_restricted' [-Werror=missing-prototypes]
593 | int i915_ttm_bo_pin_restricted(struct i915_ttm_bo *bo, u32 region,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm.c:772:6: error: no previous prototype for 'i915_ttm_gem_object_free' [-Werror=missing-prototypes]
772 | void i915_ttm_gem_object_free(struct drm_gem_object *gobj)
| ^~~~~~~~~~~~~~~~~~~~~~~~
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_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);
| ^~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/i915/ttm/i915_ttm_gtt_mgr.o] 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:16:6: error: unused variable 'ret' [-Werror=unused-variable]
16 | int ret;
| ^~~
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);
| ^~~~
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: error: unused variable 'i915' [-Werror=unused-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: error: unused variable 'max_bytes' [-Werror=unused-variable]
53 | uint64_t mem_bytes, max_bytes;
| ^~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.c:47:27: error: unused variable 'i915' [-Werror=unused-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:142:27: error: unused variable 'i915' [-Werror=unused-variable]
142 | struct drm_i915_private *i915 = to_i915_ttm_dev(man->bdev);
| ^~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:280: drivers/gpu/drm/i915/ttm/i915_ttm.o] Error 1
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:280: drivers/gpu/drm/i915/ttm/i915_ttm_vram_mgr.o] Error 1
In file included from <command-line>:
drivers/gpu/drm/i915/ttm/i915_ttm.h:8:26: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
8 | int i915_ttm_init(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:9:27: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
9 | void i915_ttm_fini(struct drm_i915_private *i915);
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h: In function 'i915_ttm_bo_reserve':
>> drivers/gpu/drm/i915/ttm/i915_ttm.h:30:34: error: implicit declaration of function 'to_i915_ttm_dev' [-Werror=implicit-function-declaration]
30 | struct drm_i915_private *i915 = to_i915_ttm_dev(bo->tbo.bdev);
| ^~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/ttm/i915_ttm.h:30: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:36:16: error: dereferencing pointer to incomplete type 'struct drm_i915_private'
36 | 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:57:10: error: 'REGION_LMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
57 | return REGION_LMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h:57:10: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/i915/ttm/i915_ttm.h:59:10: error: 'REGION_SMEM' undeclared (first use in this function); did you mean 'REGION_MIXED'?
59 | return REGION_SMEM;
| ^~~~~~~~~~~
| REGION_MIXED
drivers/gpu/drm/i915/ttm/i915_ttm.h: At top level:
drivers/gpu/drm/i915/ttm/i915_ttm.h:68:40: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
68 | int i915_ttm_bo_create_reserved(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:73:54: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
73 | uint32_t i915_ttm_bo_get_preferred_pin_region(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:76:38: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
76 | int i915_ttm_bo_create_kernel(struct drm_i915_private *i915,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/ttm/i915_ttm.h:80:39: error: 'struct drm_i915_private' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
80 | int i915_ttm_gem_object_create(struct drm_i915_private *i915, unsigned long size,
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [drivers/gpu/drm/i915/Makefile:307: drivers/gpu/drm/i915/ttm/i915_ttm.hdrtest] Error 1
make[5]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: drivers/gpu] Error 2
make[2]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm] Error 2
make[3]: Target '__build' not remade because of errors.
make[4]: *** [scripts/Makefile.build:497: drivers/gpu/drm/i915] Error 2
make[4]: Target '__build' not remade because of errors.
..
vim +/i915_ttm_bo_create +280 drivers/gpu/drm/i915/ttm/i915_ttm.c
278
279
> 280 int i915_ttm_bo_create(struct drm_i915_private *i915,
281 struct i915_ttm_bo_param *bp,
282 struct i915_ttm_bo **bo_ptr)
283 {
284 return i915_ttm_bo_do_create(i915, bp, bo_ptr);
285 }
286
---
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/3987c34a/attachment-0001.gz>
More information about the dri-devel
mailing list