Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750741AbWEKT1q (ORCPT ); Thu, 11 May 2006 15:27:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750735AbWEKT1q (ORCPT ); Thu, 11 May 2006 15:27:46 -0400 Received: from electric-eye.fr.zoreil.com ([213.41.134.224]:21670 "EHLO fr.zoreil.com") by vger.kernel.org with ESMTP id S1750734AbWEKT1p (ORCPT ); Thu, 11 May 2006 15:27:45 -0400 Date: Thu, 11 May 2006 21:23:52 +0200 From: Francois Romieu Cc: Daniel Walker , akpm@osdl.org, edward_peng@dlink.com.tw, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dl2k: use explicit DMA_48BIT_MASK Message-ID: <20060511192352.GA18200@electric-eye.fr.zoreil.com> References: <200605101812.k4AICpRo006555@dwalker1.mvista.com> <20060510185718.GA25334@electric-eye.fr.zoreil.com> <20060510235215.GC26617@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060510235215.GC26617@us.ibm.com> User-Agent: Mutt/1.4.2.1i X-Organisation: Land of Sunshine Inc. To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 24 Jon Mason : [...] > DMA_*BIT_MASK is intended to be used in the DMA_API's checking of > DMA controller's addressable memory, where as this is masking off the > lower 48bits of a descriptor for its DMA address. Imho it's the specific reason why the DMA_*BIT_MASK applies here: the code is already in dma-"tainted" land. > I think a better solution (which I should've done when I pushed the > original patch) would be a driver specific #define. $ find drivers -type f | xargs grep -i [^f]ffffffffffff[^f] | wc -l 12 No disagreement: it does not have a huge potential for code duplication. -- Ueimor - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/