Skip to contentSkip to conversation

2.5.65 fix jiffies compile warning in alpha/kernel/smp.c

PATCH New T. Weyergraf 1 participant 1 message Mar 23, 2003 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.65 fix jiffies compile warning in alpha/kernel/smp.c

Fix more annoying compile problems due to wrong types for comparing jiffies. This patch applies to alpha arch.

Regards,
Thomas Weyergraf

arch/alpha/kernel/smp.c +4 -4
diff -p1 -urN linux-2.5.65/arch/alpha/kernel/smp.c linux-2.5.65-kirk1/arch/alpha/kernel/smp.c
@@ -114,3 +114,3 @@ wait_boot_cpu_to_stop(int cpuid)
 {
-	long stop = jiffies + 10*HZ;
+	unsigned long stop = jiffies + 10*HZ;
 
@@ -351,3 +351,3 @@ secondary_cpu_start(int cpuid, struct ta
 	struct pcb_struct *hwpcb, *ipcb;
-	long timeout;
+	unsigned long timeout;
 	  
@@ -430,3 +430,3 @@ smp_boot_one_cpu(int cpuid)
 	struct task_struct *idle;
-	long timeout;
+	unsigned long timeout;
 
@@ -818,3 +818,3 @@ smp_call_function_on_cpu (void (*func) (
 	struct smp_call_struct data;
-	long timeout;
+	unsigned long timeout;
 	int num_cpus_to_call;
Signature · 3 lines
Thomas Weyergraf                                                [email protected]
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.