Skip to content

Commit e30c44e

Browse files
hkallweitKAGA-KOKO
authored andcommitted
x86/irq: Improve definition of VECTOR_SHUTDOWN et al
These values are used with IS_ERR(), so it's more intuitive to define them like a standard PTR_ERR() of a negative errno. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent d1abaeb commit e30c44e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/include/asm/hw_irq.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ extern char irq_entries_start[];
153153
extern char spurious_entries_start[];
154154

155155
#define VECTOR_UNUSED NULL
156-
#define VECTOR_SHUTDOWN ((void *)~0UL)
157-
#define VECTOR_RETRIGGERED ((void *)~1UL)
156+
#define VECTOR_SHUTDOWN ((void *)-1L)
157+
#define VECTOR_RETRIGGERED ((void *)-2L)
158158

159159
typedef struct irq_desc* vector_irq_t[NR_VECTORS];
160160
DECLARE_PER_CPU(vector_irq_t, vector_irq);

0 commit comments

Comments
 (0)