projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7015bb5
)
video: fbdev: i740fb: use memset_io() to clear screen
author
Ondrej Zary
<linux@zary.sk>
Sun, 10 Apr 2022 20:28:33 +0000
(22:28 +0200)
committer
Helge Deller
<deller@gmx.de>
Mon, 11 Apr 2022 06:23:50 +0000
(08:23 +0200)
sparse complains that using memset() on __iomem pointer is wrong:
incorrect type in argument 1 (different address spaces)
Use memset_io() to clear screen instead.
Tested on real i740 cards.
Signed-off-by: Ondrej Zary <linux@zary.sk>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/i740fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/i740fb.c
b/drivers/video/fbdev/i740fb.c
index
52cce0d
..
dd45ea8
100644
(file)
--- a/
drivers/video/fbdev/i740fb.c
+++ b/
drivers/video/fbdev/i740fb.c
@@
-740,7
+740,7
@@
static int i740fb_set_par(struct fb_info *info)
if (i)
return i;
- memset(info->screen_base, 0, info->screen_size);
+ memset
_io
(info->screen_base, 0, info->screen_size);
vga_protect(par);