linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] mm: Fix build on non-MMU systems
@ 2015-10-21 14:00 Guenter Roeck
  2015-10-22  0:07 ` Minchan Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2015-10-21 14:00 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Guenter Roeck, Minchan Kim

Non-MMU systems fail to build with

In file included from init/main.c:50:0:
include/linux/rmap.h:274:1: error:
	expected declaration specifiers or ‘...’ before ‘{’ token

Fixes: c3f568752340 ("mm: support madvise(MADV_FREE)")
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 include/linux/rmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/rmap.h b/include/linux/rmap.h
index 978f65066fd5..853f4f3c6742 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -270,7 +270,7 @@ int rmap_walk(struct page *page, struct rmap_walk_control *rwc);
 
 static inline int page_referenced(struct page *page, int is_locked,
 				  struct mem_cgroup *memcg,
-				  unsigned long *vm_flags,
+				  unsigned long *vm_flags)
 {
 	*vm_flags = 0;
 	return 0;
-- 
2.1.4


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

* Re: [PATCH -next] mm: Fix build on non-MMU systems
  2015-10-21 14:00 [PATCH -next] mm: Fix build on non-MMU systems Guenter Roeck
@ 2015-10-22  0:07 ` Minchan Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Minchan Kim @ 2015-10-22  0:07 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Andrew Morton, linux-kernel

Hello,

Andrew already had a fix.

Thanks for the report!

On Wed, Oct 21, 2015 at 07:00:23AM -0700, Guenter Roeck wrote:
> Non-MMU systems fail to build with
> 
> In file included from init/main.c:50:0:
> include/linux/rmap.h:274:1: error:
> 	expected declaration specifiers or ‘...’ before ‘{’ token
> 
> Fixes: c3f568752340 ("mm: support madvise(MADV_FREE)")
> Cc: Minchan Kim <minchan@kernel.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  include/linux/rmap.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/rmap.h b/include/linux/rmap.h
> index 978f65066fd5..853f4f3c6742 100644
> --- a/include/linux/rmap.h
> +++ b/include/linux/rmap.h
> @@ -270,7 +270,7 @@ int rmap_walk(struct page *page, struct rmap_walk_control *rwc);
>  
>  static inline int page_referenced(struct page *page, int is_locked,
>  				  struct mem_cgroup *memcg,
> -				  unsigned long *vm_flags,
> +				  unsigned long *vm_flags)
>  {
>  	*vm_flags = 0;
>  	return 0;
> -- 
> 2.1.4
> 

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

end of thread, other threads:[~2015-10-22  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21 14:00 [PATCH -next] mm: Fix build on non-MMU systems Guenter Roeck
2015-10-22  0:07 ` Minchan Kim

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).