lkml.org 
[lkml]   [2019]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 1/3] x86/irq: improve definition of VECTOR_SHUTDOWN et al
    From
    Date
    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 <hkallweit1@gmail.com>
    ---
    arch/x86/include/asm/hw_irq.h | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h
    index cbd97e22d..4154bc5f6 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);
    --
    2.22.0

    \
     
     \ /
      Last update: 2019-08-04 10:22    [W:5.252 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site