Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4101592yba; Wed, 17 Apr 2019 04:46:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4U1+6AvgK2FKNimTZD3WCVrbjs4TQNTl/ASnvU3UbVt4s6Em7G/ODXHbv9gZRh7RTcuGE X-Received: by 2002:a17:902:7e05:: with SMTP id b5mr89428004plm.127.1555501589710; Wed, 17 Apr 2019 04:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555501589; cv=none; d=google.com; s=arc-20160816; b=jQ/OLxqG1Cv4Efw9sWK4w3MHL0bodUm6wKSU+xBrSlXROupYlsqmxFV4753WofygD1 HXZiL/l3cDtLmd+LVD69oOtacJKH2ZdXv/+KptfNXP8HGJxyQRNegCu0HxJwvwhi7bBn yAEI1SXk7yrMY5e3hPDaKtt2LBWxJ75rE6hZlDjFJpPS4bosFFAszzqPv9/0yqn6RBer 3LthY7pcTW7RUYGaWsi0WPu8O4lGSx2OZ2aJQY/Fuu/Zddi40hN87MUm0/67Q8aU8bSO tBSbAfpnIoUxgemKvlckIfu6nXNE12kjl4fmXHi022R1uUM4l/5vJqGckz6kG+fRTDBT +9Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=defcQ4+79P5TK11j5Ksq+9+M3O+thAvEFybm3nYbtS4=; b=XQllZKtI4qQtsbOi0ckGZwfZ965Fp6w7LcySkJtatWorh1Rzawnne2pkcKAbiPUzLH CuJm9xLI5ugKk5nG/LqwOAC3EcHZn842PI5lmgu4U8PGBFtiNZyicPNAfzDj1mb2olPy gfe3iLBXlDWPyGXX0kzjmLdI+jjkWBumdygizHYGy8TbGZf30DKDEU5V6o633JaYheuC tERY2Q7mrm2+52LpMf8uO2oGpzCncTyxv3/If6J4zWNi/AhJ0VMTLya42VmwNY4tmlMs RpL59GwxjoyWyKFQK6tc3ibLllIkdb1i2483GyQt5qKuKwcdV5twAiq+jGvbJFNGCApc wIpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si50150517pgg.78.2019.04.17.04.46.14; Wed, 17 Apr 2019 04:46:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731965AbfDQLnT (ORCPT + 99 others); Wed, 17 Apr 2019 07:43:19 -0400 Received: from 178.115.242.59.static.drei.at ([178.115.242.59]:45609 "EHLO mail.osadl.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729578AbfDQLnS (ORCPT ); Wed, 17 Apr 2019 07:43:18 -0400 Received: by mail.osadl.at (Postfix, from userid 1001) id E221B5C2F68; Wed, 17 Apr 2019 13:42:28 +0200 (CEST) Date: Wed, 17 Apr 2019 13:42:28 +0200 From: Nicholas Mc Guire To: Andrew Lunn Cc: Nicholas Mc Guire , Jason Cooper , Gregory Clement , Sebastian Hesselbarth , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] ARM: mvebu: at least report the kzalloc failure Message-ID: <20190417114228.GA20280@osadl.at> References: <1555386991-8855-1-git-send-email-hofrat@osadl.org> <20190416133957.GB29190@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416133957.GB29190@lunn.ch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 03:39:57PM +0200, Andrew Lunn wrote: > On Tue, Apr 16, 2019 at 05:56:31AM +0200, Nicholas Mc Guire wrote: > > > Note that this will trigger a checkpatch WARNING > > "WARNING: Possible unnecessary 'out of memory' message" > > but comparing the oops with an without the one-line pr_err I would > > argue that it makes sense to include it: > > Hi Nicholas > > It might be worth adding this as a comment, so that newbies don't > submit patches removing the pr_err() because of the checkpatch > warning. > hmm... I think if we start doing that we would make quite a mess of documentation in the kernel. Also note its a warning stating "possible unneceessary" - so I would not see the necessity. At most I would include a note on this in the commit message so that anyone checking the origin would see that this is intenttional - assuming that people modifying code would be using git blame to locate the origin of any code... thx! hofrat