Skip to contentSkip to conversation

fbdev: Update fbdev source file paths

PATCH In review Jonathan Neuschäfer 4 participants 7 messages Aug 29, 2023 – Sep 1, 2023 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: Update fbdev source file paths

The files fbmem.c, fb_defio.c, fbsysfs.c, fbmon.c, modedb.c, and fbcmap.c were moved to drivers/video/fbdev, and subsequently to drivers/video/fbdev/core, in the commits listed below.

Reported by kalekale in #kernel (Libera IRC).

Fixes f7018c213502 ("video: move fbdev to drivers/video/fbdev")
Fixes 19757fc8432a ("fbdev: move fbdev core files to separate directory")
---
 include/linux/fb.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
include/linux/fb.h +6 -6
index ce7d588edc3e6..3cda5b9f2469b 100644
@@ -592,7 +592,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
 	__FB_DEFAULT_SYS_OPS_DRAW, \
 	__FB_DEFAULT_SYS_OPS_MMAP
 
-/* drivers/video/fbmem.c */
+/* drivers/video/fbdev/core/fbmem.c */
 extern int register_framebuffer(struct fb_info *fb_info);
 extern void unregister_framebuffer(struct fb_info *fb_info);
 extern int fb_prepare_logo(struct fb_info *fb_info, int rotate);
@@ -636,7 +636,7 @@ static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch,
 	}
 }
 
-/* drivers/video/fb_defio.c */
+/* drivers/video/fbdev/core/fb_defio.c */
 int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct *vma);
 extern int  fb_deferred_io_init(struct fb_info *info);
 extern void fb_deferred_io_open(struct fb_info *info,
@@ -735,14 +735,14 @@ static inline bool fb_be_math(struct fb_info *info)
 #endif /* CONFIG_FB_FOREIGN_ENDIAN */
 }
 
-/* drivers/video/fbsysfs.c */
+/* drivers/video/fbdev/core/fbsysfs.c */
 extern struct fb_info *framebuffer_alloc(size_t size, struct device *dev);
 extern void framebuffer_release(struct fb_info *info);
 extern int fb_init_device(struct fb_info *fb_info);
 extern void fb_cleanup_device(struct fb_info *head);
 extern void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max);
 
-/* drivers/video/fbmon.c */
+/* drivers/video/fbdev/core/fbmon.c */
 #define FB_MAXTIMINGS		0
 #define FB_VSYNCTIMINGS		1
 #define FB_HSYNCTIMINGS		2
@@ -776,7 +776,7 @@ extern int of_get_fb_videomode(struct device_node *np,
 extern int fb_videomode_from_videomode(const struct videomode *vm,
 				       struct fb_videomode *fbmode);
 
-/* drivers/video/modedb.c */
+/* drivers/video/fbdev/core/modedb.c */
 #define VESA_MODEDB_SIZE 43
 #define DMT_SIZE 0x50
 
@@ -802,7 +802,7 @@ extern void fb_videomode_to_modelist(const struct fb_videomode *modedb, int num,
 extern const struct fb_videomode *fb_find_best_display(const struct fb_monspecs *specs,
 						       struct list_head *head);
 
-/* drivers/video/fbcmap.c */
+/* drivers/video/fbdev/core/fbcmap.c */
 extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp);
 extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags);
 extern void fb_dealloc_cmap(struct fb_cmap *cmap);

--
2.40.1

#1 lore raw

Hi

Am 29.08.23 um 22:02 schrieb Jonathan Neuschäfer:

Quoted 9 lines

The files fbmem.c, fb_defio.c, fbsysfs.c, fbmon.c, modedb.c, and fbcmap.c were moved to drivers/video/fbdev, and subsequently to drivers/video/fbdev/core, in the commits listed below.

Reported by kalekale in #kernel (Libera IRC).

Fixes f7018c213502 ("video: move fbdev to drivers/video/fbdev")
Fixes 19757fc8432a ("fbdev: move fbdev core files to separate directory")

IMHO these comments might just be removed.

Best regards
Thomas

Quoted 64 lines
---
  include/linux/fb.h | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)
include/linux/fb.h +6 -7
index ce7d588edc3e6..3cda5b9f2469b 100644
@@ -592,7 +592,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
  	__FB_DEFAULT_SYS_OPS_DRAW, \
  	__FB_DEFAULT_SYS_OPS_MMAP
 
-/* drivers/video/fbmem.c */
+/* drivers/video/fbdev/core/fbmem.c */
  extern int register_framebuffer(struct fb_info *fb_info);
  extern void unregister_framebuffer(struct fb_info *fb_info);
  extern int fb_prepare_logo(struct fb_info *fb_info, int rotate);
@@ -636,7 +636,7 @@ static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch,
  	}
  }
 
-/* drivers/video/fb_defio.c */
+/* drivers/video/fbdev/core/fb_defio.c */
  int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct *vma);
  extern int  fb_deferred_io_init(struct fb_info *info);
  extern void fb_deferred_io_open(struct fb_info *info,
@@ -735,14 +735,14 @@ static inline bool fb_be_math(struct fb_info *info)
  #endif /* CONFIG_FB_FOREIGN_ENDIAN */
  }
 
-/* drivers/video/fbsysfs.c */
+/* drivers/video/fbdev/core/fbsysfs.c */
  extern struct fb_info *framebuffer_alloc(size_t size, struct device *dev);
  extern void framebuffer_release(struct fb_info *info);
  extern int fb_init_device(struct fb_info *fb_info);
  extern void fb_cleanup_device(struct fb_info *head);
  extern void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max);
 
-/* drivers/video/fbmon.c */
+/* drivers/video/fbdev/core/fbmon.c */
  #define FB_MAXTIMINGS		0
  #define FB_VSYNCTIMINGS		1
  #define FB_HSYNCTIMINGS		2
@@ -776,7 +776,7 @@ extern int of_get_fb_videomode(struct device_node *np,
  extern int fb_videomode_from_videomode(const struct videomode *vm,
  				       struct fb_videomode *fbmode);
 
-/* drivers/video/modedb.c */
+/* drivers/video/fbdev/core/modedb.c */
  #define VESA_MODEDB_SIZE 43
  #define DMT_SIZE 0x50
 
@@ -802,7 +802,7 @@ extern void fb_videomode_to_modelist(const struct fb_videomode *modedb, int num,
  extern const struct fb_videomode *fb_find_best_display(const struct fb_monspecs *specs,
  						       struct list_head *head);
 
-/* drivers/video/fbcmap.c */
+/* drivers/video/fbdev/core/fbcmap.c */
  extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp);
  extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags);
  extern void fb_dealloc_cmap(struct fb_cmap *cmap);
--

2.40.1

Signature · 6 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)
#2 lore raw
Quoted 7 lines · Thomas Zimmermann

Hi

Am 29.08.23 um 22:02 schrieb Jonathan Neuschäfer:

Quoted 4 lines

The files fbmem.c, fb_defio.c, fbsysfs.c, fbmon.c, modedb.c, and fbcmap.c were moved to drivers/video/fbdev, and subsequently to drivers/video/fbdev/core, in the commits listed below.

Quoted 7 lines
Quoted 5 lines

Reported by kalekale in #kernel (Libera IRC).

Fixes f7018c213502 ("video: move fbdev to drivers/video/fbdev")
Fixes 19757fc8432a ("fbdev: move fbdev core files to separate directory")

IMHO these comments might just be removed.

I think it's nice to have some sort of visual separation between groups of functions in fb.h, which these comments provide at the moment. Therefore I'm currently leaning towards my patch as it is, but I'm willing to have my mind changed and do a v2 which just removes the comments.

Thanks

Quoted 21 lines

Best regards
Thomas

Quoted 17 lines
---
  include/linux/fb.h | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)
include/linux/fb.h +1 -1
index ce7d588edc3e6..3cda5b9f2469b 100644
@@ -592,7 +592,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
  	__FB_DEFAULT_SYS_OPS_DRAW, \
  	__FB_DEFAULT_SYS_OPS_MMAP
 
-/* drivers/video/fbmem.c */
+/* drivers/video/fbdev/core/fbmem.c */
  extern int register_framebuffer(struct fb_info *fb_info);
  extern void unregister_framebuffer(struct fb_info *fb_info);
  extern int fb_prepare_logo(struct fb_info *fb_info, int rotate);
#3 lore raw
Quoted 14 lines · Jonathan Neuschäfer
Quoted 13 lines · Thomas Zimmermann

Hi

Am 29.08.23 um 22:02 schrieb Jonathan Neuschäfer:

Quoted 9 lines

The files fbmem.c, fb_defio.c, fbsysfs.c, fbmon.c, modedb.c, and fbcmap.c were moved to drivers/video/fbdev, and subsequently to drivers/video/fbdev/core, in the commits listed below.

Reported by kalekale in #kernel (Libera IRC).

Fixes f7018c213502 ("video: move fbdev to drivers/video/fbdev")
Fixes 19757fc8432a ("fbdev: move fbdev core files to separate directory")
Quoted 7 lines
Quoted 1 line

IMHO these comments might just be removed.

I think it's nice to have some sort of visual separation between groups of functions in fb.h, which these comments provide at the moment. Therefore I'm currently leaning towards my patch as it is, but I'm willing to have my mind changed and do a v2 which just removes the comments.

Just the filename without the full path maybe? That's enough to find the right file, and it's also better at highlighting the actual important part of the comment since the path is very redundant.
-Sima

Quoted 25 lines

Thanks

Quoted 21 lines

Best regards
Thomas

Quoted 17 lines
---
  include/linux/fb.h | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)
include/linux/fb.h +1 -1
index ce7d588edc3e6..3cda5b9f2469b 100644
@@ -592,7 +592,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
  	__FB_DEFAULT_SYS_OPS_DRAW, \
  	__FB_DEFAULT_SYS_OPS_MMAP
 
-/* drivers/video/fbmem.c */
+/* drivers/video/fbdev/core/fbmem.c */
  extern int register_framebuffer(struct fb_info *fb_info);
  extern void unregister_framebuffer(struct fb_info *fb_info);
  extern int fb_prepare_logo(struct fb_info *fb_info, int rotate);
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
maintainer
#4 lore raw
Quoted 17 lines · Daniel Vetter
Quoted 16 lines · Jonathan Neuschäfer
Quoted 14 lines · Thomas Zimmermann

Hi

Am 29.08.23 um 22:02 schrieb Jonathan Neuschäfer:

Quoted 9 lines

The files fbmem.c, fb_defio.c, fbsysfs.c, fbmon.c, modedb.c, and fbcmap.c were moved to drivers/video/fbdev, and subsequently to drivers/video/fbdev/core, in the commits listed below.

Reported by kalekale in #kernel (Libera IRC).

Fixes f7018c213502 ("video: move fbdev to drivers/video/fbdev")
Fixes 19757fc8432a ("fbdev: move fbdev core files to separate directory")

IMHO these comments might just be removed.

Quoted 7 lines
Quoted 5 lines

I think it's nice to have some sort of visual separation between groups of functions in fb.h, which these comments provide at the moment. Therefore I'm currently leaning towards my patch as it is, but I'm willing to have my mind changed and do a v2 which just removes the comments.

Just the filename without the full path maybe?

Yes, I'd prefer that as well.

Helge

Quoted 33 lines

That's enough to find the
right file, and it's also better at highlighting the actual important part of the comment since the path is very redundant.
-Sima

Quoted 25 lines

Thanks

Quoted 21 lines

Best regards
Thomas

Quoted 17 lines
---
   include/linux/fb.h | 12 ++++++------
   1 file changed, 6 insertions(+), 6 deletions(-)
include/linux/fb.h +1 -1
index ce7d588edc3e6..3cda5b9f2469b 100644
@@ -592,7 +592,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
   	__FB_DEFAULT_SYS_OPS_DRAW, \
   	__FB_DEFAULT_SYS_OPS_MMAP
 
-/* drivers/video/fbmem.c */
+/* drivers/video/fbdev/core/fbmem.c */
   extern int register_framebuffer(struct fb_info *fb_info);
   extern void unregister_framebuffer(struct fb_info *fb_info);
   extern int fb_prepare_logo(struct fb_info *fb_info, int rotate);
maintainer
#5 lore raw
Quoted 24 lines · Helge Deller
Quoted 23 lines · Daniel Vetter
Quoted 21 lines · Jonathan Neuschäfer
Quoted 7 lines · Thomas Zimmermann

Hi

Am 29.08.23 um 22:02 schrieb Jonathan Neuschäfer:

Quoted 4 lines

The files fbmem.c, fb_defio.c, fbsysfs.c, fbmon.c, modedb.c, and fbcmap.c were moved to drivers/video/fbdev, and subsequently to drivers/video/fbdev/core, in the commits listed below.

Quoted 7 lines
Quoted 5 lines

Reported by kalekale in #kernel (Libera IRC).

Fixes f7018c213502 ("video: move fbdev to drivers/video/fbdev")
Fixes 19757fc8432a ("fbdev: move fbdev core files to separate directory")

IMHO these comments might just be removed.

I think it's nice to have some sort of visual separation between groups of functions in fb.h, which these comments provide at the moment. Therefore I'm currently leaning towards my patch as it is, but I'm willing to have my mind changed and do a v2 which just removes the comments.

Quoted 3 lines
Quoted 1 line

Just the filename without the full path maybe?

Yes, I'd prefer that as well.

I've manually changed it and applied the patch to the fbdev git tree.

Thanks!
Helge

#6 lore raw
Quoted 25 lines · Helge Deller
Quoted 24 lines · Helge Deller
Quoted 23 lines · Daniel Vetter
Quoted 21 lines · Jonathan Neuschäfer
Quoted 7 lines · Thomas Zimmermann

Hi

Am 29.08.23 um 22:02 schrieb Jonathan Neuschäfer:

Quoted 4 lines

The files fbmem.c, fb_defio.c, fbsysfs.c, fbmon.c, modedb.c, and fbcmap.c were moved to drivers/video/fbdev, and subsequently to drivers/video/fbdev/core, in the commits listed below.

Quoted 7 lines
Quoted 5 lines

Reported by kalekale in #kernel (Libera IRC).

Fixes f7018c213502 ("video: move fbdev to drivers/video/fbdev")
Fixes 19757fc8432a ("fbdev: move fbdev core files to separate directory")

IMHO these comments might just be removed.

I think it's nice to have some sort of visual separation between groups of functions in fb.h, which these comments provide at the moment. Therefore I'm currently leaning towards my patch as it is, but I'm willing to have my mind changed and do a v2 which just removes the comments.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Just the filename without the full path maybe?

Yes, I'd prefer that as well.

I've manually changed it and applied the patch to the fbdev git tree.

Thanks, everyone!

Jonathan