lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 12 Nov 2011 23:18:17 +0100
From:	Paul Bolle <pebolle@...cali.nl>
To:	Chen Liqin <liqin.chen@...plusct.com>,
	Lennox Wu <lennox.wu@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] score: Kconfig: drop nine selects and one entry

The config entries in the "System type" choice each use the same three
select statements. The Kconfig symbol SYS_SUPPORTS_32BIT_KERNEL is only
used by mips. The Kconfig symbol CPU_SCORE7 is used once, in an (almost)
empty Kconfig entry, and there are no uses of CONFIG_CPU_SCORE7. (This
means that the CPU_SCORE7 entry can also be dropped.) And
GENERIC_HAS_IOMAP is a typo. It should have been GENERIC_IOMAP. But
there's an entry for GENERIC_IOMAP that defaults to y, so no one
noticed.

So all selects from the config entries in this choice can be dropped.
And so can the CPU_SCORE7 config entry.

Signed-off-by: Paul Bolle <pebolle@...cali.nl>
---
0) git grep tested only.

1) Please note that ARCH_SCORE7, MACH_SPCT6600, and SCORE_SIM aren't
used anywhere else. There are also no uses of CONFIG_ARCH_SCORE7,
CONFIG_MACH_SPCT6600, and CONFIG_SCORE_SIM macros. Perhaps the entire
"System type" choice can be dropped.

 arch/score/Kconfig |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/arch/score/Kconfig b/arch/score/Kconfig
index df169e8..4390afc 100644
--- a/arch/score/Kconfig
+++ b/arch/score/Kconfig
@@ -11,28 +11,17 @@ choice
 
 config ARCH_SCORE7
 	bool "SCORE7 processor"
-	select SYS_SUPPORTS_32BIT_KERNEL
-	select CPU_SCORE7
-	select GENERIC_HAS_IOMAP
 
 config MACH_SPCT6600
 	bool "SPCT6600 series based machines"
-	select SYS_SUPPORTS_32BIT_KERNEL
-	select CPU_SCORE7
-	select GENERIC_HAS_IOMAP
 
 config SCORE_SIM
 	bool "Score simulator"
-	select SYS_SUPPORTS_32BIT_KERNEL
-	select CPU_SCORE7
-	select GENERIC_HAS_IOMAP
+
 endchoice
 
 endmenu
 
-config CPU_SCORE7
-	bool
-
 config GENERIC_IOMAP
 	def_bool y
 
-- 
1.7.4.4



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ