[PATCH] drm/amdgpu: suppress some compile warnings
Alex Deucher
alexdeucher at gmail.com
Thu May 19 13:16:28 UTC 2022
On Thu, May 19, 2022 at 5:32 AM Evan Quan <evan.quan at amd.com> wrote:
>
> Suppress two compile warnings about "no previous prototype".
>
> Reported-by: kernel test robot <lkp at intel.com>
> Signed-off-by: Evan Quan <evan.quan at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> Change-Id: I74d029c6ebd8bf6bc08edada7a992d04786330d8
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +-
> drivers/gpu/drm/amd/amdgpu/soc21.c | 1 +
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> index 881570dced41..16cdfb30b013 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> @@ -1361,7 +1361,7 @@ union mall_info {
> struct mall_info_v1_0 v1;
> };
>
> -int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev)
> +static int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev)
> {
> struct binary_header *bhdr;
> union mall_info *mall_info;
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
> index c6a8520053bb..9e18a2b22607 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc21.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
> @@ -42,6 +42,7 @@
>
> #include "soc15.h"
> #include "soc15_common.h"
> +#include "soc21.h"
>
> static const struct amd_ip_funcs soc21_common_ip_funcs;
>
> --
> 2.29.0
>
More information about the amd-gfx
mailing list