[PATCH 1/1] drm/amdgpu: mark local function as static

Alex Deucher alexdeucher at gmail.com
Tue Feb 16 14:41:12 UTC 2021


On Tue, Feb 16, 2021 at 9:40 AM Nirmoy Das <nirmoy.das at amd.com> wrote:
>
> Mark amdgpu_ras_debugfs_create_ctrl_node() as static.
>
> Fixes: 0ec7b4385 ("drm/amdgpu: do not keep debugfs dentry")
> Reported-by: kernel test robot <lkp at intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index b504914519ce..93699ea4860c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -1137,7 +1137,7 @@ static int amdgpu_ras_sysfs_remove_all(struct amdgpu_device *adev)
>   *
>   */
>  /* debugfs begin */
> -struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
> +static struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
>  {
>         struct amdgpu_ras *con = amdgpu_ras_get_context(adev);
>         struct dentry *dir;
> --
> 2.30.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list