Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4131167pxb; Mon, 1 Feb 2021 13:19:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ6XD6OeHQWhYJju1sEeOOQoDhZ6EWVQKA34VSgvIlLVOhR0wGzJDNh1CDS4lxNfyAb9b3 X-Received: by 2002:a17:906:1fda:: with SMTP id e26mr11368481ejt.195.1612214393485; Mon, 01 Feb 2021 13:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612214393; cv=none; d=google.com; s=arc-20160816; b=1G1j4dyb48HNcVkzdT9cVif2Vt/n52sH/p6br7d/qPN5qfdGqjaU0cnjxJ+V+q0O6h JzMclYl4qECIIfTVoyNDfvjVJG12oUUL7IUrK/Pez4xSFqiBrHscGOsNxQuSNKqqs771 0HDpNiG/3mTjJp13RPuFyy7wSKO4nK4Cyv/5z6xDYcLi/+Qt/RbJkWHPKOvgAdlTx0if XJav22V8iiNcf5hs+/y30gvLaCKdXwfsvVamanclZ8ngoCWIfsOVkKz3D5/z0vUrh+lt JdetQMYYIHb27PaxiBzXKVMeFkVQ8AemSCtu8+VukDK9C+CoGQMzAmxZXhFjMfpcuT4G OaUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tPbcRaX1SgEZLu4YCv7l4zPyyMW8dttxgAN/QGCyppw=; b=G9NmorOEH8sNYMuTCqB+QHftjYmxNkyNYM69JmtrVQDp2oy8ba7/YoGZZN7Nnl904L mRD5jWrFe4+h3jV/r6Yy3Z6ntO2xLO3j6aOzA+kcM7CU8ou4Qp31OcByElp1r/l8bS8m yFQFWD014cyliAGdmWtREj3hmoRH64qMWpZ6s41fEUWTvVVtDeNGOVoJ3a+O+a8mgalB 6L+LMO2u5MscxI07GcDQETc4EBBJdQxSTanerOu3wITIMcb1f71MCenG9Feg/GuZ6/pk +ctJ6fs6wLpfRlxko/V2iTr03JeIQ66xejhUkIM0jgO42x4n1wleGWRmJnzqJwVrL1UR RmXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="iHWQb81/"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ko21si4897252ejc.91.2021.02.01.13.19.29; Mon, 01 Feb 2021 13:19:53 -0800 (PST) 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=@google.com header.s=20161025 header.b="iHWQb81/"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232326AbhBAVRN (ORCPT + 99 others); Mon, 1 Feb 2021 16:17:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232310AbhBAVRL (ORCPT ); Mon, 1 Feb 2021 16:17:11 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 383B7C06174A for ; Mon, 1 Feb 2021 13:16:31 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id w14so12492007pfi.2 for ; Mon, 01 Feb 2021 13:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tPbcRaX1SgEZLu4YCv7l4zPyyMW8dttxgAN/QGCyppw=; b=iHWQb81/ia8DQq3d2ds1zRxrP+jhpqwVi5k5vWZw1g59/lyadKYb1YUzaaxSsDPXEK 04eZQ7xLhCIp8ehR+UurOS8YJ+g02SYl0PUJBfSKBRXL4hzxhtw43xqxR7YIjfbOptxC kS8draunkHMry4+vR1OxwbkqsZ1EV1Tdn8yH6XUha6PV3J5X4fP67ANYAKld4hNwSX5z gXMjUCd3XTF2y+GS16jHO/meJWahBHbqXHM4ApYjMln3b5aXUn6FoiswtunMAHU7KZmT J/XhQAxDahP71tMYE6YiJkUbtRe4d70GHKqNlJqT3+7T2y4tL6taaXE30zlBiG7/UdrH vFZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tPbcRaX1SgEZLu4YCv7l4zPyyMW8dttxgAN/QGCyppw=; b=XCSaYoAye0oIaBwN/nRxlbCdTDYOE1ziS+jrvx6g+54Z/msc/ceJdKbGSZ5Ogg3TYX np0Xk9NPT+EXO2bo9txtTC25J3fNJNYxy/qahlpyaHTqrRpj/l7OewuuJAxUyQiMN36U iG21Ics3MssjBDm54mR7WT1G4cdvVtjWtcTr1qn2fo/jkZdMBup/A3TNkj9Gbg//iUY6 fckLGCDXPrZRtEU8JXRhJm8v/enIfmRElZ06/E8QYNb6duCXqHa/TtSTcBgFi3nLkVUW md7CMi3eUnz04tctvtCi/Zqmxj9z7O5OrWaW3rHN1TUAcD6Fgq7x/VS9WDrk23HvF249 /CFw== X-Gm-Message-State: AOAM530e8Ow5X6Dgr2wGhLySnFNjJR4m5LPusEF9QG6rLj10NW3f90Eo dWFdPNnvRLFirhqCe/gFKj9AWmOdrA+Ysc7vW4Wdig== X-Received: by 2002:a62:7896:0:b029:1b6:7319:52a7 with SMTP id t144-20020a6278960000b02901b6731952a7mr18577965pfc.30.1612214190673; Mon, 01 Feb 2021 13:16:30 -0800 (PST) MIME-Version: 1.0 References: <20210201003125.90257-1-viniciustinti@gmail.com> <20210201124924.GA3284018@infradead.org> In-Reply-To: From: Nick Desaulniers Date: Mon, 1 Feb 2021 13:16:19 -0800 Message-ID: Subject: Re: [PATCH v2] ext4: Enable code path when DX_DEBUG is set To: Vinicius Tinti Cc: Christoph Hellwig , Andreas Dilger , Nathan Chancellor , Ext4 Developers List , LKML , clang-built-linux , "Theodore Ts'o" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 1, 2021 at 1:09 PM Theodore Ts'o wrote: > > On Mon, Feb 01, 2021 at 03:41:50PM -0300, Vinicius Tinti wrote: > > > > My goal is to avoid having a dead code. Three options come to mind. > > > > The first would be to add another #ifdef SOMETHING (suggest a name). > > But this doesn't remove the code and someone could enable it by accident. > > I *really* don't see the point of having the compiler whine about > "dead code", so I'm not terribly fond of > -Wunreachable-code-aggressive. I agree; Vinicius, my recommendation for -Wunreachable-* with Clang was to see whether dead code identified by this more aggressive diagnostic (than -Wunused-function) was to ask maintainers whether code identified by it was intentionally dead and if they would consider removing it. If they say "no," that's fine, and doesn't need to be pushed. It's not clear to maintainers that: 1. this warning is not on by default 2. we're not looking to pursue turning this on by default If maintainers want to keep the dead code, that's fine, let them and move on to the next instance to see if that's interesting (or not). -- Thanks, ~Nick Desaulniers