Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp549502rdb; Thu, 21 Dec 2023 18:57:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnk7YQFbcKcpM4pV8L5+xrmOR+N37zvl1fIB1xisSXJ5jQ7yoYWQOsNOGQxCZwt/gTMBvj X-Received: by 2002:a05:6a00:1e0f:b0:6d4:dbf3:5853 with SMTP id gx15-20020a056a001e0f00b006d4dbf35853mr452958pfb.54.1703213837013; Thu, 21 Dec 2023 18:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703213836; cv=none; d=google.com; s=arc-20160816; b=hso+Rw6pZBaHGEuK8yfzcwUJEG4S5ZcFn16f1E8ZnBCqhPGVSq1ELi1Rn3msgLpnl8 M9UVAxwtckSVLAop366QJhdkMjO9zE5lvFhWuKtgL0haujqQI+/5SvkGXvnHP3ixgowb +17JiaqL+EqPByewSnhKBGFydRTznJndFL83EvcEZoBwNxCP6mDFPkR3bJdGdzNwX/Dp hW4dpSByEG38gUE4sUIXQoVKApoigxLzim2HwrrIonz66CebmRj4ZQB1kDzsUxhmdUQC kfWGW0A2U5XOh5yezzQSQUIbsqr9dEEpCLOhFg/2Mj5w4btjyvq+Hpv1xUik4aYcCJxD SeuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zyYQXXmJLXOsMg7EENStsDeW8R8z4sDrOY72vy4TXgg=; fh=4Xj0UEmndZZiKcvUT3Ubul1ofi3oA5SCmLLENUZX3I0=; b=aUNIpXRivEeIYBJ13CrlyTNcplLleFuRUQ3UKB/TdJRX8mYjFU9uanNcrAzyyM26Ru ep6BlxENoav9Vq2pNOqR2oA4D9NYckhvknNo/74MV0qKfI3rZJI1Qraz9+YOtt+tW5Md QR99V7sf4+n5BB86yXMWuTEKw+Ec9Z7fES3cHlFHpz3/iOn+xV4e5cgzxiX9lVU9MjY4 NW9Oo+xjkMMD8a5FSNV2gyOyR4L4caupI9P3uR8SCQWKGlp4xW3HrGJNFjmgVkXZ3+p1 vBNrM7UQ5osR5ZfTbHeTACQGvnbHIrjP0idWc0NDTpJqVhaEzh/evFcTjiTByNWx7Ues Acgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=R+GDyjG4; spf=pass (google.com: domain of linux-kernel+bounces-9274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 y22-20020a637d16000000b005bd42f6085fsi2535782pgc.344.2023.12.21.18.57.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 18:57:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9274-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=@chromium.org header.s=google header.b=R+GDyjG4; spf=pass (google.com: domain of linux-kernel+bounces-9274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 A9FE5281AF8 for ; Fri, 22 Dec 2023 02:57:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89C7F1873; Fri, 22 Dec 2023 02:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="R+GDyjG4" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E0AF17D3 for ; Fri, 22 Dec 2023 02:57:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6da682e0a20so958170a34.0 for ; Thu, 21 Dec 2023 18:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703213825; x=1703818625; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=zyYQXXmJLXOsMg7EENStsDeW8R8z4sDrOY72vy4TXgg=; b=R+GDyjG4A7D4m6E9rhzemMY/vE4CPIWaSvReOKH4WyDnADfKaSiw/AintVr5v/ni8h QPdxn46q7SdZ10hKrKeBd0z1i4V1uNagk8b5IEhk6z5BaExjvrWLZNCRb7yd4VG5Kq8o QU+JJamB1O5LIFuZo1sLSun19/+cbwpzuB04Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703213825; x=1703818625; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zyYQXXmJLXOsMg7EENStsDeW8R8z4sDrOY72vy4TXgg=; b=KWuHEwV5c/3W4J1qrY33SmC0leFpWLSVkjHjpA/6hE+MCcn5AeM7Oblc5ZBl+L8Uga YMo954bvI0M9KxA1WZGINL9U1LHMdGyMXXDo8Jv7HKQGjNcBj2BYMMavrCR481+22DeK E/PXv1khfhPZFPUB592Z5A4/g6iBzHefvmemIiNtXd2h3dJ9H8ZO1RNYYhzOrfPYv6CE 7OpYIzv42X0xndC2SL1u2IPt/GVFhE6CCu2Zw42de09MInr1W40YXOr7K3M6aQ27Cgj8 9LQAipxIH3xP5Xtu9I7wuMgyVytGhHV6ShbiSUeoqDLwcJmishIwA8eY7opYlM/N01gC 1HsQ== X-Gm-Message-State: AOJu0YyyNleLmAaMBYiF7Yxh6+smC+FBuZzY9RYLpfQTd4wTO7/KD/om /RL2s8tjtzT7hKP6ctfVrI+ebuTUrdC9 X-Received: by 2002:a9d:63c2:0:b0:6d9:e9b8:75e0 with SMTP id e2-20020a9d63c2000000b006d9e9b875e0mr780059otl.38.1703213825590; Thu, 21 Dec 2023 18:57:05 -0800 (PST) Received: from google.com ([2401:fa00:8f:203:1a3e:bfb4:1ddb:52df]) by smtp.gmail.com with ESMTPSA id a2-20020a63d402000000b005c661a432d7sm2187679pgh.75.2023.12.21.18.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 18:57:05 -0800 (PST) Date: Fri, 22 Dec 2023 11:57:01 +0900 From: Sergey Senozhatsky To: Masahiro Yamada Cc: Sergey Senozhatsky , Patrick Georgi , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Reinauer Subject: Re: [PATCH] kconfig: WERROR unmet symbol dependency Message-ID: <20231222025701.GA3568309@google.com> References: <20231122034753.1446513-1-senozhatsky@chromium.org> <20231128053443.GA6525@google.com> <20231129041307.GB6525@google.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On (23/12/01 00:42), Masahiro Yamada wrote: > On Wed, Nov 29, 2023 at 1:13 PM 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 symbol.c > > triggered any warnings and if KCONFIG_WERROR is set. And then different > > 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.