2021-08-02 07:34:29

by zhouchuangao

[permalink] [raw]
Subject: [PATCH] gpu/drm/amd: Remove duplicated include of drm_drv.h

Duplicate include header file <drm/drm_drv.h>
line 28: #include <drm/drm_drv.h>
line 44: #include <drm/drm_drv.h>

Signed-off-by: zhouchuangao <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 3ec5099..05f864f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -41,8 +41,6 @@
#include "amdgpu_securedisplay.h"
#include "amdgpu_atomfirmware.h"

-#include <drm/drm_drv.h>
-
static int psp_sysfs_init(struct amdgpu_device *adev);
static void psp_sysfs_fini(struct amdgpu_device *adev);

--
2.7.4



2021-08-02 19:02:17

by Alex Deucher

[permalink] [raw]
Subject: Re: [PATCH] gpu/drm/amd: Remove duplicated include of drm_drv.h

On Mon, Aug 2, 2021 at 3:32 AM zhouchuangao <[email protected]> wrote:
>
> Duplicate include header file <drm/drm_drv.h>
> line 28: #include <drm/drm_drv.h>
> line 44: #include <drm/drm_drv.h>
>
> Signed-off-by: zhouchuangao <[email protected]>

Applied. Thanks!

Alex


> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> index 3ec5099..05f864f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> @@ -41,8 +41,6 @@
> #include "amdgpu_securedisplay.h"
> #include "amdgpu_atomfirmware.h"
>
> -#include <drm/drm_drv.h>
> -
> static int psp_sysfs_init(struct amdgpu_device *adev);
> static void psp_sysfs_fini(struct amdgpu_device *adev);
>
> --
> 2.7.4
>