linux-next: build failure after merge of the drm tree
Subsystems (3)
Hi Dave,
After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:818:6: error: redefinition of 'amdgpu_ttm_tt_affect_userptr'
bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,
^
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:799:6: note: previous definition of 'amdgpu_ttm_tt_affect_userptr' was here
bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,
^Caused by a bad git resolution in commit
971f3e7dd355 ("Merge remote-tracking branch 'drm/drm-next'")
I have added the following as a merge fix up patch and can carry it as necessary.
From: Stephen Rothwell <[email protected]>
Date: Mon, 22 Feb 2016 11:40:08 +1100
Subject: [PATCH] drm: fix bad merge of drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
Signed-off-by Stephen Rothwell <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 19 ------------------- 1 file changed, 19 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +0 -19
@@ -815,25 +815,6 @@ bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,return true; } -bool amdgpu_ttm_tt_affect_userptr (struct ttm_tt *ttm,unsigned long start, -unsigned long end) -{ -struct amdgpu_ttm_tt *gtt = (void *)ttm; -unsigned long size; - -if (gtt ==NULL ) -return false; - -if (gtt->ttm.ttm.state != tt_bound || !gtt->userptr) -return false; - - size = (unsigned long )gtt->ttm.ttm.num_pages *PAGE_SIZE ; -if (gtt->userptr > end || gtt->userptr + size <= start) -return false; - -return true; -} -bool amdgpu_ttm_tt_is_readonly (struct ttm_tt *ttm) {struct amdgpu_ttm_tt *gtt = (void *)ttm;
Signature · 5 lines
2.7.0 -- Cheers, Stephen Rothwell