The sparse tool complains that the "cast removes the address space
'__iomem' of expression".
Avoid the cast by using the screen_buffer pointer instead of the
screen_base pointer from the union.

Fixes: d463633d63e6 ("fbdev: atafb: Add support for SuperVidel's SuperBlitter")
Reported-by: kernel test robot <[email protected]>
Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/
Cc: Miro Kropáček <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
---
 drivers/video/fbdev/atafb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/atafb.c b/drivers/video/fbdev/atafb.c
index 5c3e5861543a..c32576cb1720 100644
--- a/drivers/video/fbdev/atafb.c
+++ b/drivers/video/fbdev/atafb.c
@@ -2454,7 +2454,7 @@ static void svblit_fillrect(struct fb_info *info,
                ((u32 *)info->pseudo_palette)[rect->color] : rect->color;
 
        /* draw the first line with the CPU ... */
-       line = (u8 *)info->screen_base + rect->dy * pitch +
+       line = info->screen_buffer + rect->dy * pitch +
               rect->dx * bytespp;
        switch (bytespp) {
        case 1:
-- 
2.55.0

Reply via email to