lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 26 Sep 2016 15:52:47 -0400
From:   Alex Deucher <alexdeucher@...il.com>
To:     Baoyou Xie <baoyou.xie@...aro.org>
Cc:     "Deucher, Alexander" <alexander.deucher@....com>,
        Christian Koenig <christian.koenig@....com>,
        Dave Airlie <airlied@...ux.ie>,
        Oded Gabbay <oded.gabbay@...il.com>,
        Chunming Zhou <David1.Zhou@....com>,
        "monk.liu" <Monk.Liu@....com>, Rex Zhu <Rex.Zhu@....com>,
        Eric Huang <JinHuiEric.Huang@....com>,
        Flora Cui <Flora.Cui@....com>,
        "Zhou, Jammy" <Jammy.Zhou@....com>, Lukas Wunner <lukas@...ner.de>,
        Mario Kleiner <mario.kleiner.de@...il.com>,
        Nils Wallménius <nils.wallmenius@...il.com>,
        Emily Deng <Emily.Deng@....com>,
        Stephen Chandler Paul <cpaul@...hat.com>,
        Arindam Nath <arindam.nath@....com>,
        Tom St Denis <tom.stdenis@....com>,
        Nicolai Hähnle <nicolai.haehnle@....com>,
        Ken Wang <Qingqing.Wang@....com>,
        "Li, Samuel" <samuel.li@....com>, Huang Rui <ray.huang@....com>,
        "Daenzer, Michel" <michel.daenzer@....com>,
        Daniel Vetter <daniel.vetter@...ll.ch>,
        Gustavo Padovan <gustavo.padovan@...labora.co.uk>,
        eric.engestrom@...tec.com, Vitaly Prosyak <vitaly.prosyak@....com>,
        Alexandre Demers <alexandre.f.demers@...il.com>,
        Junwei Zhang <Jerry.Zhang@....com>,
        Sean Paul <seanpaul@...omium.org>,
        yamada.masahiro@...ionext.com,
        "Bayyavarapu, Maruthi" <maruthi.bayyavarapu@....com>,
        Arnd Bergmann <arnd@...db.de>, tang.qiang007@....com.cn,
        xie.baoyou@....com.cn, LKML <linux-kernel@...r.kernel.org>,
        Maling list - DRI developers 
        <dri-devel@...ts.freedesktop.org>, han.fei@....com.cn
Subject: Re: [PATCH 1/4] drm/amdgpu: add missing header dependencies

On Sun, Sep 25, 2016 at 4:43 AM, Baoyou Xie <baoyou.xie@...aro.org> wrote:
> We get a few warnings when building kernel with W=1:
> drivers/gpu/drm/amd/amdgpu/dce_v8_0.c:629:6: warning: no previous prototype for 'dce_v8_0_disable_dce' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/dce_v10_0.c:730:6: warning: no previous prototype for 'dce_v10_0_disable_dce' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/dce_v11_0.c:699:6: warning: no previous prototype for 'dce_v11_0_disable_dce' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:40:5: warning: no previous prototype for 'amdgpu_gfx_scratch_get' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:62:6: warning: no previous prototype for 'amdgpu_gfx_scratch_free' [-Wmissing-prototypes]
> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:84:6: warning: no previous prototype for 'amdgpu_gfx_parse_disable_cu' [-Wmissing-prototypes]
> ....
>
> In fact, these functions are declared in
> drivers/gpu/drm/amd/amdgpu/atombios_crtc.h,
> drivers/gpu/drm/amd/amdgpu/dce_v8_0.h
> drivers/gpu/drm/amd/amdgpu/dce_v10_0.h
> drivers/gpu/drm/amd/amdgpu/dce_v11_0.h
> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h,
> so this patch adds missing header dependencies.
>
> by the way, we amend the declaration of amdgpu_gfx_parse_disable_cu().
>
> Signed-off-by: Baoyou Xie <baoyou.xie@...aro.org>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c    | 1 +
>  drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h    | 3 ++-
>  drivers/gpu/drm/amd/amdgpu/atombios_crtc.c | 1 +
>  drivers/gpu/drm/amd/amdgpu/dce_v10_0.c     | 1 +
>  drivers/gpu/drm/amd/amdgpu/dce_v11_0.c     | 1 +
>  drivers/gpu/drm/amd/amdgpu/dce_v8_0.c      | 1 +
>  6 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
> index a074edd..01a42b6 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
> @@ -24,6 +24,7 @@
>   */
>  #include <drm/drmP.h>
>  #include "amdgpu.h"
> +#include "amdgpu_gfx.h"
>
>  /*
>   * GPU scratch registers helpers function.
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
> index 51321e1..abd9432 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
> @@ -27,6 +27,7 @@
>  int amdgpu_gfx_scratch_get(struct amdgpu_device *adev, uint32_t *reg);
>  void amdgpu_gfx_scratch_free(struct amdgpu_device *adev, uint32_t reg);
>
> -unsigned amdgpu_gfx_parse_disable_cu(unsigned *mask, unsigned max_se, unsigned max_sh);
> +void amdgpu_gfx_parse_disable_cu(unsigned int *mask, unsigned int max_se,
> +               unsigned int max_sh);

Please only fix the return type rather than the parameters for
consistency with the rest of the driver.

Alex

>
>  #endif
> diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c b/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c
> index f7d236f..4853ae0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c
> @@ -30,6 +30,7 @@
>  #include "amdgpu.h"
>  #include "atom.h"
>  #include "atom-bits.h"
> +#include "atombios_crtc.h"
>  #include "atombios_encoders.h"
>  #include "amdgpu_atombios.h"
>  #include "amdgpu_pll.h"
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
> index bc5bb4e..d3925a5 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
> @@ -32,6 +32,7 @@
>  #include "amdgpu_pll.h"
>  #include "amdgpu_connectors.h"
>
> +#include "dce_v10_0.h"
>  #include "dce/dce_10_0_d.h"
>  #include "dce/dce_10_0_sh_mask.h"
>  #include "dce/dce_10_0_enum.h"
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
> index b93eba0..1002113 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
> @@ -32,6 +32,7 @@
>  #include "amdgpu_pll.h"
>  #include "amdgpu_connectors.h"
>
> +#include "dce_v11_0.h"
>  #include "dce/dce_11_0_d.h"
>  #include "dce/dce_11_0_sh_mask.h"
>  #include "dce/dce_11_0_enum.h"
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
> index abd5213..686c50d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
> @@ -32,6 +32,7 @@
>  #include "amdgpu_pll.h"
>  #include "amdgpu_connectors.h"
>
> +#include "dce_v8_0.h"
>  #include "dce/dce_8_0_d.h"
>  #include "dce/dce_8_0_sh_mask.h"
>
> --
> 2.7.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ