drm: Drop unused include of <drm/drm_pciids.h>
Subsystems (5)
cover drm: Drop unused include of <drm/drm_pciids.h>
Hello,
<drm/drm_pciids.h> is only actually used in the radeon driver but included in several others. This series drops these includes.
The obvious continuation would be to fold the definition of radeon_PCI_IDS into the only .c file using it. But I post-pone that until
https://lore.kernel.org/all/[email protected]/
is out of the way.
There are no dependencies between the patches, so I suggest that each maintainer team applies their material to their own tree at their own pace.
To state the obvious: This is merge window material.
Best regards
Uwe
Uwe Kleine-König (The Capable Hub) (3):
drm/amdgpu: Drop unused include of <drm/drm_pciids.h> drm/gma500: Drop unused include of <drm/drm_pciids.h> drm/mgag200: Drop unused include of <drm/drm_pciids.h>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 - drivers/gpu/drm/gma500/psb_drv.c | 1 - drivers/gpu/drm/mgag200/mgag200_drv.c | 1 - 3 files changed, 3 deletions(-)
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
Signature · 1 line
2.47.3
PATCH 1/3 drm/amdgpu: Drop unused include of <drm/drm_pciids.h>
The <drm/drm_pciids.h> header only defines radeon_PCI_IDS which isn't used in the amdgpu driver. So drop the useless include statement.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -1
@@ -28,7 +28,6 @@#include <drm/drm_fbdev_ttm.h> #include <drm/drm_gem.h> #include <drm/drm_managed.h> -#include <drm/drm_pciids.h> #include <drm/drm_probe_helper.h> #include <drm/drm_vblank.h>
Signature · 1 line
2.47.3
Re: [PATCH v1 1/3] drm/amdgpu: Drop unused include of <drm/drm_pciids.h>
Hello,
Quoted 13 lines · Uwe Kleine-König (The Capable Hub)
The <
drm/drm_pciids.h> header only definesradeon_PCI_IDSwhich isn't used in the amdgpu driver. So drop the useless include statement.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c line 32
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-1@@ -28,7 +28,6 @@#include <drm/drm_fbdev_ttm.h> #include <drm/drm_gem.h> #include <drm/drm_managed.h> -#include <drm/drm_pciids.h> #include <drm/drm_probe_helper.h> #include <drm/drm_vblank.h>
Patches #2 and #3 of this series was applied, but this one wasn't.
Is this still on someone's radar?
Best regards
Uwe
PATCH 2/3 drm/gma500: Drop unused include of <drm/drm_pciids.h>
In reply to Uwe Kleine-König (The Capable Hub)The <drm/drm_pciids.h> header only defines radeon_PCI_IDS which isn't used in the gma500 driver. So drop the useless include statement.
--- drivers/gpu/drm/gma500/psb_drv.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/gma500/psb_drv.c +0 -1
@@ -24,7 +24,6 @@#include <drm/drm_drv.h> #include <drm/drm_file.h> #include <drm/drm_ioctl.h> -#include <drm/drm_pciids.h> #include <drm/drm_print.h> #include <drm/drm_vblank.h>
Signature · 1 line
2.47.3
Re: [PATCH v1 2/3] drm/gma500: Drop unused include of <drm/drm_pciids.h>
Quoted 5 lines · Uwe Kleine-König (The Capable Hub)
The <
drm/drm_pciids.h> header only definesradeon_PCI_IDSwhich isn't used in the gma500 driver. So drop the useless include statement.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Applied to drm-misc-next
Thanks
Patrik
Quoted 19 lines
--- drivers/gpu/drm/gma500/psb_drv.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/gma500/psb_drv.c +0
-2@@ -24,7 +24,6 @@#include <drm/drm_drv.h> #include <drm/drm_file.h> #include <drm/drm_ioctl.h> -#include <drm/drm_pciids.h> #include <drm/drm_print.h> #include <drm/drm_vblank.h> --2.47.3
PATCH 3/3 drm/mgag200: Drop unused include of <drm/drm_pciids.h>
In reply to Uwe Kleine-König (The Capable Hub)The <drm/drm_pciids.h> header only defines radeon_PCI_IDS which isn't used in the mgag200 driver. So drop the useless include statement.
--- drivers/gpu/drm/mgag200/mgag200_drv.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/mgag200/mgag200_drv.c +0 -1
@@ -19,7 +19,6 @@#include <drm/drm_ioctl.h> #include <drm/drm_managed.h> #include <drm/drm_module.h> -#include <drm/drm_pciids.h> #include <drm/drm_print.h> #include "mgag200_drv.h"
Signature · 1 line
2.47.3
Re: [PATCH v1 3/3] drm/mgag200: Drop unused include of <drm/drm_pciids.h>
Hi
Am 30.04.26 um 12:45 schrieb Uwe Kleine-König (The Capable Hub):
Quoted 4 lines
The <
drm/drm_pciids.h> header only definesradeon_PCI_IDSwhich isn't used in the mgag200 driver. So drop the useless include statement.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
I'll merge this patch into drm-misc-next.
Best regards
Thomas
Quoted 16 lines
--- drivers/gpu/drm/mgag200/mgag200_drv.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/mgag200/mgag200_drv.c +0
-1@@ -19,7 +19,6 @@#include <drm/drm_ioctl.h> #include <drm/drm_managed.h> #include <drm/drm_module.h> -#include <drm/drm_pciids.h> #include <drm/drm_print.h> #include "mgag200_drv.h"
Signature · 6 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
Am 30.04.26 um 12:45 schrieb Uwe Kleine-König (The Capable Hub):
Quoted 32 lines
Hello,
<
drm/drm_pciids.h> is only actually used in the radeon driver but included in several others. This series drops these includes.The obvious continuation would be to fold the definition of
radeon_PCI_IDSinto the only .c file using it. But I post-pone that until
https://lore.kernel.org/all/[email protected]/
is out of the way.There are no dependencies between the patches, so I suggest that each maintainer team applies their material to their own tree at their own pace.
To state the obvious: This is merge window material.
Best regards
UweUwe Kleine-König (The Capable Hub) (3):
drm/amdgpu: Drop unused include of <drm/drm_pciids.h> drm/gma500: Drop unused include of <drm/drm_pciids.h> drm/mgag200: Drop unused include of <drm/drm_pciids.h>drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 - drivers/gpu/drm/gma500/psb_drv.c | 1 - drivers/gpu/drm/mgag200/mgag200_drv.c | 1 - 3 files changed, 3 deletions(-)base-commit:
254f49634ee16a731174d2ae34bc50bd5f45e731
Signature · 6 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
Hello,
Quoted 17 lines · Uwe Kleine-König (The Capable Hub)
Hello,
<
drm/drm_pciids.h> is only actually used in the radeon driver but included in several others. This series drops these includes.The obvious continuation would be to fold the definition of
radeon_PCI_IDSinto the only .c file using it. But I post-pone that until
https://lore.kernel.org/all/[email protected]/
is out of the way.There are no dependencies between the patches, so I suggest that each maintainer team applies their material to their own tree at their own pace.
To state the obvious: This is merge window material.
Quoted 7 lines
Best regards
UweUwe Kleine-König (The Capable Hub) (3):
drm/amdgpu: Drop unused include of <drm/drm_pciids.h> drm/gma500: Drop unused include of <drm/drm_pciids.h> drm/mgag200: Drop unused include of <drm/drm_pciids.h>
Patches #2 and #3 are currently waiting in next for the merge window. Can you please pick #1, too?
Best regards
Uwe