From: Dan Carpenter <dan.carpenter@linaro.org>
To: Tom Rini <trini@konsulko.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>,
Rick Chen <rick@andestech.com>, Leo <ycliang@andestech.com>,
Simon Glass <sjg@chromium.org>,
Angelo Dureghello <angelo@kernel-space.org>,
Bin Meng <bmeng.cn@gmail.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Alexander Gendin <agendin@matrox.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Michal Simek <michal.simek@amd.com>,
Randolph <randolph@andestech.com>,
Yu Chien Peter Lin <peterlin@andestech.com>,
Samuel Holland <samuel@sholland.org>,
Shengyu Qu <wiagn233@outlook.com>,
u-boot@lists.denx.de
Subject: [PATCH v2 1/2] Kconfig: move CONFIG_32/64BIT to arch/Kconfig
Date: Mon, 4 Mar 2024 10:04:15 +0300 [thread overview]
Message-ID: <b57b0fd3-dfb9-48c4-af0e-076222c85df7@moroto.mountain> (raw)
In-Reply-To: <1cb3255b-5ed7-443b-8a02-6e998126d417@moroto.mountain>
These configs are used in multiple places so put them in a shared
Kconfig file.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
v2: split the patch into two patches
arch/Kconfig | 6 ++++++
arch/mips/Kconfig | 6 ------
arch/riscv/Kconfig | 6 ------
3 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index b6fb9e927337..70f3b85b449a 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -20,6 +20,12 @@ config SYS_CACHE_SHIFT_6
config SYS_CACHE_SHIFT_7
bool
+config 32BIT
+ bool
+
+config 64BIT
+ bool
+
config SYS_CACHELINE_SIZE
int
default 128 if SYS_CACHE_SHIFT_7
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index f0704d97f79b..eb7f3ad23762 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -473,12 +473,6 @@ config MIPS_TUNE_74KC
config MIPS_TUNE_OCTEON3
bool
-config 32BIT
- bool
-
-config 64BIT
- bool
-
config SWAP_IO_SPACE
bool
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index ac52c5e6dafa..6c26f91f1669 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -288,12 +288,6 @@ endmenu
config RISCV_ISA_A
def_bool y
-config 32BIT
- bool
-
-config 64BIT
- bool
-
config DMA_ADDR_T_64BIT
bool
default y if 64BIT
--
2.43.0
next prev parent reply other threads:[~2024-03-04 7:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-04 7:03 [PATCH v2 0/2] arm64: Enable CONFIG_64BIT for static analysis Dan Carpenter
2024-03-04 7:04 ` Dan Carpenter [this message]
2024-03-04 14:16 ` [PATCH v2 1/2] Kconfig: move CONFIG_32/64BIT to arch/Kconfig Tom Rini
2024-03-14 0:38 ` Tom Rini
2024-03-04 7:04 ` [PATCH v2 2/2] arm64: Enable CONFIG_64BIT for static analysis Dan Carpenter
2024-03-04 13:44 ` Heinrich Schuchardt
2024-03-04 14:11 ` Csókás Bence
2024-03-04 14:16 ` Tom Rini
2024-03-04 14:27 ` Dan Carpenter
2024-03-14 0:38 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b57b0fd3-dfb9-48c4-af0e-076222c85df7@moroto.mountain \
--to=dan.carpenter@linaro.org \
--cc=agendin@matrox.com \
--cc=angelo@kernel-space.org \
--cc=bmeng.cn@gmail.com \
--cc=daniel.schwierzeck@gmail.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=michal.simek@amd.com \
--cc=peterlin@andestech.com \
--cc=randolph@andestech.com \
--cc=rick@andestech.com \
--cc=samuel@sholland.org \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=wiagn233@outlook.com \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).