* Fix build failure in mips oprofile code
@ 2008-05-06 10:23 Thiemo Seufer
2008-05-06 21:29 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Thiemo Seufer @ 2008-05-06 10:23 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
This patch fixes a warning-as-error induced build failure of
64bit mips kernels.
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Index: linux.git/arch/mips/oprofile/op_model_mipsxx.c
===================================================================
--- linux.git.orig/arch/mips/oprofile/op_model_mipsxx.c 2008-05-06 11:06:07.000000000 +0100
+++ linux.git/arch/mips/oprofile/op_model_mipsxx.c 2008-05-06 11:15:32.000000000 +0100
@@ -281,7 +281,7 @@
static void reset_counters(void *arg)
{
- int counters = (int)arg;
+ int counters = (int)(long)arg;
switch (counters) {
case 4:
w_c0_perfctrl3(0);
@@ -313,7 +313,7 @@
if (!cpu_has_mipsmt_pertccounters)
counters = counters_total_to_per_cpu(counters);
#endif
- on_each_cpu(reset_counters, (void *)counters, 0, 1);
+ on_each_cpu(reset_counters, (void *)(long)counters, 0, 1);
op_model_mipsxx_ops.num_counters = counters;
switch (current_cpu_type()) {
@@ -382,7 +382,7 @@
int counters = op_model_mipsxx_ops.num_counters;
counters = counters_per_cpu_to_total(counters);
- on_each_cpu(reset_counters, (void *)counters, 0, 1);
+ on_each_cpu(reset_counters, (void *)(long)counters, 0, 1);
perf_irq = save_perf_irq;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix build failure in mips oprofile code
2008-05-06 10:23 Fix build failure in mips oprofile code Thiemo Seufer
@ 2008-05-06 21:29 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-05-06 21:29 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: linux-mips
On Tue, May 06, 2008 at 11:23:33AM +0100, Thiemo Seufer wrote:
Thanks, applied
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-06 21:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 10:23 Fix build failure in mips oprofile code Thiemo Seufer
2008-05-06 21:29 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox