Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4120231yba; Wed, 17 Apr 2019 05:09:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPzH84O5DeJZsC/siEQjpoeKFT3gi44TeD2jhDYoPgbRO/M4G6BVTOj7XPlE7EFlQtGk+J X-Received: by 2002:a65:62ce:: with SMTP id m14mr68727323pgv.191.1555502994678; Wed, 17 Apr 2019 05:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555502994; cv=none; d=google.com; s=arc-20160816; b=BRkoB8+N3ld4rr3TL2miFfj5EAxJBtP6vtJR7l2qytMcn4iGMMzRMunifaRllZP6/7 RhqIp4T/32d30bD8ewoFSTWxgdMxZ19VIOgXaA079yVbVVHw245LmYYlL6yXBUsFKwID 23gy95VHytGomSnoLchBzwsgQsOk1nfdglSGutJtjFEizf1+h/5QDSV8WheOKQcBl/ZF kx6W4ocamTPknw8IvMeRHyq93f6tElBsWWD2Fq5gsvG8sM0EDNgSwIorq0zThxxUzxq0 5y9xRlrvbgKnZLfiD25L664OJ8jYNnGL/U46TZpLH++ut/253Gw6X5D8XIro9z6LSdQH +iiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=gcmIi/Wp/8FZEHnk8ipVfvBIFWOnCJNPi8CLiedjBfk=; b=vBVyVxXeqnIBfOtF2hrLqDuRnY2d41KEVLHHLW3Ux59guAgGnic0iWBhSI3B+Ph3RD mP1TFae+cq/jmX6fJ7BPclo+V7O9GlFSxndSHHgnXMQbHpHM3suOyW8CUeCCk3FpSV83 5XIreG96atBMxiF5C7XqcH9j9I2l12L7j8SEW/m0A82K1GCMmFRj5ejzeRPQYoXSZFF0 /R4DtM5+qbXT0XQbiPBQvfyeQWpRrQBUbiNXlK2qh24rkwRRPg5DJuEdjrgTLwwmAL7j Te56sWEr/DxfOEapwX0fqowbMYLtTdXcnFEMWikz+1BaOHjBgkFva03Y9eKbOg0m1V9b Z6Aw== 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 f35si42083675plh.433.2019.04.17.05.09.15; Wed, 17 Apr 2019 05:09:54 -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 S1732062AbfDQMHu (ORCPT + 99 others); Wed, 17 Apr 2019 08:07:50 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:37531 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731508AbfDQMHt (ORCPT ); Wed, 17 Apr 2019 08:07:49 -0400 X-Originating-IP: 109.212.207.226 Received: from localhost (alyon-652-1-176-226.w109-212.abo.wanadoo.fr [109.212.207.226]) (Authenticated sender: gregory.clement@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id BDB7EE0003; Wed, 17 Apr 2019 12:07:44 +0000 (UTC) From: Gregory CLEMENT To: Nicholas Mc Guire , Andrew Lunn Cc: Jason Cooper , Russell King , linux-kernel@vger.kernel.org, Nicholas Mc Guire , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth Subject: Re: [PATCH V2] ARM: mvebu: at least report the kzalloc failure In-Reply-To: <20190417114228.GA20280@osadl.at> References: <1555386991-8855-1-git-send-email-hofrat@osadl.org> <20190416133957.GB29190@lunn.ch> <20190417114228.GA20280@osadl.at> Date: Wed, 17 Apr 2019 14:07:44 +0200 Message-ID: <877ebsal7z.fsf@FE-laptop> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicholas, Nicholas Mc Guire writes: > 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... Don't bother to send a new version I don't attempt to take this patch. As you pointed it is very unlikely that we get an error so early during the boot for a very small amount of memory. If it happened then we have serious trouble and the message provided by the BUG() call will be more than enough. Thanks, Gregory > > thx! > hofrat > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com