Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753881AbdCPTPg (ORCPT ); Thu, 16 Mar 2017 15:15:36 -0400 Received: from smtp.transmode.se ([31.15.61.139]:64155 "EHLO smtp.transmode.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752498AbdCPTPf (ORCPT ); Thu, 16 Mar 2017 15:15:35 -0400 X-Greylist: delayed 500 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Mar 2017 15:15:34 EDT From: Joakim Tjernlund To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Joakim Tjernlund , stable@vger.kernel.org#v4.9+ Subject: [PATCH 1/2] x86: asm/bitops.h Date: Thu, 16 Mar 2017 20:07:08 +0100 Message-Id: <20170316190709.20364-1-joakim.tjernlund@infinera.com> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 753 Lines: 23 Replace void * cast with uintptr_t to do pointer arithmetic's Cc: # v4.9+ Signed-off-by: Joakim Tjernlund --- 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