Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4547805rdb; Fri, 29 Dec 2023 05:42:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIPctWGPsNTHWkGecHn5db/xZE+DQpAZNRuLvjuwyYLU03jwidKp6V3Z7utly1CKmANZVQ X-Received: by 2002:a05:6358:2904:b0:172:cd85:4860 with SMTP id y4-20020a056358290400b00172cd854860mr14312921rwb.18.1703857360150; Fri, 29 Dec 2023 05:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703857360; cv=none; d=google.com; s=arc-20160816; b=Tg5Fzd2DWAFqcy06RIawVS4FmYT5hIqsPQsUkvU9ipiXUz20iEVbDyjH/jD1ZubGc/ 7O1oSbUajuTBqr3UdaQV20Libf/dUE7i4eJTpaRiJjW4UsojBNu84DoYL5YxjiponCIH QExvBtK3OaQrjJ10J60xOhLOrpneAiIRgviQ15BtkHQroxZ3jEASiGIjEtGghBJa4Cjv 90fAjuIrvHIbTsbSBQuLRtkS7L5+2P/nr41W78XJFOzmgl1Zk9yYy83OMBDGEC/r/3e3 DHrs5Rhj9lucf6Yyj71lJ8VUgLiSqDq9uoID8V/qzuQX9Et78ALzdE/R0ZFfGET8dPnN vpIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=UCDeRZ0409HKlYsThc9AhumuUp/zCGyhIYwYKwqHDqI=; fh=beuoOka9IeQqDfdRXgqBPVDnDH/4gh6qaXjroH5Jbn0=; b=AfZNg9cQrCyfa6WiHG0CyyQcFBoq9at65/eAUoscw8wqwy//AI2ZrF2kZYdQC8j2Ss TzpI1UmwEyANFkV9xxduzwTnZ3ewtgl2R6PHVmjJsUGEVeMhkGa4lV1V28iG9iHWxJoL XU5M2dtfz1CkmId+NSZZMbnN9odI44KnhAFHRbJubYFd2lzV+prbT1j3MvOobMjP2hCP D4U85rbee9wbnHoKNBtBF5ivK00fxQZz2eg2f1nFoOHhwmSsD2He5699Qpnik4lZk+B6 BZ+gGFd8xkaskZCpagsruD1zta0YLjS7BZHMnLCWJbcbBf7vfvSJ2OfQOnkTD+fjUXyQ UbMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJj+1esU; spf=pass (google.com: domain of linux-kernel+bounces-13103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u16-20020a63b550000000b005ce01eee2afsi10408573pgo.836.2023.12.29.05.42.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:42:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJj+1esU; spf=pass (google.com: domain of linux-kernel+bounces-13103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C1E742835D4 for ; Fri, 29 Dec 2023 13:42:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F41B11716; Fri, 29 Dec 2023 13:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PJj+1esU" X-Original-To: linux-kernel@vger.kernel.org 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 8E1CD11702; Fri, 29 Dec 2023 13:42:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19E2BC433C7; Fri, 29 Dec 2023 13:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703857352; bh=UCDeRZ0409HKlYsThc9AhumuUp/zCGyhIYwYKwqHDqI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PJj+1esUzdVCZjnqPkNvukhFpfPRZWhKFHdglnYazV/jwbcHsZ5bD1GxlWtjGUCn8 5O05da+ev+HA4U8Y1kcu5uQ53muZYNFhgYAhKHhdyqASjRjHMUfP4jSTIWf+yvxd47 efMrJ/AnnchsK6HDcS8cG4LEL8oLI8XyxqihjLp6iLi5FSWg3Y/wYFAaoNzliBoJ6N 6A5Z/w9dDnjEIaQ8o8PC0HNCFyaaVVRqoqKn66H4nhnPbeiMm4lAagjzEFtmRgiQ68 gpSZIdRMUcLsGyvBdoMbRkSKvxEni3RDV2f5jw7uQcmpFRtWiRk9ixY22SKYf8l/Uy 7FgzXQlDQLeYA== Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6dc07ce2a30so1174529a34.0; Fri, 29 Dec 2023 05:42:32 -0800 (PST) X-Gm-Message-State: AOJu0YxbIVNigI8jpNKy/1/ESailsJRScsm2m0b1wYdAlUC10l8yeLfe Jy33iWSLublMSqA4YiSmcOUVqt3KatPkLAMUBSs= X-Received: by 2002:a05:6871:2306:b0:203:7035:8a83 with SMTP id sf6-20020a056871230600b0020370358a83mr10441046oab.85.1703857351471; Fri, 29 Dec 2023 05:42:31 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231122034753.1446513-1-senozhatsky@chromium.org> <20231128053443.GA6525@google.com> <20231129041307.GB6525@google.com> <20231222025701.GA3568309@google.com> In-Reply-To: <20231222025701.GA3568309@google.com> From: Masahiro Yamada Date: Fri, 29 Dec 2023 22:41:54 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: WERROR unmet symbol dependency To: Sergey Senozhatsky Cc: Patrick Georgi , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Reinauer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 22, 2023 at 11:57=E2=80=AFAM Sergey Senozhatsky wrote: > > On (23/12/01 00:42), Masahiro Yamada wrote: > > On Wed, Nov 29, 2023 at 1:13=E2=80=AFPM Sergey Senozhatsky > > wrote: > > > > > > On (23/11/28 23:19), Masahiro Yamada wrote: > > > > > > [..] > > > > > > > KCONFIG_WERROR is meant to turn all warnings > > > > to errors. > > > > I do not see getenv("KCONFIG_WERROR") > > > > sprinkled everywhere in Kconfig. > > > > One more thing, you cannot directly exit(1) > > > > from sym_calc_value(). > > > > > > We do exit(1) for KCONFIG_WARN_UNKNOWN_SYMBOLS in conf_read(). > > > > > > I can introduce two new helpers that will tell if confdata.c and symb= ol.c > > > triggered any warnings and if KCONFIG_WERROR is set. And then differe= nt > > > code paths can call them and handle exit gracefully, depending on the > > > context (ncurses, menu, etc.). > > > > > > Something like this > > > > > > I do not want to patch warnings one by one. > > > > > > I will take some time to think about it. > > Gentle ping on this. > > We are not concerned with every possible warning at the moment, however, > we do want the critical ones from CI and (semi)automated continuous uprev > PoV to be covered by WERROR. We do experience real life problems with > "missing direct dependency" not being a terminal condition under WERROR. Applied to linux-kbuild. Thanks. --=20 Best Regards Masahiro Yamada