[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1474792996-22998-4-git-send-email-baoyou.xie@linaro.org>
Date: Sun, 25 Sep 2016 16:43:16 +0800
From: Baoyou Xie <baoyou.xie@...aro.org>
To: alexander.deucher@....com, christian.koenig@....com,
airlied@...ux.ie, oded.gabbay@...il.com, David1.Zhou@....com,
Monk.Liu@....com, Rex.Zhu@....com, JinHuiEric.Huang@....com,
Flora.Cui@....com, Jammy.Zhou@....com, lukas@...ner.de,
mario.kleiner.de@...il.com, nils.wallmenius@...il.com,
Emily.Deng@....com, cpaul@...hat.com, arindam.nath@....com,
tom.stdenis@....com, nicolai.haehnle@....com,
Qingqing.Wang@....com, samuel.li@....com, ray.huang@....com,
michel.daenzer@....com, daniel.vetter@...ll.ch,
gustavo.padovan@...labora.co.uk, eric.engestrom@...tec.com,
vitaly.prosyak@....com, alexandre.f.demers@...il.com,
Jerry.Zhang@....com, seanpaul@...omium.org,
yamada.masahiro@...ionext.com, maruthi.bayyavarapu@....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 4/4] drm/amdgpu: remove unused functions
We get 2 warnings when building kernel with W=1:
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:146:5: warning: no previous prototype for 'pool_to_domain' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/cz_smc.c:104:5: warning: no previous prototype for 'cz_send_msg_to_smc_with_parameter_async' [-Wmissing-prototypes]
In fact, both functions are called by no one and not exported,
so this patch removes them.
Signed-off-by: Baoyou Xie <baoyou.xie@...aro.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 8 --------
drivers/gpu/drm/amd/amdgpu/cz_smc.c | 7 -------
2 files changed, 15 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
index d080d08..dba8a5b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
@@ -143,14 +143,6 @@ int amdgpu_amdkfd_resume(struct amdgpu_device *rdev)
return r;
}
-u32 pool_to_domain(enum kgd_memory_pool p)
-{
- switch (p) {
- case KGD_POOL_FRAMEBUFFER: return AMDGPU_GEM_DOMAIN_VRAM;
- default: return AMDGPU_GEM_DOMAIN_GTT;
- }
-}
-
int alloc_gtt_mem(struct kgd_dev *kgd, size_t size,
void **mem_obj, uint64_t *gpu_addr,
void **cpu_ptr)
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_smc.c b/drivers/gpu/drm/amd/amdgpu/cz_smc.c
index 95887e4..aed7033 100644
--- a/drivers/gpu/drm/amd/amdgpu/cz_smc.c
+++ b/drivers/gpu/drm/amd/amdgpu/cz_smc.c
@@ -101,13 +101,6 @@ int cz_send_msg_to_smc(struct amdgpu_device *adev, u16 msg)
return 0;
}
-int cz_send_msg_to_smc_with_parameter_async(struct amdgpu_device *adev,
- u16 msg, u32 parameter)
-{
- WREG32(mmSMU_MP1_SRBM2P_ARG_0, parameter);
- return cz_send_msg_to_smc_async(adev, msg);
-}
-
int cz_send_msg_to_smc_with_parameter(struct amdgpu_device *adev,
u16 msg, u32 parameter)
{
--
2.7.4
Powered by blists - more mailing lists