Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964817AbWHQLkS (ORCPT ); Thu, 17 Aug 2006 07:40:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964819AbWHQLkR (ORCPT ); Thu, 17 Aug 2006 07:40:17 -0400 Received: from mailhub.sw.ru ([195.214.233.200]:26536 "EHLO relay.sw.ru") by vger.kernel.org with ESMTP id S964817AbWHQLkQ (ORCPT ); Thu, 17 Aug 2006 07:40:16 -0400 Message-ID: <44E4562C.8080304@sw.ru> Date: Thu, 17 Aug 2006 15:42:36 +0400 From: Kirill Korotaev User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en, ru MIME-Version: 1.0 To: Alan Cox CC: Andrew Morton , Linux Kernel Mailing List , Ingo Molnar , Christoph Hellwig , Pavel Emelianov , Andrey Savochkin , devel@openvz.org, Rik van Riel , hugh@veritas.com, ckrm-tech@lists.sourceforge.net, Andi Kleen Subject: Re: [RFC][PATCH 2/7] UBC: core (structures, API) References: <44E33893.6020700@sw.ru> <44E33BB6.3050504@sw.ru> <1155747532.24077.382.camel@localhost.localdomain> In-Reply-To: <1155747532.24077.382.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 654 Lines: 21 > Ar Mer, 2006-08-16 am 19:37 +0400, ysgrifennodd Kirill Korotaev: > >>+ * UB_MAXVALUE is essentially LONG_MAX declared in a cross-compiling safe form. >>+ */ >>+#define UB_MAXVALUE ( (1UL << (sizeof(unsigned long)*8-1)) - 1) >>+ > > > Whats wrong with using the kernels LONG_MAX ? just historical code line which introduces UB_MAXVALUE independant of cross-compiler/headers etc. Will replace it. Kirill - 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/