Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1227491lqp; Sun, 14 Apr 2024 22:22:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkKdr37MUrYFq8qFFuqTglT56ir0/ggU5hpEh34eLPzEOPb7+APvuahTt8CVbHl7sDOhJ3t+hnvu/QDEtfjU1IpdetvaZXLCoKJ1KwKg== X-Google-Smtp-Source: AGHT+IFV5sjf00izhA0uzThcua24NJkG0VHKXeOresynbdUe1QcpS7S8YlPFRaw939zMRy0er/7b X-Received: by 2002:a50:d758:0:b0:56c:5990:813e with SMTP id i24-20020a50d758000000b0056c5990813emr5294420edj.13.1713158567030; Sun, 14 Apr 2024 22:22:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713158567; cv=pass; d=google.com; s=arc-20160816; b=Zua3zm3Z15u0oXw4X1PGTvgxa8RNd6ZPui8XNqYou1NMDWiXE/KJs3ZXEHon4xKLh7 MYnqE8ZWRfxtLLNzlW3erwXqTES9ZL9KIJCt4rmxkqwgTQN9Uk8Xp3rQc31KxqXMcvhE /lppnNhOYzzrphxJ23J21OpjoTCG4vly6zxLLEthPZ1Z4sKhB506HtK0OuXd4x+weL06 ZZ9g2OisoiY43Ce095bqhAUDudQq8wswUtdVtScN1HJ9SsZa6od9z+MOZ/2m5l3w1t2y Qd2/9wAQL32J5wBe7m5yTdc3Lu5XjDz0FrvpIJNCu3POQORuhRKKsZLbtLSguYS82me2 Rouw== 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=ZNfflqRAc1Xj5J4Qx8BKhCIB6l9LWQZK8RDz0oqIZCM=; fh=L2uypJRdVZN6/S44ufxAqK1Bd9dgcKnZZAesZ9iqzJg=; b=Uw2Gza47YJTelcWbDK01XK4ILMKqmjU0IHgf/KN0RczAj2TVVOJPagRRsZgpQT6D1Y /UAZ0nDFAOfbdqK0qdB/HnO0cYa/EsfqxNUOIqlKRsNZ89qqO50wMmVIR2FtJ0tmWSTx mVoAaD1qEoqgU/ijdz+UukSxAbxWA+qbtXUk+xfC54rCVQ6NcIdiO1EZeAbFrQF3m2yi QHU4SzDJ/8fl56rab7ejLy9yshP0pVNIcKFYdrEZ9SbvyXsAc96jfAauJuO8dVEIdkNP Y2SoCdnzPnYJdB86lNiTmNg6A0/56kEwp3sMXWC8waGnveTsBAfiW0YYXZqlZrfaDof4 R9Ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Mk1QQI/a"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-144539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v27-20020a50d59b000000b0056e23db9ce6si4274779edi.87.2024.04.14.22.22.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 22:22:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Mk1QQI/a"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-144539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144539-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C01D71F21CE8 for ; Mon, 15 Apr 2024 05:22:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08A576139; Mon, 15 Apr 2024 05:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Mk1QQI/a" 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 1E97D1EB3F; Mon, 15 Apr 2024 05:22:33 +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=1713158554; cv=none; b=Gsyw5dVWungJTG9N76zu7XTac+OMVeMXp416UEUXQHR/cCuHeBnXUwPzY84ZrFeXopETwEk7NJSNOtODOIWMJQBowo+g4nK3DD/pZkJeQ9N/U815/Ibj4ZR4nmKsmV5xpkazKmslWc7xKpuTM8n+NZ7zNUfRVfHi33kmAkWA+wI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713158554; c=relaxed/simple; bh=PeGrG5LrpGE9sy+795bOMZBxA+0vVQWDOIsJTQsO370=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gINv2SjEBd6b9177OLx4iinh13EDPrdBlokBGjkCDycLvyoWLhtYfbl6E/nb0c6EQE3QT8BA8zNuLXW0yv6dmt3DmkK6fSLsBDwpcArdguzvFUOHJaDhF9B1BD3oKGgXciNMHy7I+W20KhPIVNbJtHLGgL2ZQjxKVebo7ivzty4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Mk1QQI/a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 314CBC113CC; Mon, 15 Apr 2024 05:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713158553; bh=PeGrG5LrpGE9sy+795bOMZBxA+0vVQWDOIsJTQsO370=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mk1QQI/aIZLeB+rprpwjIH3mIm4YAiY8Ze2FqlMtyPs7hy6zcG3KdzixlxEau9cfX Zehx+g9Uiunqba46VoMx+MrtH497ejIU6En2wy/F6YARU1CXcKOl47Y7tsJwJNjcOh DSVikfsQiqwd2b6RLIXbP1HJaUzXk7Yduf37BHTY= Date: Mon, 15 Apr 2024 07:22:28 +0200 From: Greg KH To: Alex Elder Cc: 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: <2024041510-tacky-childlike-fc6d@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: <20240414170850.148122-1-elder@linaro.org> On Sun, Apr 14, 2024 at 12:08:50PM -0500, Alex Elder wrote: > Several times recently Greg KH has admonished that variants of WARN() > should not be used, because when the panic_on_warn kernel option is set, > their use can lead to a panic. His reasoning was that the majority of > Linux instances (including Android and cloud systems) run with this option > enabled. And therefore a condition leading to a warning will frequently > cause an undesirable panic. > > The "coding-style.rst" document says not to worry about this kernel > option. Update it to provide a more nuanced explanation. > > Signed-off-by: Alex Elder Thanks for writing this up: Reviewed-by: Greg Kroah-Hartman