Re: [PATCH] drm/amdgpu: suppress some compile warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 19, 2022 at 5:32 AM Evan Quan <evan.quan@xxxxxxx> wrote:
>
> Suppress two compile warnings about "no previous prototype".
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Evan Quan <evan.quan@xxxxxxx>

Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

> 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
>



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux