From: "Christian König" <christian.koenig@amd.com>
To: Baoyou Xie <baoyou.xie@linaro.org>, <alexander.deucher@amd.com>,
<airlied@linux.ie>, <Qingqing.Wang@amd.com>, <Jammy.Zhou@amd.com>,
<samuel.li@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: add missing header dependencies
Date: Sat, 3 Sep 2016 10:13:19 +0200 [thread overview]
Message-ID: <cd7107ed-be39-ae1b-6adf-a42b125e1a68@amd.com> (raw)
In-Reply-To: <1472882501-19515-1-git-send-email-baoyou.xie@linaro.org>
Am 03.09.2016 um 08:01 schrieb Baoyou Xie:
> We get a few warnings when building kernel with W=1:
> drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:113:6: warning: no previous prototype for 'amdgpu_pll_compute' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/cz_smc.c:38:10: warning: no previous prototype for 'cz_get_argument' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/cz_smc.c:302:5: warning: no previous prototype for 'cz_smu_start' [-Wmissing-prototypes]
> ....
>
> In fact, these functions are declared in
> drivers/gpu/drm/amd/amdgpu/atombios_i2c.h
> drivers/gpu/drm/amd/amdgpu/amdgpu_pll.h
> drivers/gpu/drm/amd/amdgpu/cz_dpm.h
> drivers/gpu/drm/amd/amdgpu/vi_dpm.h.
> So this patch adds missing header dependencies.
>
> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Reviewed-by: Christian König <christian.koenig@amd.com>.
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | 1 +
> drivers/gpu/drm/amd/amdgpu/atombios_i2c.c | 1 +
> drivers/gpu/drm/amd/amdgpu/cz_smc.c | 2 ++
> 3 files changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c
> index d153149..8e67c12 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c
> @@ -25,6 +25,7 @@
> #include "amdgpu.h"
> #include "atom.h"
> #include "atombios_encoders.h"
> +#include "amdgpu_pll.h"
> #include <asm/div64.h>
> #include <linux/gcd.h>
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c b/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c
> index bc56c8a..b374653 100644
> --- a/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c
> +++ b/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c
> @@ -27,6 +27,7 @@
> #include "amdgpu.h"
> #include "atom.h"
> #include "amdgpu_atombios.h"
> +#include "atombios_i2c.h"
>
> #define TARGET_HW_I2C_CLOCK 50
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/cz_smc.c b/drivers/gpu/drm/amd/amdgpu/cz_smc.c
> index c80c2e9..95887e4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/cz_smc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/cz_smc.c
> @@ -29,6 +29,8 @@
> #include "cz_smumgr.h"
> #include "smu_ucode_xfer_cz.h"
> #include "amdgpu_ucode.h"
> +#include "cz_dpm.h"
> +#include "vi_dpm.h"
>
> #include "smu/smu_8_0_d.h"
> #include "smu/smu_8_0_sh_mask.h"
prev parent reply other threads:[~2016-09-03 8:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-03 6:01 Baoyou Xie
2016-09-03 8:13 ` Christian König [this message]
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=cd7107ed-be39-ae1b-6adf-a42b125e1a68@amd.com \
--to=christian.koenig@amd.com \
--cc=Jammy.Zhou@amd.com \
--cc=Qingqing.Wang@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=samuel.li@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
all inboxes | Powered by JetHome®