From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756545AbbCFTn1 (ORCPT ); Fri, 6 Mar 2015 14:43:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46556 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753779AbbCFTnZ (ORCPT ); Fri, 6 Mar 2015 14:43:25 -0500 From: Jes Sorensen To: Joe Perches Cc: Julia Lawall , Quentin Lambert , Larry Finger , Greg Kroah-Hartman , kernel-janitors@vger.kernel.org, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] staging: rtl8723au: Remove unnecessary OOM message References: <20150306082140.GA9740@sloth> <1425663302.12017.32.camel@perches.com> Date: Fri, 06 Mar 2015 14:43:09 -0500 In-Reply-To: <1425663302.12017.32.camel@perches.com> (Joe Perches's message of "Fri, 06 Mar 2015 09:35:02 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joe Perches writes: > On Fri, 2015-03-06 at 11:08 -0500, Jes Sorensen wrote: >> Julia Lawall writes: >> > On Fri, 6 Mar 2015, Jes Sorensen wrote: >> >> Quentin Lambert writes: >> >> > This patch reduces the kernel size by removing error messages >> >> > that duplicate >> >> > the normal OOM message. >> >> > A simplified version of the semantic patch that finds this problem is as >> >> > follows: (http://coccinelle.lip6.fr) >> >> This patch removes useful warnings about what allocation failed. The >> >> messages removed are NOT duplicate! >> > Is it really the case that the information can't be reconstructed from the >> > information generated by kmalloc on failure? To my understanding there is >> > a stack trace, and from scanning through the changes I see only one change >> > per function, so perhaps the stack trace already makes it clear where the >> > problem occurred? >> It may be possible to backtrack, but this change just makes it harder. >> There are tons of real issues to fix in this driver, this patch just >> increases the risk of patch conflicts for no real gain. > > Making the allocation less likely to fail for > low memory systems is a gain. > > The allocation failures themselves are low > likelihood events. Determining which specific > memory allocation failure occurred has near > nil value. Joe, That is bologna, knowing which allocation failed has a lot of value, it allows the developer to go back and look at the allocation sizes, parameters applied etc. This is a classic case of blindly applied script 'fixes' causing more harm than good. Jes