From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbdJEU3z convert rfc822-to-8bit (ORCPT ); Thu, 5 Oct 2017 16:29:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:53185 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751350AbdJEU3v (ORCPT ); Thu, 5 Oct 2017 16:29:51 -0400 Date: Thu, 5 Oct 2017 22:29:49 +0200 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= To: Julia Lawall Cc: Arnd Bergmann , kernel-janitors@vger.kernel.org, LKML , Paul Mackerras , Jeremy Kerr , linuxppc-dev@lists.ozlabs.org, SF Markus Elfring Subject: Re: [PATCH 1/2] powerpc/platforms/cell: Delete an error message for a failed memory allocation in three functions Message-ID: <20171005222949.3a288238@kitsune.suse.cz> In-Reply-To: References: <62146108-5be0-c236-f404-4be122e162ac@users.sourceforge.net> <20171005220210.681f78e8@kitsune.suse.cz> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Oct 2017 22:06:11 +0200 (CEST) Julia Lawall wrote: > On Thu, 5 Oct 2017, Michal Suchánek wrote: > > > Hello, > > > > On Thu, 5 Oct 2017 21:36:26 +0200 > > SF Markus Elfring wrote: > > > > > From: Markus Elfring > > > Date: Thu, 5 Oct 2017 21:04:30 +0200 > > > > > > Omit extra messages for a memory allocation failure in these > > > functions. > > > > this is bogus. All these functions return -1 on any error. Until > > they reflect the error in their return value (and it is properly > > propagated to the user) there is no way to tell WTF failed without > > the message. > > A backtrace will be generated. > I do not see why it would. I do not expect the kernel to generate a stack trace every time memory allocation fails. With all the hooks in the code it is hard to tell, though. Thanks Michal