From patchwork Thu Feb 18 03:44:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Roskin X-Patchwork-Id: 80201 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1I3imrK011364 for ; Thu, 18 Feb 2010 03:44:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752130Ab0BRDor (ORCPT ); Wed, 17 Feb 2010 22:44:47 -0500 Received: from c60.cesmail.net ([216.154.195.49]:11248 "EHLO c60.cesmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751177Ab0BRDoq (ORCPT ); Wed, 17 Feb 2010 22:44:46 -0500 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 17 Feb 2010 22:44:43 -0500 Received: from [192.168.0.22] (unknown [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id C16BF34C6D; Wed, 17 Feb 2010 22:55:06 -0500 (EST) Subject: Re: compat-wireless + Linux 2.6.26.8 testing results From: Pavel Roskin To: "Luis R. Rodriguez" Cc: linux-wireless In-Reply-To: <43e72e891002161459m4174654aj8d7985f32cb8678d@mail.gmail.com> References: <43e72e891002121810g25d21eb5y254969458a9a58e7@mail.gmail.com> <1266124222.13902.42.camel@mj> <43e72e891002161323v70636defr2500784ffb44d775@mail.gmail.com> <1266358340.2659.37.camel@mj> <43e72e891002161459m4174654aj8d7985f32cb8678d@mail.gmail.com> Date: Wed, 17 Feb 2010 22:44:35 -0500 Message-Id: <1266464675.3065.30.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 18 Feb 2010 03:44:49 +0000 (UTC) --- a/include/net/compat-2.6.27.h +++ b/include/net/compat-2.6.27.h @@ -185,4 +185,28 @@ #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) */ +#ifdef CONFIG_ARM + +/* + * The caller asks to handle a range between offset and offset + size, + * but we process a larger range from 0 to offset + size due to lack of + * offset support. + */ + +static inline void dma_sync_single_range_for_cpu(struct device *dev, + dma_addr_t handle, unsigned long offset, size_t size, + enum dma_data_direction dir) +{ + dma_sync_single_for_cpu(dev, handle, offset + size, dir); +} + +static inline void dma_sync_single_range_for_device(struct device *dev, + dma_addr_t handle, unsigned long offset, size_t size, + enum dma_data_direction dir) +{ + dma_sync_single_for_device(dev, handle, offset + size, dir); +} + +#endif /* arm */ + #endif /* LINUX_26_27_COMPAT_H */