projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2858f85
)
arch/tile: fix pointer cast in cacheflush.c
author
Chris Metcalf
<cmetcalf@tilera.com>
Thu, 29 Mar 2012 20:14:40 +0000
(16:14 -0400)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Mon, 2 Apr 2012 16:13:39 +0000
(12:13 -0400)
Pragmatically it couldn't be wrong to cast pointers to long to compare
them (since all kernel addresses are in the top half of VA space),
but it's more correct to cast to unsigned long.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/lib/cacheflush.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/tile/lib/cacheflush.c
b/arch/tile/lib/cacheflush.c
index 8928aace7a641d8a2b7be866f88deefb4f5f9a1e..6af2b97a68862c1bc57e4c1064f2e52c43f36bd5 100644
(file)
--- a/
arch/tile/lib/cacheflush.c
+++ b/
arch/tile/lib/cacheflush.c
@@
-109,7
+109,7
@@
void finv_buffer_remote(void *buffer, size_t size, int hfh)
/* Figure out how far back we need to go. */
base = p - (step_size * (load_count - 2));
- if ((
long)base < (
long)buffer)
+ if ((
unsigned long)base < (unsigned
long)buffer)
base = buffer;
/*