[radeon-alex:upstream-4.14-drm-next-amd-dc-staging-chrome 1/16] drivers/gpu//drm/amd/amdgpu/amdgpu_ttm.c:967:2: error: implicit declaration of function 'ttm_populate_and_map_pages'
kbuild test robot
fengguang.wu at intel.com
Tue Nov 14 00:54:33 UTC 2017
tree: git://people.freedesktop.org/~agd5f/linux.git upstream-4.14-drm-next-amd-dc-staging-chrome
head: 4448b9a68413462529d018050cd246bc33957bd6
commit: a9aa2210cd8aadeea91c845a0a05510d2a91ffa6 [1/16] FORKLIFT: amd: copy amd folder as is from dave airlie tree
config: x86_64-randconfig-g0-11140757 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout a9aa2210cd8aadeea91c845a0a05510d2a91ffa6
# save the attached .config to linux build tree
make ARCH=x86_64
Note: the radeon-alex/upstream-4.14-drm-next-amd-dc-staging-chrome HEAD 4448b9a68413462529d018050cd246bc33957bd6 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/gpu//drm/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_ttm_tt_populate':
>> drivers/gpu//drm/amd/amdgpu/amdgpu_ttm.c:967:2: error: implicit declaration of function 'ttm_populate_and_map_pages' [-Werror=implicit-function-declaration]
return ttm_populate_and_map_pages(adev->dev, >t->ttm);
^
drivers/gpu//drm/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_ttm_tt_unpopulate':
>> drivers/gpu//drm/amd/amdgpu/amdgpu_ttm.c:995:2: error: implicit declaration of function 'ttm_unmap_and_unpopulate_pages' [-Werror=implicit-function-declaration]
ttm_unmap_and_unpopulate_pages(adev->dev, >t->ttm);
^
cc1: some warnings being treated as errors
--
drivers/gpu//drm/amd/amdgpu/amdgpu_gem.c: In function 'amdgpu_gem_object_open':
>> drivers/gpu//drm/amd/amdgpu/amdgpu_gem.c:123:19: error: 'AMDGPU_GEM_CREATE_VM_ALWAYS_VALID' undeclared (first use in this function)
if (abo->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID &&
^
drivers/gpu//drm/amd/amdgpu/amdgpu_gem.c:123:19: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu//drm/amd/amdgpu/amdgpu_gem.c: In function 'amdgpu_gem_create_ioctl':
drivers/gpu//drm/amd/amdgpu/amdgpu_gem.c:215:9: error: 'AMDGPU_GEM_CREATE_VM_ALWAYS_VALID' undeclared (first use in this function)
AMDGPU_GEM_CREATE_VM_ALWAYS_VALID))
^
drivers/gpu//drm/amd/amdgpu/amdgpu_gem.c: In function 'amdgpu_gem_op_ioctl':
drivers/gpu//drm/amd/amdgpu/amdgpu_gem.c:718:21: error: 'AMDGPU_GEM_CREATE_VM_ALWAYS_VALID' undeclared (first use in this function)
if (robj->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID)
^
--
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c: In function 'amdgpu_cs_fence_to_handle_ioctl':
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1348:47: error: dereferencing pointer to incomplete type
fence = amdgpu_cs_get_fence(adev, filp, &info->in.fence);
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1352:14: error: dereferencing pointer to incomplete type
switch (info->in.what) {
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1353:7: error: 'AMDGPU_FENCE_TO_HANDLE_GET_SYNCOBJ' undeclared (first use in this function)
case AMDGPU_FENCE_TO_HANDLE_GET_SYNCOBJ:
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1353:7: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1354:3: error: implicit declaration of function 'drm_syncobj_create' [-Werror=implicit-function-declaration]
r = drm_syncobj_create(&syncobj, 0, fence);
^
>> drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1358:3: error: implicit declaration of function 'drm_syncobj_get_handle' [-Werror=implicit-function-declaration]
r = drm_syncobj_get_handle(filp, syncobj, &info->out.handle);
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1358:50: error: dereferencing pointer to incomplete type
r = drm_syncobj_get_handle(filp, syncobj, &info->out.handle);
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1362:7: error: 'AMDGPU_FENCE_TO_HANDLE_GET_SYNCOBJ_FD' undeclared (first use in this function)
case AMDGPU_FENCE_TO_HANDLE_GET_SYNCOBJ_FD:
^
>> drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1367:3: error: implicit declaration of function 'drm_syncobj_get_fd' [-Werror=implicit-function-declaration]
r = drm_syncobj_get_fd(syncobj, (int*)&info->out.handle);
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1367:46: error: dereferencing pointer to incomplete type
r = drm_syncobj_get_fd(syncobj, (int*)&info->out.handle);
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1371:7: error: 'AMDGPU_FENCE_TO_HANDLE_GET_SYNC_FILE_FD' undeclared (first use in this function)
case AMDGPU_FENCE_TO_HANDLE_GET_SYNC_FILE_FD:
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1386:7: error: dereferencing pointer to incomplete type
info->out.handle = fd;
^
drivers/gpu//drm/amd/amdgpu/amdgpu_cs.c:1392:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
--
drivers/gpu//drm/amd/amdgpu/amdgpu_prime.c: In function 'amdgpu_gem_prime_export':
>> drivers/gpu//drm/amd/amdgpu/amdgpu_prime.c:174:18: error: 'AMDGPU_GEM_CREATE_VM_ALWAYS_VALID' undeclared (first use in this function)
bo->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID)
^
drivers/gpu//drm/amd/amdgpu/amdgpu_prime.c:174:18: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c: In function 'dp_test_send_phy_test_pattern':
>> drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1715:5: error: 'DP_TEST_80BIT_CUSTOM_PATTERN_79_72' undeclared (first use in this function)
(DP_TEST_80BIT_CUSTOM_PATTERN_79_72 -
^
drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1715:5: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1716:4: error: 'DP_TEST_80BIT_CUSTOM_PATTERN_7_0' undeclared (first use in this function)
DP_TEST_80BIT_CUSTOM_PATTERN_7_0)+1] = {0};
^
>> drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1731:4: error: 'DP_TEST_PHY_PATTERN' undeclared (first use in this function)
DP_TEST_PHY_PATTERN,
^
>> drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1748:4: error: 'DP_ADJUST_REQUEST_POST_CURSOR2' undeclared (first use in this function)
DP_ADJUST_REQUEST_POST_CURSOR2,
^
drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1714:16: warning: unused variable 'test_80_bit_pattern' [-Wunused-variable]
unsigned char test_80_bit_pattern[
^
drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c: In function 'get_active_converter_info':
>> drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:2171:4: error: 'DP_BRANCH_REVISION_START' undeclared (first use in this function)
DP_BRANCH_REVISION_START,
^
drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c: In function 'retrieve_link_cap':
>> drivers/gpu//drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:2250:5: error: 'DP_DP13_DPCD_REV' undeclared (first use in this function)
DP_DP13_DPCD_REV,
^
vim +/ttm_populate_and_map_pages +967 drivers/gpu//drm/amd/amdgpu/amdgpu_ttm.c
966
> 967 return ttm_populate_and_map_pages(adev->dev, >t->ttm);
968 }
969
970 static void amdgpu_ttm_tt_unpopulate(struct ttm_tt *ttm)
971 {
972 struct amdgpu_device *adev;
973 struct amdgpu_ttm_tt *gtt = (void *)ttm;
974 bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG);
975
976 if (gtt && gtt->userptr) {
977 amdgpu_ttm_tt_set_user_pages(ttm, NULL);
978 kfree(ttm->sg);
979 ttm->page_flags &= ~TTM_PAGE_FLAG_SG;
980 return;
981 }
982
983 if (slave)
984 return;
985
986 adev = amdgpu_ttm_adev(ttm->bdev);
987
988 #ifdef CONFIG_SWIOTLB
989 if (swiotlb_nr_tbl()) {
990 ttm_dma_unpopulate(>t->ttm, adev->dev);
991 return;
992 }
993 #endif
994
> 995 ttm_unmap_and_unpopulate_pages(adev->dev, >t->ttm);
996 }
997
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 27517 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171114/2cfed3f1/attachment-0001.gz>
More information about the dri-devel
mailing list