tree:
git://people.freedesktop.org/~thomash/linux topic/ttm_branch
head: 4327ee2c8dd23ea964b13f1c0680d75bfb42e71b
commit: 6b23c62c674f278d61858115f3e0bb05a35f3b89 [38/45] drm/i915/ttm: Introduce a TTM gem
object backend
config: i386-randconfig-a011-20210430 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add thomash
git://people.freedesktop.org/~thomash/linux
git fetch --no-tags thomash topic/ttm_branch
git checkout 6b23c62c674f278d61858115f3e0bb05a35f3b89
# save the attached .config to linux build tree
make W=1 W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/i915/i915_ttm.c:29:5: error: no previous
prototype for 'i915_region_to_ttm_type' [-Werror=missing-prototypes]
29 | int i915_region_to_ttm_type(struct intel_memory_region *mem)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> drivers/gpu/drm/i915/gem/i915_gem_ttm.c:419:6: error: no previous
prototype for 'i915_ttm_bo_destroy' [-Werror=missing-prototypes]
419 |
void i915_ttm_bo_destroy(struct ttm_buffer_object *bo)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/i915_region_to_ttm_type +29 drivers/gpu/drm/i915/i915_ttm.c
23
24 /*
25 * Map the i915 memory regions to TTM memory types. We use the
26 * driver-private types for now, reserving TTM_PL_VRAM for stolen
27 * memory and TTM_PL_TT for GGTT use if decided to implement this.
28 */
29 int i915_region_to_ttm_type(struct intel_memory_region *mem)
30 {
31 int type;
32
33 switch (mem->type) {
34 case INTEL_MEMORY_LOCAL:
35 return mem->instance + TTM_PL_PRIV;
36 case INTEL_MEMORY_STOLEN_SYSTEM:
37 return TTM_PL_VRAM;
38 case INTEL_MEMORY_STOLEN_LOCAL:
39 return TTM_PL_VRAM;
40 default:
41 GEM_BUG_ON(1);
42 fallthrough;
43 case INTEL_MEMORY_SYSTEM:
44 GEM_BUG_ON(mem->instance != 0);
45 return TTM_PL_SYSTEM;
46 }
47
48 type = mem->instance + TTM_PL_PRIV;
49 GEM_BUG_ON(type >= TTM_NUM_MEM_TYPES);
50
51 return type;
52 }
53
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org