From: Heiner Kallweit Date: Mon, 19 Aug 2019 19:34:47 +0000 (+0200) Subject: x86/irq: Improve definition of VECTOR_SHUTDOWN et al X-Git-Tag: v5.4-rc1~162^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e30c44e2e59c98023997632815cbc5e273991c25;p=thirdparty%2Flinux.git 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 Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/146835e8-c086-4e85-7ece-bcba6795e6db@gmail.com --- diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index cbd97e22d2f31..4154bc5f6a4ed 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -153,8 +153,8 @@ extern char irq_entries_start[]; extern char spurious_entries_start[]; #define VECTOR_UNUSED NULL -#define VECTOR_SHUTDOWN ((void *)~0UL) -#define VECTOR_RETRIGGERED ((void *)~1UL) +#define VECTOR_SHUTDOWN ((void *)-1L) +#define VECTOR_RETRIGGERED ((void *)-2L) typedef struct irq_desc* vector_irq_t[NR_VECTORS]; DECLARE_PER_CPU(vector_irq_t, vector_irq);