]> Git Repo - linux.git/commitdiff
x86/irq: Clean up VECTOR_UNDEFINED and VECTOR_RETRIGGERED definition
authorPrarit Bhargava <[email protected]>
Wed, 2 Apr 2014 12:13:47 +0000 (08:13 -0400)
committerIngo Molnar <[email protected]>
Mon, 14 Apr 2014 11:42:05 +0000 (13:42 +0200)
During another patch review, David Rientjes noted that
VECTOR_UNDEFINED and VECTOR_RETRIGGERED should be defined with ()s
so that they are not erroneously used in an arithmetic operation.

Suggested-by: David Rientjes <[email protected]>
Signed-off-by: Prarit Bhargava <[email protected]>
Cc: Seiji Aguchi <[email protected]>
Cc: Yang Zhang <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/hw_irq.h

index a307b7530e540fd2b4fa517918a48d4d806a85a7..4615906d83df5b9b606f2f83f9d2f6a90590a297 100644 (file)
@@ -190,8 +190,8 @@ extern void (*__initconst interrupt[NR_VECTORS-FIRST_EXTERNAL_VECTOR])(void);
 #define trace_interrupt interrupt
 #endif
 
-#define VECTOR_UNDEFINED       -1
-#define VECTOR_RETRIGGERED     -2
+#define VECTOR_UNDEFINED       (-1)
+#define VECTOR_RETRIGGERED     (-2)
 
 typedef int vector_irq_t[NR_VECTORS];
 DECLARE_PER_CPU(vector_irq_t, vector_irq);
This page took 0.055675 seconds and 4 git commands to generate.