Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932459Ab2EXPPX (ORCPT ); Thu, 24 May 2012 11:15:23 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:44797 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751868Ab2EXPPV (ORCPT ); Thu, 24 May 2012 11:15:21 -0400 Message-ID: <4FBE5085.2090904@gmail.com> Date: Thu, 24 May 2012 08:15:17 -0700 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 MIME-Version: 1.0 To: Alessandro Rubini CC: linux-kernel@vger.kernel.org, x86@kernel.org, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, Giancarlo Asnaghi , Tony Luck , Fenghua Yu , Ralf Baechle , Guan Xuetao , Thomas Gleixner , Kyungmin Park , FUJITA Tomonori , Konrad Rzeszutek Wilk Subject: Re: [PATCH] swiotlb: add "dma_attrs" argument to alloc and free, to match dma_map_ops References: <20120524114422.GA25950@mail.gnudd.com> In-Reply-To: <20120524114422.GA25950@mail.gnudd.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1867 Lines: 43 On 05/24/2012 04:44 AM, Alessandro Rubini wrote: > The alloc and free pointers within "struct dma_map_ops" receive a > pointer to dma_attrs that was not present in the generic swiotlb > functions. For this reason, a few files had a local wrapper for the > free function that just removes the attrs argument before calling the > generic function. > > This patch adds the extra argument to generic functions and removes > such wrappers when they are no more needed. This also fixes a > compiler warning for sta2x11-fixup.c, that would have required yet > another wrapper. > > Signed-off-by: Alessandro Rubini > Acked-by: Giancarlo Asnaghi > Cc: Tony Luck > Cc: Fenghua Yu > Cc: Ralf Baechle > Cc: Guan Xuetao > Cc: Thomas Gleixner > Cc: Kyungmin Park > Cc: FUJITA Tomonori > Cc: Konrad Rzeszutek Wilk > --- > arch/ia64/kernel/pci-swiotlb.c | 11 ++--------- > arch/mips/cavium-octeon/dma-octeon.c | 4 ++-- > arch/unicore32/mm/dma-swiotlb.c | 22 ++-------------------- > arch/x86/kernel/pci-swiotlb.c | 11 ++--------- > arch/x86/pci/sta2x11-fixup.c | 3 ++- > include/linux/swiotlb.h | 7 ++++--- > lib/swiotlb.c | 5 +++-- > 7 files changed, 17 insertions(+), 46 deletions(-) > This looks sane (although I haven't tested it). For the OCTEON bits: Acked-by: David Daney -- 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/