From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bruce Fields" Subject: Re: [PATCH] svcrdma: Fix compile warning on 32b platforms Date: Sun, 25 May 2008 15:01:12 -0400 Message-ID: <20080525190112.GC8094@fieldses.org> References: <1211557193.4114.21.camel@trinity.ogc.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , linux-nfs To: Tom Tucker Return-path: Received: from mail.fieldses.org ([66.93.2.214]:50506 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757930AbYEYTBP (ORCPT ); Sun, 25 May 2008 15:01:15 -0400 In-Reply-To: <1211557193.4114.21.camel-SMNkleLxa3ZimH42XvhXlA@public.gmane.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Fri, May 23, 2008 at 10:39:53AM -0500, Tom Tucker wrote: > The ib_sge is used to store both dma_addr_t and virtual addresses. > This causes a warning on 32b platforms when casting ptrs to the > u64 addr field of the ib_sge. There is work underway to reduce the > memory footprint of the WR context in 2.6.27 the time frame that will > remove the overloading of the ib_sge.addr field. Naively, this and "svcrdma: Refactor RDMA_WRITE dma mapping logic" still look like a step in the wrong direction; the old code seemed to have a much more clear separation between kernel addresses (void *'s) and on-the-wire addresses (stored in u64's). Stuff like: > + (void*)(unsigned long) > + sge[i].addr, sge[i].length, makes me nervous. --b.