From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f70.google.com (mail-pg0-f70.google.com [74.125.83.70]) by kanga.kvack.org (Postfix) with ESMTP id 396536B0292 for ; Mon, 14 Aug 2017 07:14:38 -0400 (EDT) Received: by mail-pg0-f70.google.com with SMTP id i192so130514508pgc.11 for ; Mon, 14 Aug 2017 04:14:38 -0700 (PDT) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id a69si4460545pli.853.2017.08.14.04.14.36 for ; Mon, 14 Aug 2017 04:14:37 -0700 (PDT) Date: Mon, 14 Aug 2017 12:14:32 +0100 From: Catalin Marinas Subject: Re: [PATCH 1/2] kmemleak: Delete an error message for a failed memory allocation in two functions Message-ID: <20170814111430.lskrrg3fygpnyx6v@armageddon.cambridge.arm.com> References: <301bc8c9-d9f6-87be-ce1d-dc614e82b45b@users.sourceforge.net> <986426ab-4ca9-ee56-9712-d06c25a2ed1a@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <986426ab-4ca9-ee56-9712-d06c25a2ed1a@users.sourceforge.net> Sender: owner-linux-mm@kvack.org List-ID: To: SF Markus Elfring Cc: linux-mm@kvack.org, LKML , kernel-janitors@vger.kernel.org On Mon, Aug 14, 2017 at 11:35:02AM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 14 Aug 2017 10:50:22 +0200 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- > mm/kmemleak.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/mm/kmemleak.c b/mm/kmemleak.c > index 7780cd83a495..c6c798d90b2e 100644 > --- a/mm/kmemleak.c > +++ b/mm/kmemleak.c > @@ -555,7 +555,6 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size, > > object = kmem_cache_alloc(object_cache, gfp_kmemleak_mask(gfp)); > if (!object) { > - pr_warn("Cannot allocate a kmemleak_object structure\n"); > kmemleak_disable(); I don't really get what this patch is trying to achieve. Given that kmemleak will be disabled after this, I'd rather know why it happened. -- Catalin -- 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