diff options
author | Matt Redfearn <matt.redfearn@imgtec.com> | 2016-09-07 05:45:09 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-10-04 10:13:57 -0400 |
commit | 6b89d22e742aa3fbb1878c2e6684b0bfd591f7c8 (patch) | |
tree | 178eb0fc1bff1ea7efc206dbb80c1f3b1acfc827 /arch/mips/kernel/mips-cpc.c | |
parent | e6e5b7b6d0de7e2c25b45fc7a0c914ed6aa1d5e8 (diff) |
MIPS: CPC: Convert bare 'unsigned' to 'unsigned int'
Checkpatch complains about use of bare unsigned type.
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Reviewed-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14217/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/mips-cpc.c')
-rw-r--r-- | arch/mips/kernel/mips-cpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/mips-cpc.c b/arch/mips/kernel/mips-cpc.c index 566b8d2c092c..0e337f55ac60 100644 --- a/arch/mips/kernel/mips-cpc.c +++ b/arch/mips/kernel/mips-cpc.c | |||
@@ -52,7 +52,7 @@ static phys_addr_t mips_cpc_phys_base(void) | |||
52 | int mips_cpc_probe(void) | 52 | int mips_cpc_probe(void) |
53 | { | 53 | { |
54 | phys_addr_t addr; | 54 | phys_addr_t addr; |
55 | unsigned cpu; | 55 | unsigned int cpu; |
56 | 56 | ||
57 | for_each_possible_cpu(cpu) | 57 | for_each_possible_cpu(cpu) |
58 | spin_lock_init(&per_cpu(cpc_core_lock, cpu)); | 58 | spin_lock_init(&per_cpu(cpc_core_lock, cpu)); |
@@ -70,7 +70,7 @@ int mips_cpc_probe(void) | |||
70 | 70 | ||
71 | void mips_cpc_lock_other(unsigned int core) | 71 | void mips_cpc_lock_other(unsigned int core) |
72 | { | 72 | { |
73 | unsigned curr_core; | 73 | unsigned int curr_core; |
74 | preempt_disable(); | 74 | preempt_disable(); |
75 | curr_core = current_cpu_data.core; | 75 | curr_core = current_cpu_data.core; |
76 | spin_lock_irqsave(&per_cpu(cpc_core_lock, curr_core), | 76 | spin_lock_irqsave(&per_cpu(cpc_core_lock, curr_core), |
@@ -86,7 +86,7 @@ void mips_cpc_lock_other(unsigned int core) | |||
86 | 86 | ||
87 | void mips_cpc_unlock_other(void) | 87 | void mips_cpc_unlock_other(void) |
88 | { | 88 | { |
89 | unsigned curr_core = current_cpu_data.core; | 89 | unsigned int curr_core = current_cpu_data.core; |
90 | spin_unlock_irqrestore(&per_cpu(cpc_core_lock, curr_core), | 90 | spin_unlock_irqrestore(&per_cpu(cpc_core_lock, curr_core), |
91 | per_cpu(cpc_core_lock_flags, curr_core)); | 91 | per_cpu(cpc_core_lock_flags, curr_core)); |
92 | preempt_enable(); | 92 | preempt_enable(); |