public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted
@ 2016-03-21 11:20 Guenter Roeck
  2016-03-21 11:47 ` Xuetao Guan
  2016-04-24  0:09 ` Guenter Roeck
  0 siblings, 2 replies; 6+ messages in thread
From: Guenter Roeck @ 2016-03-21 11:20 UTC (permalink / raw)
  To: Guan Xuetao
  Cc: linux-kernel, Guenter Roeck, Dave Hansen, Thomas Gleixner,
	Ingo Molnar

unicore32 fails to compile with the following errors.

mm/memory.c: In function ‘__handle_mm_fault’:
mm/memory.c:3381: error:
	too many arguments to function ‘arch_vma_access_permitted’
mm/gup.c: In function ‘check_vma_flags’:
mm/gup.c:456: error:
	too many arguments to function ‘arch_vma_access_permitted’
mm/gup.c: In function ‘vma_permits_fault’:
mm/gup.c:640: error:
	too many arguments to function ‘arch_vma_access_permitted’

Fixes: d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate instruction fetches")
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 arch/unicore32/include/asm/mmu_context.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/unicore32/include/asm/mmu_context.h b/arch/unicore32/include/asm/mmu_context.h
index e35632ef23c7..62dfc644c908 100644
--- a/arch/unicore32/include/asm/mmu_context.h
+++ b/arch/unicore32/include/asm/mmu_context.h
@@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm,
 }
 
 static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
-		bool write, bool foreign)
+		bool write, bool execute, bool foreign)
 {
 	/* by default, allow everything */
 	return true;
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] unicore32: mm: Add missing parameter to  arch_vma_access_permitted
  2016-03-21 11:20 [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted Guenter Roeck
@ 2016-03-21 11:47 ` Xuetao Guan
  2016-03-23 20:25   ` Guenter Roeck
  2016-04-24  0:09 ` Guenter Roeck
  1 sibling, 1 reply; 6+ messages in thread
From: Xuetao Guan @ 2016-03-21 11:47 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Guan Xuetao, linux-kernel, Guenter Roeck, Dave Hansen,
	Thomas Gleixner, Ingo Molnar

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain;charset=gb2312, Size: 1507 bytes --]

> unicore32 fails to compile with the following errors.
>
> mm/memory.c: In function ‘__handle_mm_faultâ€&#65533;:
> mm/memory.c:3381: error:
> 	too many arguments to function ‘arch_vma_access_permittedâ€&#65533;
> mm/gup.c: In function ‘check_vma_flagsâ€&#65533;:
> mm/gup.c:456: error:
> 	too many arguments to function ‘arch_vma_access_permittedâ€&#65533;
> mm/gup.c: In function ‘vma_permits_faultâ€&#65533;:
> mm/gup.c:640: error:
> 	too many arguments to function ‘arch_vma_access_permittedâ€&#65533;
>
> Fixes: d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate instruction
> fetches")
> Cc: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@kernel.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Thanks.

Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>

> ---
>  arch/unicore32/include/asm/mmu_context.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/unicore32/include/asm/mmu_context.h
> b/arch/unicore32/include/asm/mmu_context.h
> index e35632ef23c7..62dfc644c908 100644
> --- a/arch/unicore32/include/asm/mmu_context.h
> +++ b/arch/unicore32/include/asm/mmu_context.h
> @@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct mm_struct
> *mm,
>  }
>
>  static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
> -		bool write, bool foreign)
> +		bool write, bool execute, bool foreign)
>  {
>  	/* by default, allow everything */
>  	return true;
> --
> 2.5.0
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted
  2016-03-21 11:47 ` Xuetao Guan
@ 2016-03-23 20:25   ` Guenter Roeck
  2016-03-24  0:38     ` Xuetao Guan
  0 siblings, 1 reply; 6+ messages in thread
From: Guenter Roeck @ 2016-03-23 20:25 UTC (permalink / raw)
  To: Xuetao Guan; +Cc: linux-kernel, Dave Hansen, Thomas Gleixner, Ingo Molnar

On Mon, Mar 21, 2016 at 07:47:29PM +0800, Xuetao Guan wrote:
> > unicore32 fails to compile with the following errors.
> >
> > mm/memory.c: In function 鈥榑_handle_mm_fault鈥&#65533;:
> > mm/memory.c:3381: error:
> > 	too many arguments to function 鈥榓rch_vma_access_permitted鈥&#65533;
> > mm/gup.c: In function 鈥榗heck_vma_flags鈥&#65533;:
> > mm/gup.c:456: error:
> > 	too many arguments to function 鈥榓rch_vma_access_permitted鈥&#65533;
> > mm/gup.c: In function 鈥榲ma_permits_fault鈥&#65533;:
> > mm/gup.c:640: error:
> > 	too many arguments to function 鈥榓rch_vma_access_permitted鈥&#65533;
> >
> > Fixes: d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate instruction
> > fetches")
> > Cc: Dave Hansen <dave.hansen@linux.intel.com>
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Ingo Molnar <mingo@kernel.org>
> > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> 
> Thanks.
> 
> Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
> 
Who is going to send the patch upstream ?

Guenter

> > ---
> >  arch/unicore32/include/asm/mmu_context.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/unicore32/include/asm/mmu_context.h
> > b/arch/unicore32/include/asm/mmu_context.h
> > index e35632ef23c7..62dfc644c908 100644
> > --- a/arch/unicore32/include/asm/mmu_context.h
> > +++ b/arch/unicore32/include/asm/mmu_context.h
> > @@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct mm_struct
> > *mm,
> >  }
> >
> >  static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
> > -		bool write, bool foreign)
> > +		bool write, bool execute, bool foreign)
> >  {
> >  	/* by default, allow everything */
> >  	return true;
> > --
> > 2.5.0
> >
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] unicore32: mm: Add missing parameter to  arch_vma_access_permitted
  2016-03-23 20:25   ` Guenter Roeck
@ 2016-03-24  0:38     ` Xuetao Guan
  0 siblings, 0 replies; 6+ messages in thread
From: Xuetao Guan @ 2016-03-24  0:38 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Xuetao Guan, linux-kernel, Dave Hansen, Thomas Gleixner,
	Ingo Molnar

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain;charset=gb2312, Size: 1872 bytes --]

> On Mon, Mar 21, 2016 at 07:47:29PM +0800, Xuetao Guan wrote:
>> > unicore32 fails to compile with the following errors.
>> >
>> > mm/memory.c: In function 鈥榑_handle_mm_faultéˆ&#65533;&#65533;:
>> > mm/memory.c:3381: error:
>> > 	too many arguments to function
>> 鈥榓rch_vma_access_permittedéˆ&#65533;&#65533;
>> > mm/gup.c: In function 鈥榗heck_vma_flagséˆ&#65533;&#65533;:
>> > mm/gup.c:456: error:
>> > 	too many arguments to function
>> 鈥榓rch_vma_access_permittedéˆ&#65533;&#65533;
>> > mm/gup.c: In function 鈥榲ma_permits_faultéˆ&#65533;&#65533;:
>> > mm/gup.c:640: error:
>> > 	too many arguments to function
>> 鈥榓rch_vma_access_permittedéˆ&#65533;&#65533;
>> >
>> > Fixes: d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate
>> instruction
>> > fetches")
>> > Cc: Dave Hansen <dave.hansen@linux.intel.com>
>> > Cc: Thomas Gleixner <tglx@linutronix.de>
>> > Cc: Ingo Molnar <mingo@kernel.org>
>> > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>>
>> Thanks.
>>
>> Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
>>
> Who is going to send the patch upstream ?
>
> Guenter

I will do. Thanks.

Xuetao

>
>> > ---
>> >  arch/unicore32/include/asm/mmu_context.h | 2 +-
>> >  1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/arch/unicore32/include/asm/mmu_context.h
>> > b/arch/unicore32/include/asm/mmu_context.h
>> > index e35632ef23c7..62dfc644c908 100644
>> > --- a/arch/unicore32/include/asm/mmu_context.h
>> > +++ b/arch/unicore32/include/asm/mmu_context.h
>> > @@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct
>> mm_struct
>> > *mm,
>> >  }
>> >
>> >  static inline bool arch_vma_access_permitted(struct vm_area_struct
>> *vma,
>> > -		bool write, bool foreign)
>> > +		bool write, bool execute, bool foreign)
>> >  {
>> >  	/* by default, allow everything */
>> >  	return true;
>> > --
>> > 2.5.0
>> >
>>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted
  2016-03-21 11:20 [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted Guenter Roeck
  2016-03-21 11:47 ` Xuetao Guan
@ 2016-04-24  0:09 ` Guenter Roeck
  2016-04-24 12:44   ` Xuetao Guan
  1 sibling, 1 reply; 6+ messages in thread
From: Guenter Roeck @ 2016-04-24  0:09 UTC (permalink / raw)
  To: Guan Xuetao; +Cc: linux-kernel, Dave Hansen, Thomas Gleixner, Ingo Molnar

ping ... still not upstream.

On 03/21/2016 04:20 AM, Guenter Roeck wrote:
> unicore32 fails to compile with the following errors.
>
> mm/memory.c: In function ‘__handle_mm_fault’:
> mm/memory.c:3381: error:
> 	too many arguments to function ‘arch_vma_access_permitted’
> mm/gup.c: In function ‘check_vma_flags’:
> mm/gup.c:456: error:
> 	too many arguments to function ‘arch_vma_access_permitted’
> mm/gup.c: In function ‘vma_permits_fault’:
> mm/gup.c:640: error:
> 	too many arguments to function ‘arch_vma_access_permitted’
>
> Fixes: d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate instruction fetches")
> Cc: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@kernel.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>   arch/unicore32/include/asm/mmu_context.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/unicore32/include/asm/mmu_context.h b/arch/unicore32/include/asm/mmu_context.h
> index e35632ef23c7..62dfc644c908 100644
> --- a/arch/unicore32/include/asm/mmu_context.h
> +++ b/arch/unicore32/include/asm/mmu_context.h
> @@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm,
>   }
>
>   static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
> -		bool write, bool foreign)
> +		bool write, bool execute, bool foreign)
>   {
>   	/* by default, allow everything */
>   	return true;
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] unicore32: mm: Add missing parameter to  arch_vma_access_permitted
  2016-04-24  0:09 ` Guenter Roeck
@ 2016-04-24 12:44   ` Xuetao Guan
  0 siblings, 0 replies; 6+ messages in thread
From: Xuetao Guan @ 2016-04-24 12:44 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Guan Xuetao, linux-kernel, Dave Hansen, Thomas Gleixner,
	Ingo Molnar

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain;charset=gb2312, Size: 1614 bytes --]

> ping ... still not upstream.
I'm sorry.
I'll do it in next week.

Xuetao

>
> On 03/21/2016 04:20 AM, Guenter Roeck wrote:
>> unicore32 fails to compile with the following errors.
>>
>> mm/memory.c: In function ‘__handle_mm_faultâ€&#65533;:
>> mm/memory.c:3381: error:
>> 	too many arguments to function ‘arch_vma_access_permittedâ€&#65533;
>> mm/gup.c: In function ‘check_vma_flagsâ€&#65533;:
>> mm/gup.c:456: error:
>> 	too many arguments to function ‘arch_vma_access_permittedâ€&#65533;
>> mm/gup.c: In function ‘vma_permits_faultâ€&#65533;:
>> mm/gup.c:640: error:
>> 	too many arguments to function ‘arch_vma_access_permittedâ€&#65533;
>>
>> Fixes: d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate instruction
>> fetches")
>> Cc: Dave Hansen <dave.hansen@linux.intel.com>
>> Cc: Thomas Gleixner <tglx@linutronix.de>
>> Cc: Ingo Molnar <mingo@kernel.org>
>> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>> ---
>>   arch/unicore32/include/asm/mmu_context.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/unicore32/include/asm/mmu_context.h
>> b/arch/unicore32/include/asm/mmu_context.h
>> index e35632ef23c7..62dfc644c908 100644
>> --- a/arch/unicore32/include/asm/mmu_context.h
>> +++ b/arch/unicore32/include/asm/mmu_context.h
>> @@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct mm_struct
>> *mm,
>>   }
>>
>>   static inline bool arch_vma_access_permitted(struct vm_area_struct
>> *vma,
>> -		bool write, bool foreign)
>> +		bool write, bool execute, bool foreign)
>>   {
>>   	/* by default, allow everything */
>>   	return true;
>>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-24 12:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21 11:20 [PATCH] unicore32: mm: Add missing parameter to arch_vma_access_permitted Guenter Roeck
2016-03-21 11:47 ` Xuetao Guan
2016-03-23 20:25   ` Guenter Roeck
2016-03-24  0:38     ` Xuetao Guan
2016-04-24  0:09 ` Guenter Roeck
2016-04-24 12:44   ` Xuetao Guan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox