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>, <alexander.deucher@amd.com>,
	<airlied@linux.ie>, <David1.Zhou@amd.com>, <Monk.Liu@amd.com>,
	<Rex.Zhu@amd.com>, <JinHuiEric.Huang@amd.com>,
	<Flora.Cui@amd.com>, <michel.daenzer@amd.com>
Cc: <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
	<arnd@arndb.de>, <xie.baoyou@zte.com.cn>
Subject: Re: [PATCH] drm/amdgpu: clean function declarations in amdgpu_ttm.c up
Date: Thu, 15 Sep 2016 15:49:06 +0200	[thread overview]
Message-ID: <0e95ce24-45af-e244-2ff2-7afc2c1f8501@amd.com> (raw)
In-Reply-To: <1473947006-28038-1-git-send-email-baoyou.xie@linaro.org>

Am 15.09.2016 um 15:43 schrieb Baoyou Xie:
> We get 2 warnings when building kernel with W=1:
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:985:5: warning: no previous prototype for 'amdgpu_ttm_init' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:1092:6: warning: no previous prototype for 'amdgpu_ttm_fini' [-Wmissing-prototypes]
>
> In fact, both functions are declared in
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, but should be declared in
> a header file, thus can be recognized in other file.
>
> So this patch moves the declarations into
> drivers/gpu/drm/amd/amdgpu/amdgpu.h.
>
> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>

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

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu.h        | 2 ++
>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 --
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index a7bb862..3208608 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -2402,6 +2402,8 @@ void amdgpu_gtt_location(struct amdgpu_device *adev, struct amdgpu_mc *mc);
>   void amdgpu_ttm_set_active_vram_size(struct amdgpu_device *adev, u64 size);
>   u64 amdgpu_ttm_get_gtt_mem_size(struct amdgpu_device *adev);
>   int amdgpu_ttm_global_init(struct amdgpu_device *adev);
> +int amdgpu_ttm_init(struct amdgpu_device *adev);
> +void amdgpu_ttm_fini(struct amdgpu_device *adev);
>   void amdgpu_program_register_sequence(struct amdgpu_device *adev,
>   					     const u32 *registers,
>   					     const u32 array_size);
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index b17734e..30f05d8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -38,8 +38,6 @@
>   #include "amdgpu_trace.h"
>   
>   
> -int amdgpu_ttm_init(struct amdgpu_device *adev);
> -void amdgpu_ttm_fini(struct amdgpu_device *adev);
>   
>   static u64 amdgpu_get_vis_part_size(struct amdgpu_device *adev,
>   						struct ttm_mem_reg *mem)

  reply	other threads:[~2016-09-15 13:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-15 13:43 Baoyou Xie
2016-09-15 13:49 ` Christian König [this message]
2016-09-16 19:30   ` 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=0e95ce24-45af-e244-2ff2-7afc2c1f8501@amd.com \
    --to=christian.koenig@amd.com \
    --cc=David1.Zhou@amd.com \
    --cc=Flora.Cui@amd.com \
    --cc=JinHuiEric.Huang@amd.com \
    --cc=Monk.Liu@amd.com \
    --cc=Rex.Zhu@amd.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=arnd@arndb.de \
    --cc=baoyou.xie@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michel.daenzer@amd.com \
    --cc=xie.baoyou@zte.com.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

Powered by JetHome