From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48FE8511.1090903@cn.fujitsu.com> Date: Wed, 22 Oct 2008 09:42:41 +0800 From: Li Zefan MIME-Version: 1.0 Subject: Re: [PATCH][BUGFIX] memcg: fix page_cgroup allocation References: <20081022102404.e1f3565a.kamezawa.hiroyu@jp.fujitsu.com> <20081021183738.d3c995b9.akpm@linux-foundation.org> In-Reply-To: <20081021183738.d3c995b9.akpm@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: KAMEZAWA Hiroyuki , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "balbir@linux.vnet.ibm.com" , "mingo@elte.hu" , "nishimura@mxp.nes.nec.co.jp" List-ID: >> --- linux-2.6.orig/mm/page_cgroup.c >> +++ linux-2.6/mm/page_cgroup.c >> @@ -4,7 +4,12 @@ >> #include >> #include >> #include >> +#include >> #include >> +#include >> + >> +extern struct cgroup_subsys mem_cgroup_subsys; > > no no bad! evil! unclean! > > Didn't the linux/cgroup.h -> linux/cgroup_subsys..h inclusion already > declare this for us? > Yes, I think just include is enough. #define SUBSYS(_x) extern struct cgroup_subsys _x ## _subsys; #include #undef SUBSYS and will be expanded to: extern struct cgroup_subsys cpu_subsys; extern struct cgroup_subsys cpuset_subsys; extern struct cgroup_subsys memory_cgroup_subsys; ... -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org