Re: [03/12] sysfb: Do not include <linux/screen_info.h> from sysfb header
Sui Jingfeng <[email protected]>
| Newsgroups | gmane.linux.ports.riscv,gmane.linux.kernel.efi,gmane.linux.ports.ia64,gmane.linux.ports.sh.devel,gmane.comp.video.dri.devel,gmane.linux.ports.mips,gmane.linux.ports.sparc,gmane.linux.kernel.cross-arch,gmane.linux.ports.hexagon,gmane.linux.ports.arm.kernel,gmane.linux.kernel,gmane.linux.ports.alpha,gmane.linux.ports.ppc64.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> > Cc: Ard Biesheuvel <[email protected]> > Cc: Hans de Goede <[email protected]> > Cc: Javier Martinez Canillas <[email protected]> > Reviewed-by: Javier Martinez Canillas <[email protected]> Reviewed-by: Sui Jingfeng <[email protected]> > --- > 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 */