Skip to contentSkip to conversation

drm/msm: Use struct fb_info.screen_buffer

PATCH Applied Thomas Zimmermann 3 participants 4 messages May 22, 2023 – Jun 4, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: Use struct fb_info.screen_buffer

The fbdev framebuffer is in system memory. Store the address in the field 'screen_buffer'. Fixes the following sparse warning.

../drivers/gpu/drm/msm/msm_fbdev.c:124:26: warning: incorrect type in assignment (different address spaces)
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: expected char [noderef] __iomem *screen_base
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: got void *

---
 drivers/gpu/drm/msm/msm_fbdev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/msm/msm_fbdev.c +3 -3
index 2ebc86381e1c..ce0ba6d1979a 100644
@@ -121,9 +121,9 @@ static int msm_fbdev_create(struct drm_fb_helper *helper,
 
 	drm_fb_helper_fill_info(fbi, helper, sizes);
 
-	fbi->screen_base = msm_gem_get_vaddr(bo);
-	if (IS_ERR(fbi->screen_base)) {
-		ret = PTR_ERR(fbi->screen_base);
+	fbi->screen_buffer = msm_gem_get_vaddr(bo);
+	if (IS_ERR(fbi->screen_buffer)) {
+		ret = PTR_ERR(fbi->screen_buffer);
 		goto fail;
 	}
 	fbi->screen_size = bo->size;
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

Hello Thomas,

Quoted 10 lines · Thomas Zimmermann

The fbdev framebuffer is in system memory. Store the address in the field 'screen_buffer'. Fixes the following sparse warning.

../drivers/gpu/drm/msm/msm_fbdev.c:124:26: warning: incorrect type in assignment (different address spaces)
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: expected char [noderef] __iomem *screen_base
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: got void *

---

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Zimmermann
Quoted 8 lines · Thomas Zimmermann

The fbdev framebuffer is in system memory. Store the address in the field 'screen_buffer'. Fixes the following sparse warning.

../drivers/gpu/drm/msm/msm_fbdev.c:124:26: warning: incorrect type in assignment (different address spaces)
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: expected char [noderef] __iomem *screen_base
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: got void *

Signature · 2 lines
With best wishes
Dmitry
#3 lore raw
In reply to Thomas Zimmermann
Quoted 8 lines · Thomas Zimmermann

The fbdev framebuffer is in system memory. Store the address in the field 'screen_buffer'. Fixes the following sparse warning.

../drivers/gpu/drm/msm/msm_fbdev.c:124:26: warning: incorrect type in assignment (different address spaces)
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: expected char [noderef] __iomem *screen_base
../drivers/gpu/drm/msm/msm_fbdev.c:124:26: got void *

[...]

Applied, thanks!

[1/1] drm/msm: Use struct fb_info.screen_buffer

      https://gitlab.freedesktop.org/lumag/msm/-/commit/4fb5ad612c5c

Best regards,

Signature · 1 line
Dmitry Baryshkov <[email protected]>