From 504df062f3b7c7dc91e9efc483eb59cd54aa9c99 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Thu, 9 Mar 2017 15:25:00 +0100 Subject: [PATCH 3/4] x86: asm/bitops.h Replace void * cast with uintptr_t to do pointer arithmetic's --- arch/x86/include/asm/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/bitops.h b/arch/x86/include/asm/bitops.h index 8540227..b561304 100644 --- a/arch/x86/include/asm/bitops.h +++ b/arch/x86/include/asm/bitops.h @@ -50,7 +50,7 @@ * a mask operation on a byte. */ #define IS_IMMEDIATE(nr) (__builtin_constant_p(nr)) -#define CONST_MASK_ADDR(nr, addr) BITOP_ADDR((void *)(addr) + ((nr)>>3)) +#define CONST_MASK_ADDR(nr, addr) BITOP_ADDR((uintptr_t)(addr) + ((nr)>>3)) #define CONST_MASK(nr) (1 << ((nr) & 7)) /** -- 2.10.2