From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753307Ab0GIGOR (ORCPT ); Fri, 9 Jul 2010 02:14:17 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:57022 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752012Ab0GIGOP (ORCPT ); Fri, 9 Jul 2010 02:14:15 -0400 Date: Thu, 08 Jul 2010 23:14:30 -0700 (PDT) Message-Id: <20100708.231430.35020644.davem@davemloft.net> To: fujita.tomonori@lab.ntt.co.jp Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH -mm 2/3] unify dma_get_cache_alignment implementations From: David Miller In-Reply-To: <1278572268-26146-3-git-send-email-fujita.tomonori@lab.ntt.co.jp> References: <1278572268-26146-1-git-send-email-fujita.tomonori@lab.ntt.co.jp> <1278572268-26146-3-git-send-email-fujita.tomonori@lab.ntt.co.jp> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: FUJITA Tomonori Date: Thu, 8 Jul 2010 15:57:47 +0900 > dma_get_cache_alignment returns the minimum DMA > alignment. Architectures defines it as ARCH_DMA_MINALIGN (formally > ARCH_KMALLOC_MINALIGN). So we can unify dma_get_cache_alignment > implementations. > > Note that some architectures implement dma_get_cache_alignment > wrongly. dma_get_cache_alignment() should return the minimum DMA > alignment. So fully-coherent architectures should return 1. This patch > also fixes this issue. > > Signed-off-by: FUJITA Tomonori Acked-by: David S. Miller