From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ross Zwisler Subject: Re: [PATCH] sh: add copy_user_page() alias for __copy_user() Date: Thu, 8 Oct 2015 17:07:34 -0600 Message-ID: <20151008230734.GB19399@linux.intel.com> References: <1442958411-4271-1-git-send-email-ross.zwisler@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, Geert Uytterhoeven , Andy Shevchenko , Matthew Wilcox , linux-fsdevel@vger.kernel.org To: Ross Zwisler Return-path: Content-Disposition: inline In-Reply-To: <1442958411-4271-1-git-send-email-ross.zwisler@linux.intel.com> Sender: linux-sh-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Sep 22, 2015 at 03:46:51PM -0600, Ross Zwisler wrote: > copy_user_page() is needed by DAX. Without this we get a compile err= or > for DAX on SH: >=20 > fs/dax.c:280:2: error: implicit declaration of function =E2=80=98copy= _user_page=E2=80=99 > [-Werror=3Dimplicit-function-declaration] > copy_user_page(vto, (void __force *)vfrom, vaddr, to); > ^ >=20 > This was done with a random config that happened to include DAX suppo= rt. >=20 > This patch has only been compile tested. >=20 > Signed-off-by: Ross Zwisler > Reported-by: Geert Uytterhoeven > --- > Apologies for the resend, I wanted to add some more recipients. > --- > arch/sh/include/asm/page.h | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/arch/sh/include/asm/page.h b/arch/sh/include/asm/page.h > index fe20d14..ceb5201 100644 > --- a/arch/sh/include/asm/page.h > +++ b/arch/sh/include/asm/page.h > @@ -59,6 +59,7 @@ pages_do_alias(unsigned long addr1, unsigned long a= ddr2) > =20 > #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE) > extern void copy_page(void *to, void *from); > +#define copy_user_page(to, from, vaddr, pg) __copy_user(to, from, P= AGE_SIZE) > =20 > struct page; > struct vm_area_struct; Ping?