Skip to contentSkip to conversation

firmware: sysfb: Don't use "proxy" headers

PATCH Applied Andy Shevchenko 2 participants 2 messages Jun 27, 2025 DRM driver for firmware framebuffers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 firmware: sysfb: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use) principle.

Note that kernel.h is discouraged to be included as it's written at the top of that file.

---

v2: dropped first patch, added tags (Javier, Thomas)

 include/linux/sysfb.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
include/linux/sysfb.h +5 -1
index 07cbab516942..b449665c686a 100644
@@ -7,9 +7,13 @@
  * Copyright (c) 2012-2013 David Herrmann <[email protected]>
  */
 
-#include <linux/kernel.h>
+#include <linux/err.h>
+#include <linux/types.h>
+
 #include <linux/platform_data/simplefb.h>
 
+struct device;
+struct platform_device;
 struct screen_info;
 
 enum {
Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw
Quoted 6 lines · Andy Shevchenko

Update header inclusions to follow IWYU (Include What You Use) principle.

Note that kernel.h is discouraged to be included as it's written at the top of that file.

Quoted 7 lines

---

v2: dropped first patch, added tags (Javier, Thomas)

Pushed to drm-misc (drm-misc-next). Thanks!

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat