From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailapp01.imgtec.com ([195.59.15.196]:35231 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23992366AbdC3UwYkbDqH (ORCPT ); Thu, 30 Mar 2017 22:52:24 +0200 From: Paul Burton Subject: [PATCH] MIPS: Remove CONFIG_ARCH_HAS_ILOG2_U{32,64} Date: Thu, 30 Mar 2017 13:51:59 -0700 Message-ID: <20170330205200.25635-1-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Ralf Baechle , linux-mips@linux-mips.org Cc: Paul Burton , trivial@kernel.org Message-ID: <20170330205159.O9g3mvNGMaApk4bJtVKAWYKlcGdFC2o42emvYfzC-pE@z> We declare CONFIG_ARCH_HAS_ILOG2_U32 & CONFIG_ARCH_HAS_ILOG2_U64 in Kconfig, but they are always false since nothing ever selects them. The generic fls-based implementation is efficient for MIPS anyway. Remove the redundant Kconfig entries. Signed-off-by: Paul Burton Cc: Ralf Baechle Cc: linux-mips@linux-mips.org Cc: trivial@kernel.org --- arch/mips/Kconfig | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index a008a9f03072..33bc84ffd6b2 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1040,14 +1040,6 @@ config RWSEM_GENERIC_SPINLOCK config RWSEM_XCHGADD_ALGORITHM bool -config ARCH_HAS_ILOG2_U32 - bool - default n - -config ARCH_HAS_ILOG2_U64 - bool - default n - config GENERIC_HWEIGHT bool default y -- 2.12.1