Skip to contentSkip to conversation

drm: Drop unused include of <drm/drm_pciids.h>

PATCH Applied Uwe Kleine-König (The Capable Hub) 3 participants 9 messages Apr 30 – Jul 17

Subsystems (5)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 8b71834a73df..1239fb32311f 100644
@@ -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
#2 lore raw

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 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 -0
index 8b71834a73df..1239fb32311f 100644

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

#3 lore raw

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
index 039da26ef24d..f7ec6c21a9a1 100644
@@ -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
maintainer Applied
#4 lore raw

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 defines radeon_PCI_IDS which isn't used in the gma500 driver. So drop the useless include statement.

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
index 039da26ef24d..f7ec6c21a9a1 100644
@@ -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

#5 lore raw

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
index c180dc3c7a58..bb315490964f 100644
@@ -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
maintainer Reviewed-by on v1 3/3
#6 lore raw

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 defines radeon_PCI_IDS which isn't used in the mgag200 driver. So drop the useless include statement.

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
index c180dc3c7a58..bb315490964f 100644
@@ -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)
maintainer Reviewed-by on the v1 series
#7 lore raw
In reply to Uwe Kleine-König (The Capable Hub)

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_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 · 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)
#8 lore raw
In reply to Uwe Kleine-König (The Capable Hub)

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

Quoted 7 lines

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>

Patches #2 and #3 are currently waiting in next for the merge window. Can you please pick #1, too?

Best regards
Uwe