Am 02.07.2017 um 14:52 schrieb Huang Rui:
This patch fixes the build error if CONFIG_DEBUG_FS is not enabled.
Otherwise, below error will be triggered.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
master
head: 89a39f3c7086301342175c461c4db43c68d34cc7
commit: 4f0955fcc052b556446f6f041ad8c83d70c3b253 [6871/9973] drm/amdgpu: export
test ib debugfs interface
config: x86_64-randconfig-s1-06281413 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 4f0955fcc052b556446f6f041ad8c83d70c3b253
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
ERROR: "amdgpu_debugfs_test_ib_ring_init" [drivers/gpu/drm/amd/amdgpu/
amdgpu.ko] undefined!
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Huang Rui <[email protected]>
Reviewed-by: Christian König <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 9cf7cdf..97c98bd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3899,7 +3899,7 @@ int amdgpu_debugfs_init(struct drm_minor *minor)
return 0;
}
#else
-static int amdgpu_debugfs_test_ib_init(struct amdgpu_device *adev)
+static int amdgpu_debugfs_test_ib_ring_init(struct amdgpu_device *adev)
{
return 0;
}
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx