Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp281213rdh; Thu, 23 Nov 2023 04:03:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2PFHZkV2+iRikgdQgFJFC81ZVHPeFTkafzIM7Jt6hzKr4G+kJIoJy+YAFdVY6QQSv2/iQ X-Received: by 2002:a05:6a20:1586:b0:18a:d4c3:1350 with SMTP id h6-20020a056a20158600b0018ad4c31350mr5113127pzj.44.1700740990240; Thu, 23 Nov 2023 04:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700740990; cv=none; d=google.com; s=arc-20160816; b=w6oNZNJGuM6ZGQjm0sj6f2aqx51G/JLm4659aK5xgH3xu8ku/WSg62oAxjN2Dji/z9 4Yp/fo5In9zbYlkCzPMQzyVKd+sd4iH/rSNXirEyfyAHoZ2hLYPvA9EV5jAqi5YWZ4Zw JXEGIL8/wjogwLHDXeRX6p4PN+uPm/SVXA5+gKbuMINcF7EfYOSnnP3GO4JOfrSkB/NC DSulgUwNNxnFmSVPu9oVMOp90JCp2ZTpnsveYw6HXNV1AgBM2YoY4Lw3sCzhxhM/lFP7 00GCrn6caKAzpNWQjTf4NJ2RrhYQQWV7mG0NC3AutEL5N0tAxs6PAfIkMFSZ39JzrOXR NP+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TBw89/52eCPcgkOxcc8THIdc/pg3fh4lwnMxDrVjUiQ=; fh=Rvpbwvf9elKPsPd1XglFGrlMXJxiM1KbSW7v/g9jCsw=; b=QyJwYQgVsN7wXcm3sHl+08aAMEaD9e+P2EMvk6uFyuc0o2k7kt0VZOQZyrw9Bs3EBJ /vhZFKlprHF7LKWHxZd50aF7hps1Dd4YKdWbc04brBz+iKThCkiUp5zLB6KNdHdnS6A7 Iw5vz4nGK74TwbP1lcljNVi2HPcCq4pDXo5yLAT53lm2ayfJTgCymg/lfmezaiup0oeM /kkVENeU51Jek08m1I9xaD6XPqCEckIPYL6jHt3qkFICKFoO8A+xcf74R3W9W7PfeemO lzbtdoEPEK3xH/ZAVs8jiJzHIKfUMbJEx03Lw+6Ov+6Dp5435Ixl9xUMXjVhlUYp2l4C qHug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kS1okNpz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a9-20020a63d209000000b005b969c62b27si1128176pgg.747.2023.11.23.04.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 04:03:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kS1okNpz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 24B508296F17; Thu, 23 Nov 2023 04:02:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345208AbjKWMBc (ORCPT + 99 others); Thu, 23 Nov 2023 07:01:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345205AbjKWMB3 (ORCPT ); Thu, 23 Nov 2023 07:01:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8681B1A5 for ; Thu, 23 Nov 2023 04:01:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9C31C433CD; Thu, 23 Nov 2023 12:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700740894; bh=O0KmdSGxCuQhaLjAepXLnzFblGpCjlLbqUPX4wb97x0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kS1okNpzujNNw/x/VQUygpXQNKyT7qe3NWEy9iSrouVQ6TUCTn6VfC14Txvw++BVV iP8JUYYi2LufvwJjHcJ18sn0TUSo+HCxS+TcMGn1DwamM80Fd1CUi+OdYJIb7rS/m2 MTtmBPoDEZRVZJyo/v+luSJdHaPmasoHDTDlOYmfroEoKkGD5EbEJw/Het6UV+/41Y OKzJasOj0E1bo4jrK6Pv7dwiFXmOxZzrcPxGYhFIpJLUzQNwW+E9k+ncUxqWog/Plh FiLM5FdWXnNolHuf1g1sqTtJzrSUgUUwj5/lKX6Lt6rMEJqrbM2BNXczL877bCqro/ ZXM2hl3SRRaLQ== Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-1efb9571b13so474749fac.2; Thu, 23 Nov 2023 04:01:34 -0800 (PST) X-Gm-Message-State: AOJu0YwwtRlU18FTKxNp+yPnkRUYI6FauS5bjJ/L5q5eNOQeqN9FdlFg ZSw7m7UEOE3LA36SLBMtv1RpRWtUmFNM9DomflA= X-Received: by 2002:a05:6870:f78b:b0:1f9:34b3:7ae9 with SMTP id fs11-20020a056870f78b00b001f934b37ae9mr7617512oab.17.1700740894160; Thu, 23 Nov 2023 04:01:34 -0800 (PST) MIME-Version: 1.0 References: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> <20231123-deviator-camisole-645715ad02e9@wendy> In-Reply-To: <20231123-deviator-camisole-645715ad02e9@wendy> From: Masahiro Yamada Date: Thu, 23 Nov 2023 21:00:58 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/4] kbuild: Per arch/platform dtc warning levels To: Conor Dooley Cc: Rob Herring , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Alim Akhtar , Conor Dooley , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 23 Nov 2023 04:02:22 -0800 (PST) On Thu, Nov 23, 2023 at 6:44=E2=80=AFPM Conor Dooley wrote: > > Yo, > > On Thu, Nov 23, 2023 at 04:38:37PM +0900, Masahiro Yamada wrote: > > On Thu, Nov 23, 2023 at 7:12=E2=80=AFAM Rob Herring w= rote: > > > > > > This series adds support to set the dtc extra warning level on a per > > > arch or per platform (directory really) basis. > > > > > > The first version of this was just a simple per directory override fo= r > > > Samsung platforms, but Conor asked to be able to do this for all of > > > riscv. > > > > > > For merging, either I can take the whole thing or the riscv and samsu= ng > > > patches can go via their normal trees. The added variable will have n= o > > > effect until merged with patch 2. > > > > > > v1: > > > - https://lore.kernel.org/all/20231116211739.3228239-1-robh@kernel.o= rg/ > > > > > > Signed-off-by: Rob Herring > > > --- > > > > > > There were some attempts in the past to enable W=3D1 in particular subs= ystems, > > so here is a similar comment. > > > > Adding a new warning flag to W=3D1 is always safe without doing any com= pile test. > > > > With this series, it would not be true any more because a new warning i= n W=3D1 > > would potentially break riscv/samsung platforms. > > We carry a copy of the dtc in scripts/dtc, so I would expect that before > an upgrade is done that would introduce new warnings we can fix them in > the relevant platforms. It might be easy to fix up only riscv and samsung platforms. If more and more platforms add KBUILD_EXTRA_WARN=3D1 in their Makefiles, it will become harder to sort them out before adding a new warning flag. The sync of scripts/dtc will be delayed until then, or you will end up with demoting them (i.e. delete KBUILD_EXTRA_WARN=3D1). > Perhaps I am misunderstanding something there, > but I'm sure Rob can clear it up if I made a mistake. > > > Linus requires a clean build (i.e. zero warning) when W=3D option is no= t given. > > For RISC-V at least, there are currently no W=3D1 warnings while building > the dtbs (because I put effort into fixing them all) and I would like to > keep it that way, so that requirement is not a concern. > > Cheers, > Conor. > --=20 Best Regards Masahiro Yamada