Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1059541rdb; Wed, 24 Jan 2024 03:48:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2g1ju9qkQk9eK30zoT8raYl36vgWFdkQMacRM/AW5haFBThdYK1gp/xbenq2yzmZyJyju X-Received: by 2002:a05:6214:d8a:b0:686:aa87:4f12 with SMTP id e10-20020a0562140d8a00b00686aa874f12mr1759234qve.66.1706096907179; Wed, 24 Jan 2024 03:48:27 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t15-20020a0ce2cf000000b00685a9d092f1si9158301qvl.543.2024.01.24.03.48.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 03:48:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=M4Y0YNtR; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-36902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36902-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CAEDD1C2139D for ; Wed, 24 Jan 2024 11:48:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B351155766; Wed, 24 Jan 2024 11:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M4Y0YNtR" 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 CE75A54BE6; Wed, 24 Jan 2024 11:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706096655; cv=none; b=E3hxfOGbP7su+t3n0dL+Z3ysKrmMFq/e+Beiwv3jQuRWyWLq8m7RgGhG29uJni5J6iSS1jcHYSZOdGIEAT9fQciSkyNhW2IDDwGHxYe1mKfnVmD/Tvoto7DNsDyxgMqL7hmZlOzCxHvKXonogSBV3wiLGG3/TIL6ivF2uUepK2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706096655; c=relaxed/simple; bh=ou25a266zywPby6WgQZvxo8eRAMCHvr/U81WBrVmjzc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=i2MAnE8KLtfk+bzslUh+GW+QITMa/Kiwn/C7UB17ZV1iKlBG6FHx0eaU7HHnWQXnz1sWe+BbbgxeFuI3zIaWjYCpTwM7pFOC6QpFKfk0exrrW51nYw5wphDGBCts6hSHXSlmUmePb4eLCuY/fK8/zNCjqJrUBosU6B6OxA8bzyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M4Y0YNtR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57DD4C433F1; Wed, 24 Jan 2024 11:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706096655; bh=ou25a266zywPby6WgQZvxo8eRAMCHvr/U81WBrVmjzc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=M4Y0YNtRXTQQiNf1u95ImNgJFx/IuA9k+rhvL31XQF252omLvwFuJj3aa7tDNP3A+ zX9c1d5Ge5oG+qIRRWOODoEKRIdW3RjulRtrkdf+ySEwYQh2UZekpO3tY/n/fM/Umr kpztZeB98FTlDstIY/S2OuhKB1Bns9/hUS3c/z8JfwtDIpAEXtP3Z87oS4Xk2845eb kCyPymOwX6TOT6rHhjNHxCYYcJgPrfHXEC+W9aDBw086f3uqGIuUyyGamUuGaYTy0A +2LgnOuVRLrW2Pu9nHGdQgixMAfvJmQOnhBD4G05qKWQaA8e8VSy9v/TWLcwlcNqTT pdJjKBUM4d5bw== Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-2144ce7ff41so1426204fac.3; Wed, 24 Jan 2024 03:44:15 -0800 (PST) X-Gm-Message-State: AOJu0YyjrC7i5WBnuo7YOT73AtykgNVPq3qyBt4yBdAH+EWMTY7oXQFG hYtu7Po4Beu/GHVUIx7OBt7sjcsVoUCFx7O9kkI8y0FrDn/w4m2h68jhgDblpEIhdQkPh6fbk9P aRLDv8untByrC6v9KcahIQI9lIsk= X-Received: by 2002:a05:6871:a6a6:b0:210:b306:e710 with SMTP id wh38-20020a056871a6a600b00210b306e710mr2893063oab.115.1706096654684; Wed, 24 Jan 2024 03:44:14 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231125163559.824210-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Wed, 24 Jan 2024 20:43:37 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] kconfig: remove unneeded symbol_empty variable To: Geert Uytterhoeven Cc: Yoann Congal , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Linux-Renesas , Vegard Nossum Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2024 at 6:52=E2=80=AFPM Geert Uytterhoeven wrote: > > Hi Yamada-san, > > On Wed, Jan 24, 2024 at 9:10=E2=80=AFAM Masahiro Yamada wrote: > > On Wed, Jan 24, 2024 at 12:11=E2=80=AFAM Yoann Congal wrote: > > > Le 23/01/2024 =C3=A0 13:54, Geert Uytterhoeven a =C3=A9crit : > > > > On Sat, Nov 25, 2023 at 5:36=E2=80=AFPM Masahiro Yamada wrote: > > > >> This is used only for initializing other variables. > > > >> > > > >> Use the empty string "". > > > >> > > > >> Please note newval.tri is unused for S_INT/HEX/STRING. > > > >> > > > >> Signed-off-by: Masahiro Yamada > > > > > > > > Thanks for your patch, which is now commit 4e244c10eab345a7 > > > > ("kconfig: remove unneeded symbol_empty variable") in v6.8-rc1. > > > > > > > > When running "make _defconfig" with _defconfig an SMP > > > > defconfig without explicit configuration of CONFIG_LOG_CPU_MAX_BUF_= SHIFT, > > > > the aforementioned commit causes a change in the generated .config: > > > > > > > > -CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D12 > > > > +CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D0 > > > > > > > > It looks like CONFIG_BASE_SMALL=3D0 is treated as a string instead = of > > > > the integer number zero? > > > > > > > > init/Kconfig=3Dconfig LOG_CPU_MAX_BUF_SHIFT > > > > init/Kconfig- int "CPU kernel log buffer size contribution (13 = =3D> 8 > > > > KB, 17 =3D> 128KB)" > > > > init/Kconfig- depends on SMP > > > > init/Kconfig- range 0 21 > > > > init/Kconfig: default 12 if !BASE_SMALL > > > > init/Kconfig: default 0 if BASE_SMALL > > > > > > > > Note that reverting 4e244c10eab345a7 is not sufficient to fix the i= ssue. > > > > Also reverting commit 6262afa10ef7cc8f ("kconfig: default to zero i= f > > > > int/hex symbol lacks default property") does fix it. > > > > > > (Since I'd really like 6262afa10ef7cc8f ("kconfig: default to zero if= int/hex symbol lacks default property") to stay, allow me to try to help) > > > > > > The problem is quite easy to reproduce: > > > $ make x86_64_defconfig > > > $ grep 'LOG_CPU_MAX_BUF_SHIFT\|BASE_SMALL\|BASE_FULL' .config > > > CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D0 > > > CONFIG_BASE_FULL=3Dy > > > CONFIG_BASE_SMALL=3D0 > > > Here, CONFIG_LOG_CPU_MAX_BUF_SHIFT should be 12 not 0. > > > > > > > > I could not produce it in this way. > > I ran the same commands as yours. > > > > CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D12 for me. > > > > > > > > masahiro@zoe:~/ref/linux(master)$ git describe > > v6.8-rc1-29-g615d30064886 > > masahiro@zoe:~/ref/linux(master)$ git diff > > masahiro@zoe:~/ref/linux(master)$ make x86_64_defconfig > > # > > # No change to .config > > # > > masahiro@zoe:~/ref/linux(master)$ grep > > 'LOG_CPU_MAX_BUF_SHIFT\|BASE_SMALL\|BASE_FULL' .config > > CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D12 > > CONFIG_BASE_FULL=3Dy > > CONFIG_BASE_SMALL=3D0 > > Interesting... > > $ git describe > v6.8-rc1-29-g615d300648869c77 > $ make x86_64_defconfig > [...] > $ grep 'LOG_CPU_MAX_BUF_SHIFT\|BASE_SMALL\|BASE_FULL' .config > CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D0 > CONFIG_BASE_FULL=3Dy > CONFIG_BASE_SMALL=3D0 > > Does it depend on the flex/bison version? > I have Ubuntu LTS flex 2.6.4-8build2 and bison 2:3.8.2+dfsg-1build1. > Interesting. The result depends on the distro. I got CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D0 in the Ubuntu 22.04 docker container, but CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D12 in the Ubuntu 23.10 docker container. -- Best Regards Masahiro Yamada