From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752935AbdLKOAg (ORCPT ); Mon, 11 Dec 2017 09:00:36 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:50294 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbdLKOAd (ORCPT ); Mon, 11 Dec 2017 09:00:33 -0500 Date: Mon, 11 Dec 2017 13:17:05 +0000 (GMT) From: "Maciej W. Rozycki" To: Joe Perches cc: SF Markus Elfring , linux-mips@linux-mips.org, =?UTF-8?Q?Ralf_B=C3=A4chle?= , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH] TC: Delete an error message for a failed memory allocation in tc_bus_add_devices() In-Reply-To: <1512957931.26342.31.camel@perches.com> Message-ID: References: <1512957931.26342.31.camel@perches.com> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 10 Dec 2017, Joe Perches wrote: > > > Omit an extra message for a memory allocation failure in this function. > > > > > > This issue was detected by using the Coccinelle software. > > > > And the problem here is? > > Markus' terrible commit messages. > > Generically, any OOM via a malloc like call has a dump_stack() > which shows a stack trace unless __GFP_NOWARN is used. > > So this message is generally unnecessary as the dump_stack() > will show the tc_bus_add_devices function name and (now hashed) > value of the function address. Fair enough. > What will be different is the particular slot # of the tc_dev > will no longer be shown. > > Really though, if there's an OOM on the init, there are larger > problems and the system will be unusable. Well, the problem may well be the caller doing something silly, so we do want to have it identified, hence the extra message. Given that, as you say, `kzalloc' already provides the necessary diagnostic I agree the message can go. However I would indeed prefer that a commit description is at least exhaustive enough for such a dumb reviewer as I am to understand what is going on right away. So please make it say at least: "Remove an extraneous message that duplicates the diagnostic already provided by `kzalloc' for a memory allocation failure in this function." or suchlike in v2 for me to apply a Reviewed-by: tag. Thanks, Maciej