drm/amdgpu: fix function implicit declaration error
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix function implicit declaration error
when CONFIG_DEV_COREDUMP is not defined in that case when amdgpu_coredump() is called it does not find it's definition and the build fails.
This happens as the header is defined without the CONFIG_DEV_COREDUMP ifdef and due to which header isn't enabled.
Pulling the header out of such ifdef so in both the cases the build does not fail.
Signed-off-by Sunil Khatri <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -3
@@ -74,10 +74,7 @@#include "amdgpu_fru_eeprom.h" #include "amdgpu_reset.h" #include "amdgpu_virt.h" - -#ifdef CONFIG_DEV_COREDUMP #include "amdgpu_dev_coredump.h" -#endif #include <linux/suspend.h> #include <drm/task_barrier.h>
Signature · 1 line
2.34.1
Acked-by Alex Deucher <[email protected]>
Quoted 35 lines · Sunil Khatri
when
CONFIG_DEV_COREDUMPis not defined in that case whenamdgpu_coredump()is called it does not find it's definition and the build fails.This happens as the header is defined without the
CONFIG_DEV_COREDUMPifdef and due to which header isn't enabled.Pulling the header out of such ifdef so in both the cases the build does not fail.
Signed-off-by Sunil Khatri <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-4@@ -74,10 +74,7 @@#include "amdgpu_fru_eeprom.h" #include "amdgpu_reset.h" #include "amdgpu_virt.h" - -#ifdef CONFIG_DEV_COREDUMP #include "amdgpu_dev_coredump.h" -#endif #include <linux/suspend.h> #include <drm/task_barrier.h> --2.34.1