[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1474791546-2022-2-git-send-email-baoyou.xie@linaro.org>
Date: Sun, 25 Sep 2016 16:19:04 +0800
From: Baoyou Xie <baoyou.xie@...aro.org>
To: alexander.deucher@....com, Rex.Zhu@....com,
JinHuiEric.Huang@....com, funfunctor@...klore1984.net,
arindam.nath@....com, vitaly.prosyak@....com, eric.yang2@....com,
michel.daenzer@....com, nils.wallmenius@...il.com,
ray.huang@....com, Qingqing.Wang@....com, sfr@...b.auug.org.au,
Flora.Cui@....com, Young.Yang@....com, dan.carpenter@...cle.com,
Monk.Liu@....com
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
arnd@...db.de, baoyou.xie@...aro.org, xie.baoyou@....com.cn,
han.fei@....com.cn, tang.qiang007@....com.cn
Subject: [PATCH 2/4] drm/amd/powerplay: add missing header dependencies
We get 3 warnings when building kernel with W=1:
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/pp_acpi.c:29:6: warning: no previous prototype for 'acpi_atcs_functions_supported' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/pp_acpi.c:47:6: warning: no previous prototype for 'acpi_atcs_notify_pcie_device_ready' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/pp_acpi.c:61:5: warning: no previous prototype for 'acpi_pcie_perf_request' [-Wmissing-prototypes]
In fact, these functions are declared in
drivers/gpu/drm/amd/powerplay/inc/pp_acpi.h,
so this patch adds missing header dependencies.
Signed-off-by: Baoyou Xie <baoyou.xie@...aro.org>
---
drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c | 1 +
1 files changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
index 1944d28..f5e8fda 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
@@ -25,6 +25,7 @@
#include "linux/delay.h"
#include "hwmgr.h"
#include "amd_acpi.h"
+#include "pp_acpi.h"
bool acpi_atcs_functions_supported(void *device, uint32_t index)
{
--
2.7.4
Powered by blists - more mailing lists