Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753580Ab0KFBEV (ORCPT ); Fri, 5 Nov 2010 21:04:21 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:45682 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752709Ab0KFBEU (ORCPT ); Fri, 5 Nov 2010 21:04:20 -0400 Date: Sat, 6 Nov 2010 02:03:57 +0100 To: Minchan Kim Cc: Andrew Morton , Dave Young , Greg Thelen , Andrea Righi , KAMEZAWA Hiroyuki , Daisuke Nishimura , Balbir Singh , Wu Fengguang , Linux Kernel Mailing List , linux-mm Subject: Re: [PATCH] memcg: use do_div to divide s64 in 32 bit machine. Message-ID: <20101106010357.GD23393@cmpxchg.org> References: <1288973333-7891-1-git-send-email-minchan.kim@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1288973333-7891-1-git-send-email-minchan.kim@gmail.com> 11;rgb: 0000/0000/0000From: Johannes Weiner From: hannes@cmpxchg.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 599 Lines: 13 On Sat, Nov 06, 2010 at 01:08:53AM +0900, Minchan Kim wrote: > Use do_div to divide s64 value. Otherwise, build would be failed > like Dave Young reported. I thought about that too, but then I asked myself why you would want to represent a number of pages as signed 64bit type, even on 32 bit? Isn't the much better fix to get the types right instead? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/