Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 27 Aug 2002 22:38:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 27 Aug 2002 22:38:41 -0400 Received: from adsl-67-117-146-62.dsl.snfc21.pacbell.net ([67.117.146.62]:48646 "EHLO localhost") by vger.kernel.org with ESMTP id ; Tue, 27 Aug 2002 22:38:40 -0400 From: "Stephen C. Biggs" To: "David S. Miller" , linux-kernel@vger.kernel.org Date: Tue, 27 Aug 2002 19:42:36 -0700 MIME-Version: 1.0 Subject: Re: Bug in kernel code? Message-ID: <3D6BD62C.581.ACEBAD@localhost> In-reply-to: <20020827.182312.52750220.davem@redhat.com> References: <3D6BC3CD.10889.6526BC@localhost> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1198 Lines: 50 On 27 Aug 2002 at 18:23, David S. Miller wrote: > From: "Stephen C. Biggs" > Date: Tue, 27 Aug 2002 18:24:13 -0700 > > On 27 Aug 2002 at 18:09, David S. Miller wrote: > > > And then your mail ends.... let us know when you've fixed > > your email client, this isn't rocket science :-) > > > > What are you talking about "And then your mail ends..." That's all I wanted to say... > > No, I thought you were going to give an example of a huge number. > :-) > How about (unsigned long)(~0)? This code never finishes: #include #define PAGE_SHIFT 12 struct list_head { struct list_head *next, *prev; }; int main(void) { unsigned long order; unsigned long mempages = ~0; #if PAGE_SHIFT < 13 mempages >>= (13 - PAGE_SHIFT); #endif mempages *= sizeof(struct list_head); for (order = 0; ((1UL << order) << PAGE_SHIFT) < mempages; order++) ; printf("%d\n",order); return 0; } - 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/