RE: [PATCH] drm/amdgpu/virt: don't dereference undefined 'module' struct

2017-11-03 Thread Yu, Xiangliang
ian.koe...@amd.com> > Cc: Arnd Bergmann <a...@arndb.de>; David Airlie <airl...@linux.ie>; Liu, > Monk <monk@amd.com>; Yu, Xiangliang <xiangliang...@amd.com>; > Chen, Horace <horace.c...@amd.com>; amd-...@lists.freedesktop.org; > dri-devel@lists.freedesktop.

Re: [PATCH] drm/amdgpu/virt: don't dereference undefined 'module' struct

2017-11-02 Thread Alex Deucher
On Thu, Nov 2, 2017 at 3:22 PM, Harry Wentland wrote: > On 2017-11-02 07:25 AM, Arnd Bergmann wrote: >> Accessing the THIS_MODULE directly is only possible when modules >> are enabled, otherwise we get a build failure: >> >> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c: In

Re: [PATCH] drm/amdgpu/virt: don't dereference undefined 'module' struct

2017-11-02 Thread Harry Wentland
On 2017-11-02 07:25 AM, Arnd Bergmann wrote: > Accessing the THIS_MODULE directly is only possible when modules > are enabled, otherwise we get a build failure: > > drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c: In function > 'amdgpu_virt_init_data_exchange': >

[PATCH] drm/amdgpu/virt: don't dereference undefined 'module' struct

2017-11-02 Thread Arnd Bergmann
Accessing the THIS_MODULE directly is only possible when modules are enabled, otherwise we get a build failure: drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c: In function 'amdgpu_virt_init_data_exchange': drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:331:20: error: dereferencing pointer to incomplete