Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1602791
| From | Joakim Tjernlund <joakim.tjernlund@infinera.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] x86: asm/bitops.h |
| Date | 2017-03-16 20:20 +0100 |
| Message-ID | <tlJ6h-2QJ-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Replace void * cast with uintptr_t to do pointer arithmetic's Cc: <stable@vger.kernel.org> # v4.9+ Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com> --- 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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] x86: asm/bitops.h Joakim Tjernlund <joakim.tjernlund@infinera.com> - 2017-03-16 20:20 +0100 Re: [PATCH 1/2] x86: asm/bitops.h Andrew Morton <akpm@linux-foundation.org> - 2017-03-16 20:50 +0100
csiph-web