2022-01-30 03:43:14

by CGEL

[permalink] [raw]
Subject: [PATCH] drm/amdgpu: remove duplicate include in 'amdgpu_device.c'

From: Changcheng Deng <[email protected]>

'linux/pci.h' included in 'amdgpu_device.c' is duplicated.

Reported-by: Zeal Robot <[email protected]>
Signed-off-by: Changcheng Deng <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index dd5979098e63..289c5c626324 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -56,7 +56,6 @@
#include "soc15.h"
#include "nv.h"
#include "bif/bif_4_1_d.h"
-#include <linux/pci.h>
#include <linux/firmware.h>
#include "amdgpu_vf_error.h"

--
2.25.1


2022-01-31 11:31:32

by Alex Deucher

[permalink] [raw]
Subject: Re: [PATCH] drm/amdgpu: remove duplicate include in 'amdgpu_device.c'

Applied. Thanks!

Alex

On Fri, Jan 28, 2022 at 2:05 AM <[email protected]> wrote:
>
> From: Changcheng Deng <[email protected]>
>
> 'linux/pci.h' included in 'amdgpu_device.c' is duplicated.
>
> Reported-by: Zeal Robot <[email protected]>
> Signed-off-by: Changcheng Deng <[email protected]>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index dd5979098e63..289c5c626324 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -56,7 +56,6 @@
> #include "soc15.h"
> #include "nv.h"
> #include "bif/bif_4_1_d.h"
> -#include <linux/pci.h>
> #include <linux/firmware.h>
> #include "amdgpu_vf_error.h"
>
> --
> 2.25.1
>