Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764947AbXFEOfY (ORCPT ); Tue, 5 Jun 2007 10:35:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764492AbXFEOfM (ORCPT ); Tue, 5 Jun 2007 10:35:12 -0400 Received: from smtpq2.tilbu1.nb.home.nl ([213.51.146.201]:48500 "EHLO smtpq2.tilbu1.nb.home.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763417AbXFEOfL (ORCPT ); Tue, 5 Jun 2007 10:35:11 -0400 Message-ID: <466573E0.8050809@gmail.com> Date: Tue, 05 Jun 2007 16:32:00 +0200 From: Rene Herman User-Agent: Thunderbird 1.5.0.12 (X11/20070509) MIME-Version: 1.0 To: "John Anthony Kazos Jr." CC: Christoph Lameter , Andrew Morton , Pekka Enberg , Linus Torvalds , linux-kernel@vger.kernel.org, Jeremy Fitzhardinge Subject: Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0) References: <84144f020706041213x1d241794u98e9b3ca29865033@mail.gmail.com> <46646747.2080803@cs.helsinki.fi> <20070604155355.bf29a3a8.akpm@linux-foundation.org> <466523E0.3050605@gmail.com> <46655CEC.7070900@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 867 Lines: 21 On 06/05/2007 03:58 PM, John Anthony Kazos Jr. wrote: > So "ZERO_SIZE_OBJ_PTR" is the most correct form, and "ZERO_SIZE_PTR" is a > convenient shortening. "ZERO_PTR" is too short and also confuses with NULL > because NULL is a zero-value object, rather than a non-zero--value pointer to > a zero-size object. Like I said, I would prefer NIL of if absolutely need be NIL_PTR. NULL is a pointer that doesn't point anywhere valid -- NIL is a pointer that points to a zero sized object. If I'd have a few small children around I'd show them the word ZERO_SIZE_PTR and make pictures of them bursting out in tears. Rene. - 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/