* [PATCH 1/1] drivers: staging: fbtft: fbtft-core.c: Fix different address space warning
@ 2015-05-13 1:57 Tolga Ceylan
2015-05-13 4:57 ` Sudip Mukherjee
0 siblings, 1 reply; 2+ messages in thread
From: Tolga Ceylan @ 2015-05-13 1:57 UTC (permalink / raw)
To: Thomas Petazzoni, Noralf Trønnes, Greg Kroah-Hartman, devel,
linux-kernel
Cc: Tolga Ceylan
To fix sparse warning of incorrect type when calling vfree()
(different address space), added annotation __force.
Signed-off-by: Tolga Ceylan <tolga.ceylan@gmail.com>
---
drivers/staging/fbtft/fbtft-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index ce64521..931f338 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -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);
--
2.4.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] drivers: staging: fbtft: fbtft-core.c: Fix different address space warning
2015-05-13 1:57 [PATCH 1/1] drivers: staging: fbtft: fbtft-core.c: Fix different address space warning Tolga Ceylan
@ 2015-05-13 4:57 ` Sudip Mukherjee
0 siblings, 0 replies; 2+ messages in thread
From: Sudip Mukherjee @ 2015-05-13 4:57 UTC (permalink / raw)
To: Tolga Ceylan
Cc: Thomas Petazzoni, Noralf Trønnes, Greg Kroah-Hartman, devel,
linux-kernel
On Tue, May 12, 2015 at 06:57:46PM -0700, Tolga Ceylan wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-13 4:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13 1:57 [PATCH 1/1] drivers: staging: fbtft: fbtft-core.c: Fix different address space warning Tolga Ceylan
2015-05-13 4:57 ` Sudip Mukherjee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®