* [PATCH] sh: add copy_user_page() alias for __copy_user() @ 2015-09-22 21:44 Ross Zwisler 2015-09-22 21:46 ` Ross Zwisler 0 siblings, 1 reply; 4+ messages in thread From: Ross Zwisler @ 2015-09-22 21:44 UTC (permalink / raw) To: linux-kernel; +Cc: Ross Zwisler, linux-sh, Geert Uytterhoeven copy_user_page() is needed by DAX. Without this we get a compile error for DAX on SH: fs/dax.c:280:2: error: implicit declaration of function ‘copy_user_page’ [-Werror=implicit-function-declaration] copy_user_page(vto, (void __force *)vfrom, vaddr, to); ^ This was done with a random config that happened to include DAX support. This patch has only been compile tested. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> --- arch/sh/include/asm/page.h | 1 + 1 file changed, 1 insertion(+) 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 addr2) #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, PAGE_SIZE) struct page; struct vm_area_struct; -- 2.1.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] sh: add copy_user_page() alias for __copy_user() 2015-09-22 21:44 [PATCH] sh: add copy_user_page() alias for __copy_user() Ross Zwisler @ 2015-09-22 21:46 ` Ross Zwisler 2015-10-08 23:07 ` Ross Zwisler 0 siblings, 1 reply; 4+ messages in thread From: Ross Zwisler @ 2015-09-22 21:46 UTC (permalink / raw) To: linux-kernel Cc: Ross Zwisler, linux-sh, Geert Uytterhoeven, Andy Shevchenko, Matthew Wilcox, linux-fsdevel copy_user_page() is needed by DAX. Without this we get a compile error for DAX on SH: fs/dax.c:280:2: error: implicit declaration of function ‘copy_user_page’ [-Werror=implicit-function-declaration] copy_user_page(vto, (void __force *)vfrom, vaddr, to); ^ This was done with a random config that happened to include DAX support. This patch has only been compile tested. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> --- Apologies for the resend, I wanted to add some more recipients. --- arch/sh/include/asm/page.h | 1 + 1 file changed, 1 insertion(+) 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 addr2) #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, PAGE_SIZE) struct page; struct vm_area_struct; -- 2.1.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] sh: add copy_user_page() alias for __copy_user() 2015-09-22 21:46 ` Ross Zwisler @ 2015-10-08 23:07 ` Ross Zwisler 2015-10-12 8:56 ` Matt Fleming 0 siblings, 1 reply; 4+ messages in thread From: Ross Zwisler @ 2015-10-08 23:07 UTC (permalink / raw) To: Ross Zwisler Cc: linux-kernel, linux-sh, Geert Uytterhoeven, Andy Shevchenko, Matthew Wilcox, linux-fsdevel 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 error > for DAX on SH: > > fs/dax.c:280:2: error: implicit declaration of function ‘copy_user_page’ > [-Werror=implicit-function-declaration] > copy_user_page(vto, (void __force *)vfrom, vaddr, to); > ^ > > This was done with a random config that happened to include DAX support. > > This patch has only been compile tested. > > Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> > Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> > --- > Apologies for the resend, I wanted to add some more recipients. > --- > arch/sh/include/asm/page.h | 1 + > 1 file changed, 1 insertion(+) > > 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 addr2) > > #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, PAGE_SIZE) > > struct page; > struct vm_area_struct; Ping? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sh: add copy_user_page() alias for __copy_user() 2015-10-08 23:07 ` Ross Zwisler @ 2015-10-12 8:56 ` Matt Fleming 0 siblings, 0 replies; 4+ messages in thread From: Matt Fleming @ 2015-10-12 8:56 UTC (permalink / raw) To: Ross Zwisler, linux-kernel, linux-sh, Geert Uytterhoeven, Andy Shevchenko, Matthew Wilcox, linux-fsdevel Cc: Andrew Morton On Thu, 08 Oct, at 05:07:34PM, Ross Zwisler wrote: > 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 error > > for DAX on SH: > > > > fs/dax.c:280:2: error: implicit declaration of function ‘copy_user_page’ > > [-Werror=implicit-function-declaration] > > copy_user_page(vto, (void __force *)vfrom, vaddr, to); > > ^ > > > > This was done with a random config that happened to include DAX support. > > > > This patch has only been compile tested. > > > > Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> > > Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> > > --- > > Apologies for the resend, I wanted to add some more recipients. > > --- > > arch/sh/include/asm/page.h | 1 + > > 1 file changed, 1 insertion(+) > > > > 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 addr2) > > > > #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, PAGE_SIZE) > > > > struct page; > > struct vm_area_struct; > > Ping? Your best bet is probably to Cc Andrew (now Cc'd). Andrew, original patch is here, https://lkml.kernel.org/r/1442958411-4271-1-git-send-email-ross.zwisler@linux.intel.com -- Matt Fleming, Intel Open Source Technology Center ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-12 8:56 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-09-22 21:44 [PATCH] sh: add copy_user_page() alias for __copy_user() Ross Zwisler 2015-09-22 21:46 ` Ross Zwisler 2015-10-08 23:07 ` Ross Zwisler 2015-10-12 8:56 ` Matt Fleming
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).