[PATCH 3/3] drm/amdgpu: move function declaration to header file

2016-10-24 Thread Alex Deucher
On Sat, Oct 22, 2016 at 4:48 AM, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:37:6: warning: no previous prototype > for 'amdgpu_pm_acpi_event_handler' [-Wmissing-prototypes] > > In fact, this function is defined in >

[PATCH 3/3] drm/amdgpu: move function declaration to header file

2016-10-22 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:37:6: warning: no previous prototype for 'amdgpu_pm_acpi_event_handler' [-Wmissing-prototypes] In fact, this function is defined in drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c, but should be declared in a header