Skip to contentSkip to conversation

drm/tegra: Remove unneeded include

PATCH Applied Jon Hunter 2 participants 2 messages Apr 28, 2025 – May 7, 2025

Subsystems (3)
lore
Share & tools
lore

Jon Hunter

author maintainer
#0 lore raw

PATCH 1/1 drm/tegra: Remove unneeded include

The header file 'tegra_drm.h' is included in gem.c, but this file is already include 'drm.h'. Although there is no harm in including this file again, it is also not necessary. Furthermore, the header file is located under 'include/uapi/drm' so ideally the full path would be used to be explicit. For now, just remove from gem.c.

---
 drivers/gpu/drm/tegra/gem.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/tegra/gem.c +0 -1
index ace3e5a805cf..dbc1394f96b8 100644
@@ -17,7 +17,6 @@
 
 #include <drm/drm_drv.h>
 #include <drm/drm_prime.h>
-#include <drm/tegra_drm.h>
 
 #include "drm.h"
 #include "gem.h"
Signature · 1 line
2.43.0
#1 lore raw
Quoted 10 lines · Jon Hunter

The header file 'tegra_drm.h' is included in gem.c, but this file is already include 'drm.h'. Although there is no harm in including this file again, it is also not necessary. Furthermore, the header file is located under 'include/uapi/drm' so ideally the full path would be used to be explicit. For now, just remove from gem.c.

---
 drivers/gpu/drm/tegra/gem.c | 1 -
 1 file changed, 1 deletion(-)

Applied, thanks.

Thierry