diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-12-18 09:38:00 -0500 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-01-08 02:37:16 -0500 |
commit | 2558cd8cab793e9c8c3b17bdf06552bfb98d49e5 (patch) | |
tree | 26271280bd026e85811fbb749433d058f77aaf4c | |
parent | bdb96e3cad21f5973c95f0e6687db4a57eff7c53 (diff) |
microblaze: Use unsigned type for limit comparison in cache.c
The patch removes warnings:
arch/microblaze/kernel/cpu/cache.c:146:14: warning: comparison of
unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | arch/microblaze/kernel/cpu/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/microblaze/kernel/cpu/cache.c b/arch/microblaze/kernel/cpu/cache.c index a6e44410672d..0bde47e4fa69 100644 --- a/arch/microblaze/kernel/cpu/cache.c +++ b/arch/microblaze/kernel/cpu/cache.c | |||
@@ -140,10 +140,10 @@ do { \ | |||
140 | /* It is used only first parameter for OP - for wic, wdc */ | 140 | /* It is used only first parameter for OP - for wic, wdc */ |
141 | #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ | 141 | #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ |
142 | do { \ | 142 | do { \ |
143 | int volatile temp = 0; \ | 143 | unsigned int volatile temp = 0; \ |
144 | int align = ~(line_length - 1); \ | 144 | unsigned int align = ~(line_length - 1); \ |
145 | end = ((end & align) == end) ? end - line_length : end & align; \ | 145 | end = ((end & align) == end) ? end - line_length : end & align; \ |
146 | WARN_ON(end - start < 0); \ | 146 | WARN_ON(end < start); \ |
147 | \ | 147 | \ |
148 | __asm__ __volatile__ (" 1: " #op " %1, r0;" \ | 148 | __asm__ __volatile__ (" 1: " #op " %1, r0;" \ |
149 | "cmpu %0, %1, %2;" \ | 149 | "cmpu %0, %1, %2;" \ |