From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756709AbYGCMCg (ORCPT ); Thu, 3 Jul 2008 08:02:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751082AbYGCMCY (ORCPT ); Thu, 3 Jul 2008 08:02:24 -0400 Received: from yw-out-2324.google.com ([74.125.46.29]:52840 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752522AbYGCMCX (ORCPT ); Thu, 3 Jul 2008 08:02:23 -0400 Message-ID: <486CA734.1000200@gmail.com> Date: Thu, 03 Jul 2008 12:17:24 +0200 From: Andrea Righi Reply-To: righi.andrea@gmail.com User-Agent: Swiftdove 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Li Zefan CC: Paul Menage , Andrew Morton , Balbir Singh , KAMEZAWA Hiroyuki , Pavel Emelianov , LKML , Linux Containers Subject: Re: [PATCH -mmotm] res_counter: fix building failure References: <486B1D3D.5070805@cn.fujitsu.com> <6599ad830807012345r4f02f9acq3c8e9be633e109e8@mail.gmail.com> <486B250D.3090605@cn.fujitsu.com> In-Reply-To: <486B250D.3090605@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Li Zefan wrote: > Paul Menage wrote: >> On Tue, Jul 1, 2008 at 11:16 PM, Li Zefan wrote: >>> kernel/res_counter.c: In function 'res_counter_memparse_write_strategy': >>> kernel/res_counter.c:115: error: implicit declaration of function 'PAGE_ALIGN' >>> >>> Signed-off-by: Li Zefan >> Acked-by: Paul Menage >> >> Thanks - what architecture did it break on? >> > > On my x86_32. > > I guess this break has something to do with: > > http://marc.info/?l=linux-mm&m=121389282702302&w=2 > ([PATCH -mm] PAGE_ALIGN(): correctly handle 64-bit values on 32-bit) Exactly, your fix sounds good to me. Thanks. -Andrea > > You tested the patch before that patch was accepted by Andrew. > >> Paul >> >>> --- >>> >>> should follow cgroup-files-convert-res_counter_write-to-be-a-cgroups-write_string-handler.patch >>> >>> --- linux-mm/kernel/res_counter.c.bak 2008-07-02 14:05:37.000000000 +0800 >>> +++ linux-mm/kernel/res_counter.c 2008-07-02 14:07:36.000000000 +0800 >>> @@ -13,6 +13,7 @@ >>> #include >>> #include >>> #include >>> +#include >>> >>> void res_counter_init(struct res_counter *counter) >>> { >>>