Skip to contentSkip to conversation

drivers: staging: fbtft: fbtft-core.c: Fix different address space warning

PATCH In review Tolga Ceylan 2 participants 2 messages May 13, 2015

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

PATCH 1/1 drivers: staging: fbtft: fbtft-core.c: Fix different address space warning

To fix sparse warning of incorrect type when calling vfree() (different address space), added annotation __force.

---
 drivers/staging/fbtft/fbtft-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fbtft-core.c +1 -1
index ce64521..931f338 100644
@@ -920,7 +920,7 @@ EXPORT_SYMBOL(fbtft_framebuffer_alloc);
 void fbtft_framebuffer_release(struct fb_info *info)
 {
 	fb_deferred_io_cleanup(info);
-	vfree(info->screen_base);
+	vfree((void __force *)info->screen_base);
 	framebuffer_release(info);
 }
 EXPORT_SYMBOL(fbtft_framebuffer_release);
Signature · 1 line
2.4.0
#1 lore raw
Quoted 2 lines · Tolga Ceylan

To fix sparse warning of incorrect type when calling vfree() (different address space), added annotation __force.

Garret Kelly posted a similar patch before, please see the discussion about that patch at https://lkml.org/lkml/2015/4/16/452

regards
sudip