Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp399631rdb; Thu, 30 Nov 2023 07:43:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAYsOaGhVprk+sXMVLxR5cDvnkp5GQufcDBKOGwlej1/7B0jE/Hu+37n8rq59sZMOc/BPF X-Received: by 2002:a05:6808:e8c:b0:3b8:33dd:f964 with SMTP id k12-20020a0568080e8c00b003b833ddf964mr26292783oil.39.1701358982670; Thu, 30 Nov 2023 07:43:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701358982; cv=none; d=google.com; s=arc-20160816; b=fumAQyvA1e9Fyu74EkfaBlYrIPXrXQ/fuSmexK5jurK1ZUXSByswofwhC3VfU4GS// JiF4hBzgpOEsZDfIXvfNZF/FpHjx6q66KMmooeo4LdxE6iLv5PPMgD6c1tMhjacivaNK nrMi5hBw3sLWRtH73ToBARie+KOW+XNjWKhz4Wv44VuWfY5CmZDzYmb67DIM9GmLujMd CghmS9FtddGngp47f77jtThCcSPUOpJ5RHEUWBVhk4SaQcXAyCvkxfx0rLUu65YMmq/T VkJ86Hs2eo6cmCWFVQv0Am0XKgB7C5DQPS4vUd2m3Ir6lU57tLr0P5CVRSf3+KOqdIn8 o0dw== 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=LhpLwZbqacivXxz4RxHyaTQfxJ302f9kFQFwo/zcAaQ=; fh=beuoOka9IeQqDfdRXgqBPVDnDH/4gh6qaXjroH5Jbn0=; b=kQtD7VjN1lyLYnwHn2rtrv2NQ/POPoYnJRxiyKNCwqcNKRh9vBl1bl9TbvqEKnBNwj r2oWxvtc9Rie/URnAYprzZPIrHRpUNg6uCX4kCpOXZfjy0jsuiU4VxQmcTKfFavyTPfO 78HJKdQ8JRrJwfkgb1feP+SHgsGotPz85iJ5Zl//zG2MOxsK23F2orBHW36i/B3rYdyK lHiryLuJy3FKCjDaHpVuFMnWnA2XCbieN117GutY628jvQxUVqG4eTRWrNf6l7/wTH6X p0rJ5zWMU16iVU3JjTpmBtNM4RoN4uipArDMdRc7vwwY5XTV13AyNwiRIJ3wHpQge+xu 99AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WEyUzI9w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q31-20020a63f95f000000b005c6001ec190si1554284pgk.892.2023.11.30.07.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:43:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WEyUzI9w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 2AD1480267E2; Thu, 30 Nov 2023 07:43:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346345AbjK3Pmt (ORCPT + 99 others); Thu, 30 Nov 2023 10:42:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232246AbjK3Pms (ORCPT ); Thu, 30 Nov 2023 10:42:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 393BB83 for ; Thu, 30 Nov 2023 07:42:55 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D965EC433C8; Thu, 30 Nov 2023 15:42:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701358974; bh=LhpLwZbqacivXxz4RxHyaTQfxJ302f9kFQFwo/zcAaQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WEyUzI9wv89NSYrocNXfNyKhf9x134F1jZhlWvSy8FXmXBA029/ocyYJ9eZd0axdS mWy0RU+Qlmzt+cVSfmDh4B7NPTe0RbdRorURXGLI0b6wj7w53VuNS1dASz7IcmtPtB qR5DQqj5HFk6gZl1EXzpqF/xJ7G7ZDKXxcovixk56nd88Grxxs4wGSEChtYx5Y+dNu 5buBY/Zx4oxsjrFx6S/t4z/zfe9z/Ctl8WQpiEIrORxzOr1JlKcvCEXj5epTtcfIHS TQyL49JAaaTuEZ6cGFp1FrnSpiNUixZd++u09FcwRnI2ouNBONUbK2PltJaXkWdRFm jel0NsMBvc6Uw== Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-1fa8dc2a0bfso522367fac.0; Thu, 30 Nov 2023 07:42:54 -0800 (PST) X-Gm-Message-State: AOJu0YzEfvzA2am7gDAYhdwSMm/MHucaJQI8jyJTko5EReSh+zMDxEII g3Y4SlB+Nk0PynCpXhuCLS6ffA21Jnm87QmfchM= X-Received: by 2002:a05:6870:a101:b0:1f9:5ce0:5984 with SMTP id m1-20020a056870a10100b001f95ce05984mr25352810oae.55.1701358974289; Thu, 30 Nov 2023 07:42:54 -0800 (PST) MIME-Version: 1.0 References: <20231122034753.1446513-1-senozhatsky@chromium.org> <20231128053443.GA6525@google.com> <20231129041307.GB6525@google.com> In-Reply-To: <20231129041307.GB6525@google.com> From: Masahiro Yamada Date: Fri, 1 Dec 2023 00:42:18 +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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 07:43:01 -0800 (PST) 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 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. --=20 Best Regards Masahiro Yamada