From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by wr-out-0506.google.com with SMTP id i11so15402wra for ; Fri, 04 Aug 2006 08:56:24 -0700 (PDT) Message-ID: <84144f020608040856u17855491k9426b064ce9feec2@mail.gmail.com> Date: Fri, 4 Aug 2006 18:56:23 +0300 From: "Pekka Enberg" Subject: Re: [hch: [PATCH 1/3] slab: clean up leak tracking ifdefs a little bit] In-Reply-To: <20060804151621.GD29422@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060804151621.GD29422@lst.de> Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Hellwig Cc: linux-mm@kvack.org List-ID: Hi Christoph, On 8/4/06, Christoph Hellwig wrote: > +#ifndef CONFIG_DEBUG_SLAB > void *__kmalloc(size_t size, gfp_t flags) > { > -#ifndef CONFIG_DEBUG_SLAB > - return __do_kmalloc(size, flags, NULL); > -#else > return __do_kmalloc(size, flags, __builtin_return_address(0)); Other way around. You want to pass NULL when debugging is disabled. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org