From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id 32C946007E3 for ; Wed, 2 Dec 2009 17:52:47 -0500 (EST) Date: Wed, 2 Dec 2009 23:52:43 +0100 From: Andi Kleen Subject: Re: [PATCH 21/24] cgroup: define empty css_put() when !CONFIG_CGROUPS Message-ID: <20091202225243.GO18989@one.firstfloor.org> References: <20091202031231.735876003@intel.com> <20091202043046.420815285@intel.com> <6599ad830912021448h6f939623y43fbe5fde2c36b85@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6599ad830912021448h6f939623y43fbe5fde2c36b85@mail.gmail.com> Sender: owner-linux-mm@kvack.org To: Paul Menage Cc: Wu Fengguang , Andi Kleen , Andrew Morton , Balbir Singh , KAMEZAWA Hiroyuki , Li Zefan , Nick Piggin , linux-mm@kvack.org, LKML List-ID: On Wed, Dec 02, 2009 at 02:48:03PM -0800, Paul Menage wrote: > On Tue, Dec 1, 2009 at 7:12 PM, Wu Fengguang wrote: > > --- linux-mm.orig/include/linux/cgroup.h 2009-11-02 10:18:41.000000000 +0800 > > +++ linux-mm/include/linux/cgroup.h 2009-11-02 10:26:22.000000000 +0800 > > @@ -581,6 +581,9 @@ static inline int cgroupstats_build(stru > > return -EINVAL; > > } > > > > +struct cgroup_subsys_state; > > +static inline void css_put(struct cgroup_subsys_state *css) {} > > + > > #endif /* !CONFIG_CGROUPS */ > > This doesn't sound like the right thing to do - if !CONFIG_CGROUPS, > then the code shouldn't be able to see a css structure to pass to this > function. I agree. The high level code should be ifdefed. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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