fbdev: Clean up include dependencies in header
Subsystems (7)
Thomas Zimmermann
maintainerv3 cover fbdev: Clean up include dependencies in header
Remove unnecessary dependencies in the include statements of the header file <linux/fb.h>. Several files throughout the kernel include the fbdev header, so reducing dependencies positively affects other subsystems as well. Also fix up corgi-lcd, nouveau and fbtft, which need backlight.h in some of their source files.
v3:
* include backlight.h in corgi-lcd (kernel test robot)
* grammar fixes in commit messages
v2:
* include backlight.h in fbtft (kernel test robot)
Thomas Zimmermann (9):
backlight/corgi-lcd: Include <linux/backlight.h> drm/nouveau: Include <linux/backlight.h> staging/fbtft: Include <linux/backlight.h>
fbdev: Do not include <linux/backlight.h> in header
fbdev: Do not include <linux/fs.h> in header
fbdev: Do not include <linux/notifier.h> in header
fbdev: Do not include <linux/slab.h> in header
fbdev: Clean up forward declarations in header file
fbdev: Clean up include statements in header file
drivers/gpu/drm/nouveau/dispnv50/disp.c | 1 + drivers/staging/fbtft/fb_ssd1351.c | 2 ++ drivers/video/backlight/corgi_lcd.c | 1 + include/linux/fb.h | 24 +++++++++++++----------- 4 files changed, 17 insertions(+), 11 deletions(-)
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 1/9 backlight/corgi-lcd: Include <linux/backlight.h>
Resolves the proxy include via <linux/fb.h>, which does not require the backlight header.
--- drivers/video/backlight/corgi_lcd.c | 1 + 1 file changed, 1 insertion(+)
drivers/video/backlight/corgi_lcd.c +1 -0
@@ -11,6 +11,7 @@* by Eric Miao <[email protected]> */ +#include <linux/backlight.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h>
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 2/9 drm/nouveau: Include <linux/backlight.h>
In reply to Thomas ZimmermannResolves the proxy include via <linux/fb.h>, which does not require the backlight header.
v3:
* fix grammar in commit message
--- drivers/gpu/drm/nouveau/dispnv50/disp.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/nouveau/dispnv50/disp.c +1 -0
@@ -28,6 +28,7 @@#include "wndw.h" #include "handles.h" +#include <linux/backlight.h> #include <linux/dma-mapping.h> #include <linux/hdmi.h> #include <linux/component.h>
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 3/9 staging/fbtft: Include <linux/backlight.h>
In reply to Thomas ZimmermannResolves the proxy include via <linux/fb.h>, which does not require the backlight header.
v3:
* fix grammar in commit message
--- drivers/staging/fbtft/fb_ssd1351.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/staging/fbtft/fb_ssd1351.c +2 -0
@@ -1,4 +1,6 @@// SPDX-License-Identifier: GPL-2.0 + +#include <linux/backlight.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h>
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 4/9 fbdev: Do not include <linux/backlight.h> in header
In reply to Thomas ZimmermannForward declare struct backlight_device and remove the include statement.
--- include/linux/fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fb.h +1 -1
@@ -13,11 +13,11 @@#include <linux/workqueue.h> #include <linux/notifier.h> #include <linux/list.h> -#include <linux/backlight.h> #include <linux/slab.h> #include <asm/fb.h> +struct backlight_device ;struct vm_area_struct ;struct fb_info ;struct device ;
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 5/9 fbdev: Do not include <linux/fs.h> in header
In reply to Thomas ZimmermannForward declare struct inode and remove the include statement.
--- include/linux/fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fb.h +1 -1
@@ -8,7 +8,6 @@#define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor_user) -#include <linux/fs.h> #include <linux/init.h> #include <linux/workqueue.h> #include <linux/notifier.h>
@@ -22,6 +21,7 @@ struct vm_area_struct;struct fb_info ;struct device ;struct file ; +struct inode ;struct videomode ;struct device_node ;
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 6/9 fbdev: Do not include <linux/notifier.h> in header
In reply to Thomas ZimmermannForward declare struct notifier_block and remove the include statement.
--- include/linux/fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fb.h +1 -1
@@ -10,7 +10,6 @@#include <linux/init.h> #include <linux/workqueue.h> -#include <linux/notifier.h> #include <linux/list.h> #include <linux/slab.h>
@@ -22,6 +21,7 @@ struct fb_info;struct device ;struct file ;struct inode ; +struct notifier_block ;struct videomode ;struct device_node ;
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 7/9 fbdev: Do not include <linux/slab.h> in header
In reply to Thomas ZimmermannForward declare struct page and remove the include statement.
--- include/linux/fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fb.h +1 -1
@@ -11,7 +11,6 @@#include <linux/init.h> #include <linux/workqueue.h> #include <linux/list.h> -#include <linux/slab.h> #include <asm/fb.h>
@@ -22,6 +21,7 @@ struct device;struct file ;struct inode ;struct notifier_block ; +struct page ;struct videomode ;struct device_node ;
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 8/9 fbdev: Clean up forward declarations in header file
In reply to Thomas ZimmermannAdd forward declarations for struct i2c_adapter and struct module, and sort the list alphabetically.
--- include/linux/fb.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
include/linux/fb.h +5 -3
@@ -15,15 +15,17 @@#include <asm/fb.h> struct backlight_device ; -struct vm_area_struct ; -struct fb_info ;struct device ; +struct device_node ; +struct fb_info ;struct file ; +struct i2c_adapter ;struct inode ; +struct module ;struct notifier_block ;struct page ;struct videomode ; -struct device_node ; +struct vm_area_struct ;/* Definitions below are used in the parsed monitor specs */ #define FB_DPMS_ACTIVE_OFF 1
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerPATCH v3 9/9 fbdev: Clean up include statements in header file
In reply to Thomas ZimmermannInclude mutex.h, printk.h and types.h, remove several unnecessary include statements, and sort the list alphabetically.
--- include/linux/fb.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/fb.h +4 -4
@@ -2,15 +2,15 @@#ifndef _LINUX_FB_H#define _LINUX_FB_H -#include <linux/refcount.h> -#include <linux/kgdb.h> #include <uapi/linux/fb.h> #define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor_user) -#include <linux/init.h> +#include <linux/mutex.h> +#include <linux/printk.h> +#include <linux/refcount.h> +#include <linux/types.h> #include <linux/workqueue.h> -#include <linux/list.h> #include <asm/fb.h>
Signature · 1 line
2.43.0
Thomas Zimmermann
maintainerRe: [PATCH v3 1/9] backlight/corgi-lcd: Include <linux/backlight.h>
In reply to Thomas Zimmermanncc'ing backlight maintainers
Am 19.02.24 um 10:37 schrieb Thomas Zimmermann:
Quoted 20 lines
Resolves the proxy include via <
linux/fb.h>, which does not require the backlight header.Signed-off-by Thomas Zimmermann <[email protected]>--- drivers/video/backlight/corgi_lcd.c | 1 + 1 file changed, 1 insertion(+)drivers/video/backlight/corgi_lcd.c +1
-0@@ -11,6 +11,7 @@* by Eric Miao <[email protected]> */ +#include <linux/backlight.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h>
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Lee Jones
maintainerRe: [PATCH v3 1/9] backlight/corgi-lcd: Include <linux/backlight.h>
Quoted 1 line · Thomas Zimmermann
cc'ing backlight maintainers
I cannot review/accept patches like this.
Please submit a [RESEND].
Quoted 30 lines
Am 19.02.24 um 10:37 schrieb Thomas Zimmermann:
Quoted 19 lines
Resolves the proxy include via <
linux/fb.h>, which does not require the backlight header.Signed-off-by Thomas Zimmermann <[email protected]>--- drivers/video/backlight/corgi_lcd.c | 1 + 1 file changed, 1 insertion(+)drivers/video/backlight/corgi_lcd.c +1
-0@@ -11,6 +11,7 @@* by Eric Miao <[email protected]> */ +#include <linux/backlight.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Signature · 1 line
Lee Jones [李琼斯]
Re: [PATCH v3 1/9] backlight/corgi-lcd: Include <linux/backlight.h>
Quoted 7 lines · Lee Jones
Quoted 1 line · Thomas Zimmermann
cc'ing backlight maintainers
I cannot review/accept patches like this.
Please submit a [RESEND].
I bounced the original [1] to you. Please consider acking to merge the one-line #include addition via fbdev so we don't have to respin the series for no good reason.
BR,
Jani.
[1] https://lore.kernel.org/r/[email protected]
Quoted 31 lines
Quoted 31 lines
Am 19.02.24 um 10:37 schrieb Thomas Zimmermann:
Quoted 19 lines
Resolves the proxy include via <
linux/fb.h>, which does not require the backlight header.Signed-off-by Thomas Zimmermann <[email protected]>--- drivers/video/backlight/corgi_lcd.c | 1 + 1 file changed, 1 insertion(+)drivers/video/backlight/corgi_lcd.c +1
-0@@ -11,6 +11,7 @@* by Eric Miao <[email protected]> */ +#include <linux/backlight.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Signature · 1 line
Jani Nikula, Intel
Re: [PATCH v3 1/9] backlight/corgi-lcd: Include <linux/backlight.h>
Quoted 5 lines · Jani Nikula
Quoted 4 lines · Lee Jones
Quoted 1 line · Thomas Zimmermann
cc'ing backlight maintainers
Quoted 7 lines
Quoted 3 lines
I cannot review/accept patches like this.
Please submit a [RESEND].
I bounced the original [1] to you. Please consider acking to merge the one-line #include addition via fbdev so we don't have to respin the series for no good reason.
The "good reason" would be that it was not sent properly in the first place. My kernel.org mail is filtered by the recipients headers. If the original wasn't sent to me, bouncing won't work either. I've since reviewed the patch and seen the set on LORE. This is non-optimal. Please use get_maintainer.pl next time.
This time only, patch is:
Signature · 1 line
Lee Jones [李琼斯]
Thomas Zimmermann
maintainerRe: [PATCH v3 1/9] backlight/corgi-lcd: Include <linux/backlight.h>
Hi
Am 26.02.24 um 13:33 schrieb Lee Jones:
Quoted 18 lines · Jani Nikula
Quoted 11 lines · Lee Jones
Quoted 6 lines · Thomas Zimmermann
Quoted 2 lines
cc'ing backlight maintainers
I cannot review/accept patches like this.
Please submit a [RESEND].
I bounced the original [1] to you. Please consider acking to merge the one-line #include addition via fbdev so we don't have to respin the series for no good reason.
The "good reason" would be that it was not sent properly in the first place. My kernel.org mail is filtered by the recipients headers. If the original wasn't sent to me, bouncing won't work either. I've since reviewed the patch and seen the set on LORE. This is non-optimal. Please use get_maintainer.pl next time.
Quoted 3 lines
This time only, patch is:
Acked-by Lee Jones <[email protected]>
No problem, I'll send out another series. I just didn't get to do it.
Best regards
Thomas
Quoted 1 line
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Lee Jones
maintainerRe: [PATCH v3 1/9] backlight/corgi-lcd: Include <linux/backlight.h>
Quoted 21 lines · Thomas Zimmermann
Hi
Am 26.02.24 um 13:33 schrieb Lee Jones:
Quoted 18 lines · Jani Nikula
Quoted 11 lines · Lee Jones
Quoted 6 lines · Thomas Zimmermann
Quoted 2 lines
cc'ing backlight maintainers
I cannot review/accept patches like this.
Please submit a [RESEND].
I bounced the original [1] to you. Please consider acking to merge the one-line #include addition via fbdev so we don't have to respin the series for no good reason.
The "good reason" would be that it was not sent properly in the first place. My kernel.org mail is filtered by the recipients headers. If the original wasn't sent to me, bouncing won't work either. I've since reviewed the patch and seen the set on LORE. This is non-optimal. Please use get_maintainer.pl next time.
Quoted 5 lines
Quoted 3 lines
This time only, patch is:
Acked-by Lee Jones <[email protected]>No problem, I'll send out another series. I just didn't get to do it.
No need to do that now on my behalf. You have my Ack.
Signature · 1 line
Lee Jones [李琼斯]