From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Subject: Re: [PATCH 07/27] asm-generic: add minimal cache description Date: Fri, 01 May 2009 14:52:04 +0200 Message-ID: <49FAF074.9080202@monstr.eu> References: <2d8ccc76119d2379859480dbb8f7562743a1de58.1241105648.git.arnd@arndb.de> <200905011427.05099.arnd@arndb.de> Reply-To: monstr@monstr.eu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-fx0-f158.google.com ([209.85.220.158]:52084 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751746AbZEAMwH (ORCPT ); Fri, 1 May 2009 08:52:07 -0400 In-Reply-To: <200905011427.05099.arnd@arndb.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnd Bergmann Cc: linux-arch@vger.kernel.org, Remis Lima Baima , linux-kernel@vger.kernel.org Arnd Bergmann wrote: > On Friday 01 May 2009, Michal Simek wrote: >>> +#define copy_to_user_page(vma, page, vaddr, dst, src, len) \ >>> + memcpy(dst, src, len) >>> +#define copy_from_user_page(vma, page, vaddr, dst, src, len) \ >>> + memcpy(dst, src, len) >> >> IMHO these two macros will generate cast errors. > > I did not see errors here, can you clarify? Note that despite the name, > they don't take a __user pointer. Maybe they should be inline functions > to make that more obvious. you are right here with __user. x86 use it as inline function. Michal > > Arnd <>< -- Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854