mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Baoyou Xie <baoyou.xie@linaro.org>,
	"oded.gabbay@gmail.com" <oded.gabbay@gmail.com>,
	"Deucher, Alexander" <Alexander.Deucher@amd.com>,
	"airlied@linux.ie" <airlied@linux.ie>,
	"Li, Samuel" <Samuel.Li@amd.com>,
	"Zhou, Jammy" <Jammy.Zhou@amd.com>
Cc: "dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"arnd@arndb.de" <arnd@arndb.de>,
	"xie.baoyou@zte.comm.cn" <xie.baoyou@zte.comm.cn>
Subject: Re: [PATCH] drm/amdgpu: remove unused functions
Date: Mon, 19 Sep 2016 12:02:37 +0200	[thread overview]
Message-ID: <0169238f-8a45-3f1c-da6a-9736fa55dcd6@amd.com> (raw)
In-Reply-To: <1474207999-3380-1-git-send-email-baoyou.xie@linaro.org>

Am 18.09.2016 um 16:13 schrieb Baoyou Xie:
> 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@linaro.org>

Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>   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 69ac373c4..db67e0c 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)
>   {

  reply	other threads:[~2016-09-19 10:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-18 14:13 Baoyou Xie
2016-09-19 10:02 ` Christian König [this message]
2016-09-20  4:27   ` Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0169238f-8a45-3f1c-da6a-9736fa55dcd6@amd.com \
    --to=christian.koenig@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Jammy.Zhou@amd.com \
    --cc=Samuel.Li@amd.com \
    --cc=airlied@linux.ie \
    --cc=arnd@arndb.de \
    --cc=baoyou.xie@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oded.gabbay@gmail.com \
    --cc=xie.baoyou@zte.comm.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®