lkml.org 
[lkml]   [2010]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [mmotm 0113] memcg: fix compile error
Date

This issue was introduced by memcg-move-charges-of-anonymous-swap.patch.

=================================
Now, ia64 can't compile page_cgroup.c.
because it include asm/cmpxhg.h but almost arch don't have arch specific
cmpxhg.h. they use asm-generic/cmpxhg.h.

Then, following errror occur.

CC mm/page_cgroup.o
mm/page_cgroup.c:12:25: error: asm/cmpxchg.h: No such file or
directory
make[1]: *** [mm/page_cgroup.o] Error 1
make: *** [mm] Error 2

Fortunately, memcg code don't use low layer cmpxchg directly. thus
this patch remove this include line simply.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
---
mm/page_cgroup.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c
index 213b0ee..3dd8853 100644
--- a/mm/page_cgroup.c
+++ b/mm/page_cgroup.c
@@ -9,7 +9,6 @@
#include <linux/vmalloc.h>
#include <linux/cgroup.h>
#include <linux/swapops.h>
-#include <asm/cmpxchg.h>

static void __meminit
__init_page_cgroup(struct page_cgroup *pc, unsigned long pfn)
--
1.6.5.2




\
 
 \ /
  Last update: 2010-01-14 06:57    [W:0.027 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site