[PATCH] drm/amdgpu: fix the build error if disable CONFIG_DEBUG_FS
Deucher, Alexander
Alexander.Deucher at amd.com
Mon Jul 3 15:08:19 UTC 2017
> -----Original Message-----
> From: Huang Rui [mailto:ray.huang at amd.com]
> Sent: Sunday, July 02, 2017 8:53 AM
> To: amd-gfx at lists.freedesktop.org; Deucher, Alexander; Koenig, Christian
> Cc: kbuild test robot; Huang, Ray
> Subject: [PATCH] drm/amdgpu: fix the build error if disable
> CONFIG_DEBUG_FS
>
> 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 <fengguang.wu at intel.com>
> Signed-off-by: Huang Rui <ray.huang at amd.com>
I already applied a patch from Arnd to fix this I think.
Alex
> ---
> 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;
> }
> --
> 2.7.4
More information about the amd-gfx
mailing list