[PATCH v2 3/4] sysfb: Do not include <linux/screen_info.h> from sysfb header

Thomas Zimmermann tzimmermann at suse.de
Thu Jul 6 03:42:16 PDT 2023


The header file <linux/sysfb.h> does not need anything from
<linux/screen_info.h>. Declare struct screen_info and remove
the include statements.

Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
Reviewed-by: Sui Jingfeng <suijingfeng at loongson.cn>
Cc: Ard Biesheuvel <ardb at kernel.org>
Cc: Hans de Goede <hdegoede at redhat.com>
Cc: Javier Martinez Canillas <javierm at redhat.com>
---
 include/linux/sysfb.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/sysfb.h b/include/linux/sysfb.h
index c1ef5fc60a3c..19cb803dd5ec 100644
--- a/include/linux/sysfb.h
+++ b/include/linux/sysfb.h
@@ -9,7 +9,8 @@
 
 #include <linux/kernel.h>
 #include <linux/platform_data/simplefb.h>
-#include <linux/screen_info.h>
+
+struct screen_info;
 
 enum {
 	M_I17,		/* 17-Inch iMac */
-- 
2.41.0




More information about the linux-arm-kernel mailing list