diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2015-06-27 03:16:05 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-06-29 15:52:48 -0400 |
commit | 7cebc728174424d67df91dfb14f8b6dc13bed993 (patch) | |
tree | 96a1ad0679678727487ff8b37398a11dd7410aa8 | |
parent | ac9134906b3f5c2b45dc80dab0fee792bd516d52 (diff) |
gpu/drm/amdgpu: Fix build when CONFIG_DEBUG_FS is not set
If the CONFIG_DEBUG_FS is not selected, compilation of the
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c provides two warnings that
amdgpu_debugfs_regs_init and amdgpu_debugfs_regs_cleanup are used but
never defined. And as result:
ERROR: "amdgpu_debugfs_regs_cleanup" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: "amdgpu_debugfs_regs_init" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
^
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index e19097554093..ba46be361c9b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2001,4 +2001,10 @@ int amdgpu_debugfs_init(struct drm_minor *minor) | |||
2001 | void amdgpu_debugfs_cleanup(struct drm_minor *minor) | 2001 | void amdgpu_debugfs_cleanup(struct drm_minor *minor) |
2002 | { | 2002 | { |
2003 | } | 2003 | } |
2004 | #else | ||
2005 | static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev) | ||
2006 | { | ||
2007 | return 0; | ||
2008 | } | ||
2009 | static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev) { } | ||
2004 | #endif | 2010 | #endif |