From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx123.postini.com [74.125.245.123]) by kanga.kvack.org (Postfix) with SMTP id 347EE6B004A for ; Thu, 5 Apr 2012 10:49:57 -0400 (EDT) Date: Thu, 5 Apr 2012 07:49:50 -0700 From: Michal Hocko Subject: Re: [patch] memcg swap: use mem_cgroup_uncharge_swap fix Message-ID: <20120405144949.GA17770@tiehlicka.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Hugh Dickins , Andrew Morton , KAMEZAWA Hiroyuki , Daisuke Nishimura , Johannes Weiner , linux-mm@kvack.org On Wed 04-04-12 20:19:18, David Rientjes wrote: > linux-next fails with this > > mm/memcontrol.c: In function '__mem_cgroup_commit_charge_swapin': > mm/memcontrol.c:2837: error: implicit declaration of function 'mem_cgroup_uncharge_swap' > > if CONFIG_SWAP is disabled. Fix it. Although this is correct maybe it would be better to move the definition outside the CONFIG_SWAP to prevent from duplication What do you think about the following? ---