aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Quinlan <jim2101024@gmail.com>2012-09-06 11:36:54 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-11-09 04:58:50 -0500
commit9de79c500600c5868e83712a2ea5b0b48f83af24 (patch)
tree8e8de0d640f65157415b155e9821369d92745d71
parent34d875d7b579baab2f2f6dfd8e8533602d9dbf33 (diff)
MIPS: bitops.h: Change use of 'unsigned short' to 'int'
[ralf@linux-mips.org: No functional change but it's consistent with how use types elsewhere in the code.] Signed-off-by: Jim Quinlan <jim2101024@gmail.com> Cc: linux-mips@linux-mips.org Cc: David Daney <ddaney.cavm@gmail.com> Cc: Kevin Cernekee cernekee@gmail.com Cc: Jim Quinlan <jim2101024@gmail.com> Patchwork: https://patchwork.linux-mips.org/patch/4319/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/include/asm/bitops.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h
index 82ad35ce2b45..455664cf5352 100644
--- a/arch/mips/include/asm/bitops.h
+++ b/arch/mips/include/asm/bitops.h
@@ -57,7 +57,7 @@
57static inline void set_bit(unsigned long nr, volatile unsigned long *addr) 57static inline void set_bit(unsigned long nr, volatile unsigned long *addr)
58{ 58{
59 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); 59 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
60 unsigned short bit = nr & SZLONG_MASK; 60 int bit = nr & SZLONG_MASK;
61 unsigned long temp; 61 unsigned long temp;
62 62
63 if (kernel_uses_llsc && R10000_LLSC_WAR) { 63 if (kernel_uses_llsc && R10000_LLSC_WAR) {
@@ -118,7 +118,7 @@ static inline void set_bit(unsigned long nr, volatile unsigned long *addr)
118static inline void clear_bit(unsigned long nr, volatile unsigned long *addr) 118static inline void clear_bit(unsigned long nr, volatile unsigned long *addr)
119{ 119{
120 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); 120 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
121 unsigned short bit = nr & SZLONG_MASK; 121 int bit = nr & SZLONG_MASK;
122 unsigned long temp; 122 unsigned long temp;
123 123
124 if (kernel_uses_llsc && R10000_LLSC_WAR) { 124 if (kernel_uses_llsc && R10000_LLSC_WAR) {
@@ -191,7 +191,7 @@ static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *ad
191 */ 191 */
192static inline void change_bit(unsigned long nr, volatile unsigned long *addr) 192static inline void change_bit(unsigned long nr, volatile unsigned long *addr)
193{ 193{
194 unsigned short bit = nr & SZLONG_MASK; 194 int bit = nr & SZLONG_MASK;
195 195
196 if (kernel_uses_llsc && R10000_LLSC_WAR) { 196 if (kernel_uses_llsc && R10000_LLSC_WAR) {
197 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); 197 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
@@ -244,7 +244,7 @@ static inline void change_bit(unsigned long nr, volatile unsigned long *addr)
244static inline int test_and_set_bit(unsigned long nr, 244static inline int test_and_set_bit(unsigned long nr,
245 volatile unsigned long *addr) 245 volatile unsigned long *addr)
246{ 246{
247 unsigned short bit = nr & SZLONG_MASK; 247 int bit = nr & SZLONG_MASK;
248 unsigned long res; 248 unsigned long res;
249 249
250 smp_mb__before_llsc(); 250 smp_mb__before_llsc();
@@ -310,7 +310,7 @@ static inline int test_and_set_bit(unsigned long nr,
310static inline int test_and_set_bit_lock(unsigned long nr, 310static inline int test_and_set_bit_lock(unsigned long nr,
311 volatile unsigned long *addr) 311 volatile unsigned long *addr)
312{ 312{
313 unsigned short bit = nr & SZLONG_MASK; 313 int bit = nr & SZLONG_MASK;
314 unsigned long res; 314 unsigned long res;
315 315
316 if (kernel_uses_llsc && R10000_LLSC_WAR) { 316 if (kernel_uses_llsc && R10000_LLSC_WAR) {
@@ -373,7 +373,7 @@ static inline int test_and_set_bit_lock(unsigned long nr,
373static inline int test_and_clear_bit(unsigned long nr, 373static inline int test_and_clear_bit(unsigned long nr,
374 volatile unsigned long *addr) 374 volatile unsigned long *addr)
375{ 375{
376 unsigned short bit = nr & SZLONG_MASK; 376 int bit = nr & SZLONG_MASK;
377 unsigned long res; 377 unsigned long res;
378 378
379 smp_mb__before_llsc(); 379 smp_mb__before_llsc();
@@ -457,7 +457,7 @@ static inline int test_and_clear_bit(unsigned long nr,
457static inline int test_and_change_bit(unsigned long nr, 457static inline int test_and_change_bit(unsigned long nr,
458 volatile unsigned long *addr) 458 volatile unsigned long *addr)
459{ 459{
460 unsigned short bit = nr & SZLONG_MASK; 460 int bit = nr & SZLONG_MASK;
461 unsigned long res; 461 unsigned long res;
462 462
463 smp_mb__before_llsc(); 463 smp_mb__before_llsc();