mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] x86: asm/bitops.h
@ 2017-03-16 19:07 Joakim Tjernlund
  2017-03-16 19:07 ` [PATCH 2/2] x86: Match bitops prototypes Joakim Tjernlund
  2017-03-16 19:48 ` [PATCH 1/2] x86: asm/bitops.h Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Joakim Tjernlund @ 2017-03-16 19:07 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel; +Cc: Joakim Tjernlund, stable

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-16 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 19:07 [PATCH 1/2] x86: asm/bitops.h Joakim Tjernlund
2017-03-16 19:07 ` [PATCH 2/2] x86: Match bitops prototypes Joakim Tjernlund
2017-03-16 19:48   ` Andrew Morton
2017-03-16 19:48 ` [PATCH 1/2] x86: asm/bitops.h Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®