Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1242832 > unrolled thread

Re: [PATCH] sh: add copy_user_page() alias for __copy_user()

Started byRoss Zwisler <ross.zwisler@linux.intel.com>
First post2015-10-09 01:10 +0200
Last post2015-10-12 11:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] sh: add copy_user_page() alias for __copy_user() Ross Zwisler <ross.zwisler@linux.intel.com> - 2015-10-09 01:10 +0200
    Re: [PATCH] sh: add copy_user_page() alias for __copy_user() Matt Fleming <matt@codeblueprint.co.uk> - 2015-10-12 11:00 +0200

#1242832 — Re: [PATCH] sh: add copy_user_page() alias for __copy_user()

FromRoss Zwisler <ross.zwisler@linux.intel.com>
Date2015-10-09 01:10 +0200
SubjectRe: [PATCH] sh: add copy_user_page() alias for __copy_user()
Message-ID<qhstX-WT-5@gated-at.bofh.it>
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?
--
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/

[toc] | [next] | [standalone]


#1244495

FromMatt Fleming <matt@codeblueprint.co.uk>
Date2015-10-12 11:00 +0200
Message-ID<qiH7z-2jW-7@gated-at.bofh.it>
In reply to#1242832
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
--
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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web