Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758080AbcCVAbW (ORCPT ); Mon, 21 Mar 2016 20:31:22 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:34335 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751143AbcCVAbU (ORCPT ); Mon, 21 Mar 2016 20:31:20 -0400 Date: Mon, 21 Mar 2016 17:31:17 -0700 From: Brian Norris To: Jon Mason Cc: Allen Hubbe , Dave Jiang , linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ntb: test: fix pointer size warning Message-ID: <20160322003117.GA15424@google.com> References: <1458321080-42873-1-git-send-email-computersforpeace@gmail.com> <20160321235237.GA17910@kudzu.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160321235237.GA17910@kudzu.us> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 19 On Mon, Mar 21, 2016 at 07:52:38PM -0400, Jon Mason wrote: > On Fri, Mar 18, 2016 at 10:11:20AM -0700, Brian Norris wrote: > > drivers/ntb/test/ntb_perf.c: In function ‘perf_copy’: > > drivers/ntb/test/ntb_perf.c:213:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] > > drivers/ntb/test/ntb_perf.c:214:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] > > > > On 32-bit systems, we are casting a 32-bit pointer to a 64-bit value. > > This shouldn't cause functional problems, but we might as well fix the > > warning and allow 32-bit arithmetic for 32-bit systems. > > This was already addressed by a patch from Arnd Bergmann, which is > queued in the ntb git tree. Great! Is your ntb tree in linux-next.git? Regards, Brian