]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firmware: sysfb: Don't use "proxy" headers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Jun 2025 10:34:15 +0000 (13:34 +0300)
committerJavier Martinez Canillas <javierm@redhat.com>
Fri, 27 Jun 2025 11:01:11 +0000 (13:01 +0200)
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.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250627103454.702606-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
include/linux/sysfb.h

index 07cbab516942c1e50414ad70a42489276783893a..b449665c686a00293a7fa3bd2c1be938913bf5ff 100644 (file)
@@ -7,9 +7,13 @@
  * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com>
  */
 
-#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 {