Commit 9db71a188bd04114c04b1faa6538f1c4faa0a9a7

Authored by Geert Uytterhoeven
Committed by Linus Torvalds
1 parent bfeeffbb4f

fbdev: Move declaration of fb_class to <linux/fb.h>

Move the forward declaration of fb_class from drivers/video/console/fbcon.h to
<linux/fb.h>, together with the other forward declarations related to
drivers/video/fbmem.c.

This kills the following sparse warning:
| drivers/video/fbmem.c:1363:14: warning: symbol 'fb_class' was not declared. Should it be static?

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 1 additions and 1 deletions Side-by-side Diff

drivers/video/console/fbcon.h
... ... @@ -176,7 +176,6 @@
176 176 #endif
177 177 extern void fbcon_set_bitops(struct fbcon_ops *ops);
178 178 extern int soft_cursor(struct fb_info *info, struct fb_cursor *cursor);
179   -extern struct class *fb_class;
180 179  
181 180 #define FBCON_ATTRIBUTE_UNDERLINE 1
182 181 #define FBCON_ATTRIBUTE_REVERSE 2
... ... @@ -942,6 +942,7 @@
942 942  
943 943 extern struct fb_info *registered_fb[FB_MAX];
944 944 extern int num_registered_fb;
  945 +extern struct class *fb_class;
945 946  
946 947 static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch,
947 948 u8 *src, u32 s_pitch, u32 height)