[PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP

Julian Braha posted 1 patch 1 day, 23 hours ago
drivers/mtd/maps/Kconfig | 1 -
1 file changed, 1 deletion(-)
[PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP
Posted by Julian Braha 1 day, 23 hours ago
'select' does not work on config options in a 'choice', so currently it is
possible to enable MTD_PHYSMAP_IXP4XX without MTD_CFI_BE_BYTE_SWAP.

From a previous conversation, it was decided to remove the select entirely:
https://lore.kernel.org/all/c6268184-4904-49d9-b14f-0e11dce8bdad@app.fastmail.com/

This dead select was found by kconfirm, a static analysis tool for Kconfig.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
---
Changes since v1: remove 'select' instead of using 'depends on'
Link:
https://lore.kernel.org/all/20260722001003.36598-1-julianbraha@gmail.com/
---
 drivers/mtd/maps/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index f447902d707e..1bb3dba2631d 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -101,7 +101,6 @@ config MTD_PHYSMAP_IXP4XX
 	depends on MTD_PHYSMAP_OF
 	depends on ARM
 	select MTD_COMPLEX_MAPPINGS
-	select MTD_CFI_BE_BYTE_SWAP if CPU_BIG_ENDIAN
 	default ARCH_IXP4XX
 	help
 	  This provides some extra DT physmap parsing for the Intel IXP4xx
-- 
2.54.0
Re: [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP
Posted by Arnd Bergmann 1 day, 15 hours ago
On Thu, Jul 23, 2026, at 00:06, Julian Braha wrote:
> 'select' does not work on config options in a 'choice', so currently it is
> possible to enable MTD_PHYSMAP_IXP4XX without MTD_CFI_BE_BYTE_SWAP.
>
> From a previous conversation, it was decided to remove the select 
> entirely:
> https://lore.kernel.org/all/c6268184-4904-49d9-b14f-0e11dce8bdad@app.fastmail.com/
>
> This dead select was found by kconfirm, a static analysis tool for Kconfig.
>
> Signed-off-by: Julian Braha <julianbraha@gmail.com>
> ---

Acked-by: Arnd Bergmann <arnd@arndb.de>