Skip to content

Commit 17a7b0b

Browse files
Lars Svenssongregkh
authored andcommitted
fb.h: Provide alternate screen_base pointer
Some drivers use member screen_base of struct fb_info to store non- __iomem pointers, creating the need for ugly __force typecasts to avoid sparse warnings. This adds an alternate pointer without the __iomem qualifyer for this use. Signed-off-by: Lars Svensson <lars1.svensson@sonymobile.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e9f6806 commit 17a7b0b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎include/linux/fb.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,10 @@ struct fb_info {
483483
#ifdef CONFIG_FB_TILEBLITTING
484484
struct fb_tile_ops *tileops; /* Tile Blitting */
485485
#endif
486-
char __iomem *screen_base; /* Virtual address */
486+
union {
487+
char __iomem *screen_base; /* Virtual address */
488+
char *screen_buffer;
489+
};
487490
unsigned long screen_size; /* Amount of ioremapped VRAM or 0 */
488491
void *pseudo_palette; /* Fake palette of 16 colors */
489492
#define FBINFO_STATE_RUNNING 0

0 commit comments

Comments
 (0)