Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3924776pxb; Wed, 13 Oct 2021 16:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqMXxBwQtkKTaG9O2tM7THEEiXpLFr8+eX33mjPKJ6MOHgmLJSekRm9Gy0vaeZbCebpagi X-Received: by 2002:a17:902:8a97:b0:13e:6e77:af59 with SMTP id p23-20020a1709028a9700b0013e6e77af59mr1912059plo.4.1634166960012; Wed, 13 Oct 2021 16:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634166960; cv=none; d=google.com; s=arc-20160816; b=kDo8z4Ca0r0JYSzvD0kFaxT9eNazEp3CVkHKILJnJo3Jt3R8pZTWxYvdbjI6DGJm2Q Xae8oFJLBeaxCmrBH5i8oPnizkZD0JkJAZEMEMeLCfymBt0HHS0ZukKAkhu/rFVFqzRj 3w3VLQCK1VgiwEfqnf7vMvpmYWZbiiF7WI4MB6xzASs6S2S4V/8UuPmkfOYnwmnidvav gYxkPx1bNLimqMwcaHqprNtz3Kt4HPbyv7JyFGjIAWVv6OZObaxDhcMsvFx8oB6b9V9G vpFl/UHKdCU93cI0+IzZI+gTETLejLk1WMygLr7tMZh1lgDiTofMYhaD96QZlcgeMyTd VK9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2wUwKP1yXmo1WPbrdPnxgNLaS+79Lpi5xwqO/tFrxe4=; b=YdeyZIehKz8C08q+TDWUcKMb6YX/BXJX0OJhi2Abx7Mt2ajxKFd485Rd3dHSnvFO4J GcP7fz3S3WpSCGh0P6rrs+JNnIsQPys6+op4f1fFYsRROxOi9ldHc0NVKNb464upJXm3 MERzB8EOj7jGJeaeERRV8dYq1qWBT+2CaLr1rw14vRUIfmgDhp5bWEsfGyEwy+WA759f ymmOFf1SDLJPzN+ziY4MDdJpTcU4dktLXSv9efW/lSBd2zhS4NqMwhrSskWU7tco6HJw vy8gzODkSEeuGT7Y6S1j8d8APmZJudwJ8Y0Q7aHEmn8pwRkdBaEztPhQqbE15eLGAXin zOqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=2hcz8RgK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si1289058pge.484.2021.10.13.16.15.47; Wed, 13 Oct 2021 16:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=2hcz8RgK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbhJMXPJ (ORCPT + 99 others); Wed, 13 Oct 2021 19:15:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:60318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbhJMXPF (ORCPT ); Wed, 13 Oct 2021 19:15:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C0E860C4D; Wed, 13 Oct 2021 23:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1634166781; bh=ff/h9KDJlUBI6feY+QII5BtvbX/wkx8OS2q5HtuB0oY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2hcz8RgKEaU2Ilmff0+KI4DGBARFO3FxpK9sn4jtertw3hPf7ewCKH54jH8HmZj7F HO30FO9+MYZw1x07lR3DmOklSDfsaQB2LW3guADGVbAew503XD+CzyLqsSWLBYxLcD i7+q/lV0eR6nw95p3R5SnZML8NZSSujz3CPHCdwE= Date: Wed, 13 Oct 2021 16:12:59 -0700 From: Andrew Morton To: Andrew Halaney Cc: rostedt@goodmis.org, bp@suse.de, rdunlap@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] init: Make unknown command line param message clearer Message-Id: <20211013161259.39e88182200b7a582c0cf632@linux-foundation.org> In-Reply-To: <20211013223502.96756-1-ahalaney@redhat.com> References: <20211013223502.96756-1-ahalaney@redhat.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Oct 2021 17:35:02 -0500 Andrew Halaney wrote: > The prior message is confusing users, which is the exact opposite of the > goal. If the message is being seen, one of the following situations is > happening: > > 1. the param is misspelled > 2. the param is not valid due to the kernel configuration > 3. the param is intended for init but isn't after the '--' > delineator on the command line > > To make that more clear to the user, explicitly mention "kernel command > line" and also note that the params are still passed to user space to > avoid causing any alarm over params intended for init. > > Fixes: 86d1919a4fb0 ("init: print out unknown kernel parameters") > Suggested-by: Steven Rostedt (VMware) > Signed-off-by: Andrew Halaney Thanks. BTW, I'm still sitting on your "init/main.c: silence some -Wunused-parameter warnings", awaiting a response to Rasmus's suggestion: https://lkml.kernel.org/r/f06b8308-645b-031b-f9c6-b92400a269aa@rasmusvillemoes.dk