Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1290550lqp; Mon, 15 Apr 2024 01:35:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3ozJ8z42hb7SXZl8/tFR6ApPu/ecTsvPYOSCt4cPPrei4ppN7hHXR+wJb1XD0KdZ5NqYep8/l79x//9QuxPQreJcQglFzs2hwvZQL0A== X-Google-Smtp-Source: AGHT+IHYj6wRersk0vFx77phc3WD3HQxumB7fiWN4wqTJ9CjNgVnZLRE13Y1980zku0VNiByyywG X-Received: by 2002:a0c:f9d2:0:b0:69b:2515:4197 with SMTP id j18-20020a0cf9d2000000b0069b25154197mr3785289qvo.13.1713170132168; Mon, 15 Apr 2024 01:35:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713170132; cv=pass; d=google.com; s=arc-20160816; b=xj0z+edeQe1FlBQTYJOySVXAtkfbPbC81o8eKrGIx2vYvvp99HBqWsanK3CB/4Pf3K fQjgdtYf6T6k91CzOLjt0OndWa64XmvfZWQX1uJ2k1AgrASBtfldPUBZ3qCJvQ5UGIpO B3VURARPDoQhJRC3nLfeEtR835rBzMZKtx54IoQY+TdIWEFvYdiv0krtF8JUSZ8+pxQp 4XCNJZITlcXKobXF9PJXFadEd50Uk8ysHYEGb5ps88KgRZT3sVigbi59YCAdsTsKt7oq YH/UfChigvU7x9IzHXBdYNoULajZNsIpBUnpnW2c/Ef3jMZNU+lj0G0wURg6o8Ncd7Ct TcLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9E56VnZUxs0iYMU1YHI3PrJVgMXJMIm+sYttG81BhCc=; fh=qRG7DjqFNI0l9lU2M6QiOtcWZ+sRbCPUihIA1BrYWkA=; b=jUCS9ZFV0Ys1QkCvP2YCAyX0A05RmDXZpnHZDPzJLxNAks/c9suv/kbV7BF9PlM/mc NXLk16Mk8hlN9WzQCkK46C51H1ugfb7bFGfyVWByf9iuptJDKAU7uQwfVjYNWJEJEDQz +0AoUriA7RpVfwUQzbkuNwKuVpDz3Bp1gepXomflWB/Sugs34O3jxBH4B30LjbZcZxnf ZkQVcjX1R4wv6xZ5DuEkTfXPPWcA4QiFgzjNTRyMAJvIjWzvagZ5mkI+eEEfnFKG8KPQ rPxA9ZqCchrpT7sebN/je14pRzDoxIl2QgpTF3bWApyz7rcIQ5uojs6qIGgZey+SybJv yRGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KP7JSEyY; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-144764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dn17-20020a056214095100b0069b44767098si9345015qvb.312.2024.04.15.01.35.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 01:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KP7JSEyY; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-144764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E27D81C21F7C for ; Mon, 15 Apr 2024 08:35:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E510F383A6; Mon, 15 Apr 2024 08:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KP7JSEyY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F08E538390; Mon, 15 Apr 2024 08:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170125; cv=none; b=SY0Jng38RA6H656jY+LiLbPqKnmA7ypTJEuvpsahHOe5WOMbM3UFxKUB1suxqAyP3Vn7oreWulUVNvbopa6AXsv9dJNsVkjLU+fhRi8lfy2BIrW2L/+1/sUrQHOF/VIMVHuM2IFjz/wQ8hm2B56S8V24kLE9UUDe07YAu/xIsv8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170125; c=relaxed/simple; bh=/rzQxdBfFz+bhG2WYY4i5FmzNnju0GiDyWDfmfsDHuY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PvYz/R3baQ3onuqeVEke+naEWBZdhzHdL7tgLbO6PyFGwztP1zrRS/nOhCvhGNGWvrmmsHPykYqK49+O5E+H54dk02uXGDDYX6KY6Qp/vrUxBoNvtG5z5yZIZzKXzzY8tHJO5NYA3IYH1vz7J+ewHMF0pOSN85xLaNQW9R7D4ao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KP7JSEyY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D712C113CC; Mon, 15 Apr 2024 08:35:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713170124; bh=/rzQxdBfFz+bhG2WYY4i5FmzNnju0GiDyWDfmfsDHuY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KP7JSEyYD+saYwrXxh+gBWZdx0VlJPh0B0scJvdhNXVkiSxW7b7596pTtkonqS+yC THNAttUnB/7GyEV/lsVBYHtftAbwGD2TTZjkxY89N01SVLudaGc0Wgg8xgWdDPfZ3S Kb/uNmRhYjYmiG4jwnl1MCyZXk1SaW7GQIfQbj94= Date: Mon, 15 Apr 2024 10:35:21 +0200 From: Greg KH To: Christoph Hellwig Cc: Alex Elder , corbet@lwn.net, workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Documentation: coding-style: don't encourage WARN*() Message-ID: <2024041544-fester-undead-7949@gregkh> References: <20240414170850.148122-1-elder@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 15, 2024 at 01:07:41AM -0700, Christoph Hellwig wrote: > No, this advice is wronger than wrong. If you set panic_on_warn you > get to keep the pieces. > But don't add new WARN() calls please, just properly clean up and handle the error. And any WARN() that userspace can trigger ends up triggering syzbot reports which also is a major pain, even if you don't have panic_on_warn enabled. And I think the "do not use panic_on_warn" recommendation has been ignored, given the huge use of it by vendors who have enabled it (i.e. all Samsung phones and cloud servers). thanks, greg k-h