Thread (44 messages) flat view 44 messages, 5 authors, 2023-08-18

Re: [03/12] sysfb: Do not include <linux/screen_info.h> from sysfb header

From: Sui Jingfeng <hidden>
Date: 2023-07-05 01:42:03
Also in: dri-devel, linux-alpha, linux-arch, linux-arm-kernel, linux-efi, linux-fbdev, linux-hyperv, linux-mips, linux-riscv, linux-sh, linux-staging, lkml, loongarch, sparclinux

On 2023/6/29 19:45, Thomas Zimmermann wrote:
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@suse.de>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Hans de Goede <redacted>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>

Reviewed-by: Sui Jingfeng <redacted>

quoted hunk ↗ jump to hunk
---
  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 c1ef5fc60a3cb..19cb803dd5ecd 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 */
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help