diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-29 16:14:40 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-02 12:13:39 -0400 |
commit | 918cbd38aef83de3a2516299bcb230caf59462a0 (patch) | |
tree | 8e76f5dae1bc2bad5052112d5dd7961151d5d492 /arch/tile/lib | |
parent | 2858f856021340f3730fa8639dd520a2e4331f7f (diff) | |
download | linux-918cbd38aef83de3a2516299bcb230caf59462a0.tar.gz linux-918cbd38aef83de3a2516299bcb230caf59462a0.tar.bz2 linux-918cbd38aef83de3a2516299bcb230caf59462a0.zip |
arch/tile: fix pointer cast in cacheflush.c
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>
Diffstat (limited to 'arch/tile/lib')
-rw-r--r-- | arch/tile/lib/cacheflush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/lib/cacheflush.c b/arch/tile/lib/cacheflush.c index 8928aace7a64..6af2b97a6886 100644 --- 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; /* |