Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1672688lqt; Sun, 21 Apr 2024 05:08:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2hS1WcAU8nXR/7bjs8AGlISllsPSWRg1YrUOQDURRRXhvlKZ248YSnL2kQMn8zvvChzEqfp1EL9EJiOBw/Vr080goYhbYTvfUHw2Wgg== X-Google-Smtp-Source: AGHT+IH+eKiW47iroDTNy37VbeltY7p2mhoQykn43M+TL8+h95kyMBKzRYJAnBpBGTpZJkqsrrBH X-Received: by 2002:a17:902:f78c:b0:1e6:114c:2e54 with SMTP id q12-20020a170902f78c00b001e6114c2e54mr10739618pln.69.1713701318772; Sun, 21 Apr 2024 05:08:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713701318; cv=pass; d=google.com; s=arc-20160816; b=0yLvVsEFNFt61yMeqWPxnUOlI/njDUroNSJ7raRRQXSsKJ4hQzjYrWXR8rN4sBr/7K Y97zBT1TMb860yoOWmzZg+WvnxDxUcvQiG290JXBnM8f6WAUx+Hmp9UmWG+dfHAighma FYFKxiX3BJ78wmw5cliZGZjMbPejCyfj2YJQBhMKeYRZA27XPy9evM5qNlgH3sNpeArG gFXTFIMDJKbbgnFbSi9//YnGuhGS8l8RBuX+qBbIbMBIDGbJnLA41q3O8XbrYLV5RSPI 9WXeAG8Mw06Pmf7kBOq+IpceJSuYLu8YL0FSLvF6kPC6uqjWrRTpVXzbscPkhPQc2zlP /5eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=91cuu22kyOYtbou9KwMeVIkO9sC2vwWkRITM6FHFmis=; fh=ItXasMKUZYMIBTNKWbc/pQ2tIc5aEYAPLlBlNXpgqZY=; b=V+KooiBkLlc+lQ28+IM7l81z461zpXMGGbJIU3jUO+sHnMkl9W6oDo/mcYOkvSxx2W U+k7ZRs6rLCK4d8DRcontT/yvnaQQWWSzpxUoI/Fjtew+mQHJ4p6g8Bd6MbssFXNnKR1 B2zfP/QSXsgkkDwBl3ek0uC/uyD0UwjjIzJuFfxdT18sdPIv6aVGCH6+++FNnEdFXYYL Y5JGU8QrVHIkSfn1KwCk4I8OT3B+U7ltxK0gMJqzDRDDIgr9/p7nsOzziCw3jKotDEvN 0hYGVZO93W+v7G0KAqLoxG0RFiD7ihLdxkg/x17kwsuFBGu0pDxEVyh9bfm13QT/MIMY DMcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UqSUuQpK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152485-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152485-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. [139.178.88.99]) by mx.google.com with ESMTPS id z8-20020a170902ccc800b001e85dc64080si6303875ple.61.2024.04.21.05.08.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 05:08:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152485-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UqSUuQpK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152485-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152485-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 68D0F280FA1 for ; Sun, 21 Apr 2024 12:08:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8492812E4E; Sun, 21 Apr 2024 12:08:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UqSUuQpK" 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 95EA610A0C; Sun, 21 Apr 2024 12:08:30 +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=1713701311; cv=none; b=Fwa1uFb1AYHWA/x7aoa52+h609zQqVQPRLl6Ro9lQkeGFhWty66VONCgzuixraeuYxfo1mFiEna6Q70dJBR98iebyBzkDVwuefWuJC9BxY505waN9ihCxHM3mJIbKCrEJLwIXEBb1FdqAHgo5OA7o37nHwRIoWttn2/x5uMGUPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713701311; c=relaxed/simple; bh=nsnyM7iDeXKSHIowtiCZl5ToaOYTW3mkGiIfj5zbErE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=A3ylPY4SqjlIEXZBnUkiIOVSCEeHet8aYpPUtURPe5qJzodjPhBh7QXzxfgMj7zyTLWeOhyjUcsBxxOZ2tfybMMG1Lr17SXsPUQShxbOgVYfhoD45fNgMP4dv54nQMRdGxR7eXzoxKzR9vcg9E9bVqp68yrdgTcD6VtXN04VqVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UqSUuQpK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1C72C113CE; Sun, 21 Apr 2024 12:08:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713701310; bh=nsnyM7iDeXKSHIowtiCZl5ToaOYTW3mkGiIfj5zbErE=; h=From:To:Cc:Subject:Date:From; b=UqSUuQpKfeiDZSLfCpS/tEZcpoS5vngSA1EdPIuAIVT++I3jWUa5EyRwpqmNrXvsV 4HTgiPxl5Q53qod098itWjb9YCnN8pM/N4EMb7Si1RqMrp34AUm3n7CgZsuN3UvOFj OlSkJRyb13O7KBOTSA3TdyCSivjFlmuXqq7Nx+luEVP7QAl5Ze86acZjHKCIsVJbNx +A4BvHaDqOSe+80OJosM7Phr1WlacgtbvCdMlySEHMIG9xQPRVWsHlFMZsM7gMKqOC QyAe4mfH14g+Iw9qqM7IyzY/IiYXVR+rgLoF+Fb/cN8qKDEM+4qlRFAJ2xBSBJ0jeZ HsJwI7B1nJPUw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , linux-sh@vger.kernel.org, Masahiro Yamada , Jonathan Corbet , Nathan Chancellor , Nicolas Schier , linux-doc@vger.kernel.org Subject: [PATCH 0/2] kconfig: remove unneeded 'optional' property support Date: Sun, 21 Apr 2024 21:08:22 +0900 Message-Id: <20240421120824.2713923-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Kconfig support 'optional' for choice blocks, but it is unneeded. Currently, it is only used in arch/sh/Kconfig. Covert it (add a place-holder option, CONFIG_CMDLINE_NO_MODIFY) and clean up the Kconfig code. (Ack from the sh maintainer is appreciated) Masahiro Yamada (2): sh: convert the last use of 'optional' property in Kconfig kconfig: remove 'optional' property support Documentation/kbuild/kconfig-language.rst | 3 --- arch/sh/Kconfig | 6 ++++- arch/sh/configs/apsh4a3a_defconfig | 1 + arch/sh/configs/apsh4ad0a_defconfig | 1 + arch/sh/configs/edosk7705_defconfig | 1 + arch/sh/configs/hp6xx_defconfig | 1 + arch/sh/configs/landisk_defconfig | 1 + arch/sh/configs/magicpanelr2_defconfig | 1 + arch/sh/configs/rsk7264_defconfig | 1 + arch/sh/configs/rsk7269_defconfig | 1 + arch/sh/configs/se7619_defconfig | 1 + arch/sh/configs/se7705_defconfig | 1 + arch/sh/configs/se7722_defconfig | 1 + arch/sh/configs/se7750_defconfig | 1 + arch/sh/configs/secureedge5410_defconfig | 1 + arch/sh/configs/sh7710voipgw_defconfig | 1 + arch/sh/configs/sh7724_generic_defconfig | 1 + arch/sh/configs/sh7770_generic_defconfig | 1 + arch/sh/configs/sh7785lcr_32bit_defconfig | 1 + arch/sh/configs/sh7785lcr_defconfig | 1 + arch/sh/configs/urquell_defconfig | 1 + scripts/kconfig/confdata.c | 5 +--- scripts/kconfig/expr.h | 1 - scripts/kconfig/gconf.c | 2 -- scripts/kconfig/lexer.l | 1 - scripts/kconfig/lkc.h | 5 ---- scripts/kconfig/menu.c | 12 +++------ scripts/kconfig/parser.y | 9 ------- scripts/kconfig/tests/choice/Kconfig | 26 ------------------- .../tests/choice/allmod_expected_config | 4 --- .../tests/choice/allyes_expected_config | 4 --- .../tests/choice/oldask0_expected_stdout | 2 -- scripts/kconfig/tests/choice/oldask1_config | 1 - .../tests/choice/oldask1_expected_stdout | 6 ----- 34 files changed, 29 insertions(+), 77 deletions(-) -- 2.40.1