patch-2.3.44 linux/include/asm-sparc64/hardirq.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/asm-sparc64/asm_offsets.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.43/linux/include/asm-sparc64/hardirq.h linux/include/asm-sparc64/hardirq.h
@@ -25,11 +25,11 @@
 
 #ifndef __SMP__
 
-#define hardirq_trylock(cpu)	(local_irq_count == 0)
-#define hardirq_endlock(cpu)	do { } while(0)
+#define hardirq_trylock(cpu)	((void)(cpu), local_irq_count == 0)
+#define hardirq_endlock(cpu)	do { (void)(cpu); } while(0)
 
-#define hardirq_enter(cpu)	(local_irq_count++)
-#define hardirq_exit(cpu)	(local_irq_count--)
+#define hardirq_enter(cpu)	((void)(cpu), local_irq_count++)
+#define hardirq_exit(cpu)	((void)(cpu), local_irq_count--)
 
 #define synchronize_irq()	barrier()
 
@@ -73,7 +73,7 @@
 		! spin_is_locked (&global_irq_lock));
 }
 
-#define hardirq_endlock(cpu)	do { } while (0)
+#define hardirq_endlock(cpu)	do { (void)(cpu); } while (0)
 
 extern void synchronize_irq(void);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)