Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765031AbXFEOlI (ORCPT ); Tue, 5 Jun 2007 10:41:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763602AbXFEOk4 (ORCPT ); Tue, 5 Jun 2007 10:40:56 -0400 Received: from gw.goop.org ([64.81.55.164]:54572 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761140AbXFEOkz (ORCPT ); Tue, 5 Jun 2007 10:40:55 -0400 Message-ID: <466575EE.70901@goop.org> Date: Tue, 05 Jun 2007 07:40:46 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Rene Herman CC: "John Anthony Kazos Jr." , Christoph Lameter , Andrew Morton , Pekka Enberg , Linus Torvalds , linux-kernel@vger.kernel.org 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: <46655CEC.7070900@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 567 Lines: 14 Rene Herman wrote: > No, what we have is a sizeof(pointer) sized pointer pointing to an > object of size zero. ZERO_SIZE_PTR is butt-ugly. With a really ugly butt. It doesn't matter. It will never, ever, be used by anything except the kmalloc internals. No client code should ever use the constant for anything. J - 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/