From patchwork Sat May 13 17:21:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 99752 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp840791qge; Sat, 13 May 2017 10:22:11 -0700 (PDT) X-Received: by 10.98.48.131 with SMTP id w125mr10594544pfw.141.1494696131671; Sat, 13 May 2017 10:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494696131; cv=none; d=google.com; s=arc-20160816; b=kwny5GlXE+8z2ciwQLu2U/Ce5eJyWOWMYEZ06LfYJKE5ZWFuWr6msI4iVqCzeicyUQ tZwEUOhNRFYJcepBWM4IbF7BCuxCiej8we4LRKozK00y6LESp8Vec+cbYd1wdkY2JWZF GmtQ+svJLZJVjS0o1Gunj3cwx1/AdraLm8VvyWcKV8LyYj7WGXqOcwxTa18OQ04e9B0V pR078Km9oOgB9VTdKwOabXx6Uo33olhXg+gYsF9eKfXZhJ8MGC7LsUzjnZe0zdjwwfEg oVceEBO7rLAfXfHPOo5nCfBYqn3BquojMUZgchIhsMj53LYGPDN9Y9XI8QW5MGQ93L5n 72Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=fLqqeNKhpD0UlrL1XKdAWoHBfh4GU8X5/4VJRT7KxIE=; b=r6SayHU+bNpoa02oa+N6ulpuvjH3lbm8+dHdH1byDbJvOfIzGe565jujRpc/LwByDf YZ11WqpxGp6XA6EKofV0EbzrxRDIPU5vpm88n4TPvgk8PA0c6cnmSI5QVkDTOUChkof9 NUT5lP0Mbe1ep9i/xtvsOPHGpXzMd6XErHoO+RrZAlTOgSOyVrLYI5U7axvDAvYqDzAX NhJAcdYuRs5eN47DWX10Ozb85Vf//38e3ZpILXDqwcZobk9fPnIZN+ZYIRDZKklvOXzl Fk2hgh2Q13sZTUqzZG+1uZuwTb8Dv7Gbx2VJwa0aiGeqF61YpLBUCpj/2wlAoSx8++gA 31VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z61si6038626plb.68.2017.05.13.10.22.11; Sat, 13 May 2017 10:22:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756831AbdEMRV5 (ORCPT + 25 others); Sat, 13 May 2017 13:21:57 -0400 Received: from mail-by2nam01on0064.outbound.protection.outlook.com ([104.47.34.64]:38752 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751519AbdEMRVw (ORCPT ); Sat, 13 May 2017 13:21:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fLqqeNKhpD0UlrL1XKdAWoHBfh4GU8X5/4VJRT7KxIE=; b=V3I+DjCxNL/VW5TOdqvn5x8d3a0ICCVCRJpKg1lqOaDxhA47zwWHRg4qWxpV19T60SmVriMix02GOydHhNBr0++0XpCtboVhsP8XkxnlLDqrrT3mvnAkAly4q98Y+rdR2Pig3IgUmdxYgeBYVS456IYSWodwFrhpq6fFen1L8wE= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (176.59.38.244) by DM2PR0701MB1277.namprd07.prod.outlook.com (10.161.225.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Sat, 13 May 2017 17:21:50 +0000 From: Yury Norov To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Cc: Yury Norov , Akinobu Mita , Paul Bolle Subject: [PATCH] arch: remove GENERIC_FIND_FIRST_BIT Date: Sat, 13 May 2017 20:21:37 +0300 Message-Id: <20170513172137.10893-1-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Originating-IP: [176.59.38.244] X-ClientProxiedBy: DB6PR02CA0013.eurprd02.prod.outlook.com (10.170.218.154) To DM2PR0701MB1277.namprd07.prod.outlook.com (10.161.225.15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a7a0f88b-ecff-4fb2-8184-08d49a248b45 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM2PR0701MB1277; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1277; 3:4+qZ1O/m136B55x3qR1QZElHDQAeNe6mc3Ob3VrB02FWTXzaQpgUD4AB1WDW3QRAyoQv5J+9djO7RzgmtatutXBV3D5p3eVPgl+cuGOP9sA1XjJWvqgJCZe+ST9yPLWqG1PYQwNskgrwtQKRHdO2iYeEabd8JOtv8mNkImzlqQUoteFSTjM/pwf5/3S937UC7VBja41OqC4yPJLfyZC2RBPhXASDBUONMluFxkLp79X4Qb5N3PkGJPpFyziuAzdog69t5cK4dd3MaxwvldG4VwEBsF8Dt1rrCw2Nb8VN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MOiHwV72pnvtvv/ytiweEtU3PRPY1E/osXxWP11tOfzBmmW9HcUVAO9UUmVeiCpO/Cd4UaG1gB4MNFtWEYHF6WrHD7bOxDvyF2cnquOMaU0cGexD2HynVC+l1FGPgncKLCOdakzsjdXZbU6m6+uOVaIOmckz81DKay75xUPlen0Ffb5p+UR15s7YgCGC38gwoP8vW+GgKx7Z0qLKL9OzJxgrFK2GRKoMu3uWvfwXe8pzTaLmX80qiDI5RefemuzL3conjogKKd1S8LRDfOMBSql6i5GEFy3J25tCBf9vd/oHWFNo/3N2cp3lBOdre5KDGKnTzfT3+/9Tn/cbJlMc290Jmya8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(6041248)(20161123558100)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:DM2PR0701MB1277; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1277; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1277; 4:7m8zlhUeNVFvYj0G39d9DKlmRg5Elb/3zsGjPm+g4F36JPVby5IMVif8X1nr+WaDXqAdXlMAHuGxOzXJw+sfu3Lv/dB66apDS3vKXH8/GZ0Z0tX2Shm/88VioH8KZTrxdd3NigCxE5sIei2i+d3kWLURHhdiTkn8ctfq/ANz79DsuyWIq1NCuxFDExMwU3G9NO8PAtVtobCFjbpWitfpSIAJA8dOsgtWwYqyJ6WqW3dyZiwtxvTtnOaLJg+6VR9ntPfEDQWx+t3i3i+W99v2JrIjaWBI7O6c7cQAF4RIkuIQg2rjuLRh8YyNVdOMGKj6GNpNSLTwa+ViqmHN+1jQVLYW3BkAC+U2rlmdtvT3OEj+/vQtfYG4d1k2U/ghRSky4OiWW6Y29FYuWdKg9m0lReMsPzXcA8wws5lk5Sv++TfEOHIORQFJoMKJdSlZbBDhErYCU+9Yb4LxdJ07TnLrPfz0snbpiuVjEL+uGf48KuRQ13rjmGO0eIibeUUpabw1xrxolHk/bjpeP6EgeE0mweMjOeRBXYPuiAfJFaAHxe85dRbl0LCUayInAngsgBU2VDDf15fzGokamIRbAcf+izVvZlcK1q/dxpSMdPGyz+rWwOu4a5afG/kauv1V1vCC8HiGeRMcniiUFVrXjolLVLPgkI0yiRzgFXXanp59P7DzkPt+F851Ikkyl4u/37H0Eh9F5BJ4iI8RbwKoEZfp9nwFaGSTsrYasVVqmaSqg3GdnqMw3hrnyEaMCqzll4ans50vDcZAS6wgweuG94w84A== X-Forefront-PRVS: 0306EE2ED4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39400400002)(39840400002)(39410400002)(39850400002)(39450400003)(48376002)(50466002)(5003940100001)(5660300001)(305945005)(7736002)(53936002)(2906002)(54906002)(47776003)(189998001)(72206003)(33646002)(25786009)(66066001)(76506005)(4326008)(6666003)(42882006)(81166006)(8676002)(50986999)(6486002)(42186005)(50226002)(478600001)(110136004)(38730400002)(6916009)(6496005)(6116002)(3846002)(36756003)(1076002)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1277; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1277; 23:re+4649uO0ySYuz2lO+9aGWaZmk03HgUv5aWl8iMO1mQrT9+Duh+o2RcmXB+5XY/7imUqwkOdiXziVIzhF6q8tJt+fIxS4/Sdm45Z2tYCvSwNm9FdjyO5UMXBIsGMY+gsx5EL5kShfT3NAnthgvde8zq7ZekeUrwZW54gu4dG7p3X8noa+tcam+Rfe103FV2AIsRSvTF52+jBC7qDyjYXxHRSWxmHfmUlPVjDUlPWLi6gF2z91mR1Cp9+w0DcTQXwdTn9AzTf4xCN3IK2x6UYnZfH/oEoGxHUvDU+d377xMvL//E2+rG1FPck20XCBgcz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2p5T25SLyLAxYJxzuG5L7f/PzuDuoznYNZ+4U3W8RFuI2nZT3HEx6VK5NF2h3MGH+936bDBd6BqTnRd+mkODviwpYpLpw5z39La1qIZLRY9Kz/HFPNTNjJXpvTT/fN5rojZsG3nR+EWlVlfA1hgDQ8qXvty5ySSuHxMHJDRQyfVdtSHpEx1vIDHp+IJkRHHhyU72irKVIe8Gjtue2lbgEl4uNOwlz6uOXCWEsCn0rhW3DBXvfik+i0+ArVTvZtznatcg==; 5:Msmcm6f3uRyD4PoC8QvPWMYEBNvOrjvUA9smhaXnC9R3EZirLwOPRiAhz3tqssxCbVuzF4NcWpb2/y/Q9F//A5pZ3QEXTN+5byg97A/58R/hTnRHam8yP+CvTLTc1oFIHWZbcecqFF62RTWl2N+lbA==; 24:64Y1r1WcBBfHfdQvy5llUSx0lSSe1XoFis1wQP43yr9AswRvt6urMMZtuQ6P5+fTEiJ1GjKYu1luwh2zg++dFffm+9EYb+RqwNhc9XxmIhQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1277; 7:n3Y8yMNd9SC6BsGIf4ULlWWEZzwTyCeNnw0xhfrGFdoaJBh//udiF1SQeE9rM8x/Nomwr1vxlPniLc7N/iOx5FeSwnLHYurqsrNAMmKzbfXNAreTA1laGNqkGk/yQRCWpQD8ptKPTl09Caq+MgC5T05w+nVlEpTrFyoCePPt2QMWHGJ7QZzUgbT9DjtrPJAaJfNRj5mCmwF9BEzdzyBJgYEo+JCFSDSdz8X+wLRKaxWqoUDo4BHlkBHEj/Pr2sg3Vr98H/D+/Lz/oPjgeU/JMujPJss6HvlIjb2GDvKedZ8izCEvjR3ARa7AJcXtPptFyxkWTyWOTwOoKPeIasCS2w== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2017 17:21:50.6546 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1277 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This option, if disabled, is used to alias find_first_bit() to find_next_bit() with the trivial macro: #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) And the same for find_first_zero_bit(). The problem here is that the implementation of find_next_bit() is more complex, and that extra complexity is not really needed if the offset that passed to find_next_bit() is known to be 0. This patch removes GENERIC_FIND_FIRST_BIT and drops the alias to find_next_bit(). Architectures that enable GENERIC_FIND_FIRST_BIT will be obviously not affected with this change. Namely, arc, s390, tile, unicore32 and x86. Some architectures implement their own implementations, so they are not affected too. They are: arm, m68k, unicore32. (Unicore32 both enables the CONFIG_GENERIC_FIND_FIRST_BIT and has custom implementation for it.) Others will switch to separate implementation. Tested on arm64. There is a couple of patches in the kernel that remove similar config options: 63e424c84429 ("arch: remove CONFIG_GENERIC_FIND_{NEXT_BIT,BIT_LE,LAST_BIT}") and 65af3a3f89d7 ("arch: remove CONFIG_GENERIC_FIND_NEXT_BIT again"), but the GENERIC_FIND_FIRST_BIT is the last one that still there. So this path finishes the work. Signed-off-by: Yury Norov --- arch/arc/Kconfig | 1 - arch/s390/Kconfig | 1 - arch/tile/Kconfig | 1 - arch/unicore32/Kconfig | 1 - arch/x86/Kconfig | 1 - arch/x86/um/Kconfig | 1 - include/asm-generic/bitops/find.h | 8 -------- lib/Kconfig | 3 --- 8 files changed, 17 deletions(-) -- 2.11.0 diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index cab9c53e0354..ebc3b1cab103 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -17,7 +17,6 @@ config ARC select COMMON_CLK select GENERIC_ATOMIC64 if !ISA_ARCV2 || !(ARC_HAS_LL64 && ARC_HAS_LLSC) select GENERIC_CLOCKEVENTS - select GENERIC_FIND_FIRST_BIT # for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP select GENERIC_IRQ_SHOW select GENERIC_PCI_IOMAP diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index e7ff58150e8f..a3e61ca22d73 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -119,7 +119,6 @@ config S390 select GENERIC_CLOCKEVENTS select GENERIC_CPU_AUTOPROBE select GENERIC_CPU_DEVICES if !SMP - select GENERIC_FIND_FIRST_BIT select GENERIC_SMP_IDLE_THREAD select GENERIC_TIME_VSYSCALL select HAVE_ALIGNED_STRUCT_PAGE if SLUB diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index 845dcbd8235e..423817d88b8c 100644 --- a/arch/tile/Kconfig +++ b/arch/tile/Kconfig @@ -10,7 +10,6 @@ config TILE select CC_OPTIMIZE_FOR_SIZE select EDAC_SUPPORT select GENERIC_CLOCKEVENTS - select GENERIC_FIND_FIRST_BIT select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select GENERIC_PENDING_IRQ if SMP diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig index 9629fd827d6b..c1ba1c95bd32 100644 --- a/arch/unicore32/Kconfig +++ b/arch/unicore32/Kconfig @@ -13,7 +13,6 @@ config UNICORE32 select HAVE_KERNEL_LZMA select VIRT_TO_BUS select ARCH_HAVE_CUSTOM_GPIO_H - select GENERIC_FIND_FIRST_BIT select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select ARCH_WANT_FRAME_POINTERS diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index ead9e32744c7..abccd8ecb275 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -86,7 +86,6 @@ config X86 select GENERIC_CMOS_UPDATE select GENERIC_CPU_AUTOPROBE select GENERIC_EARLY_IOREMAP - select GENERIC_FIND_FIRST_BIT select GENERIC_IOMAP select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW diff --git a/arch/x86/um/Kconfig b/arch/x86/um/Kconfig index 8436bcd9beba..fa93329042c4 100644 --- a/arch/x86/um/Kconfig +++ b/arch/x86/um/Kconfig @@ -12,7 +12,6 @@ endmenu config UML_X86 def_bool y - select GENERIC_FIND_FIRST_BIT config 64BIT bool "64-bit kernel" if SUBARCH = "x86" diff --git a/include/asm-generic/bitops/find.h b/include/asm-generic/bitops/find.h index 998d4d544f18..790b333cff8b 100644 --- a/include/asm-generic/bitops/find.h +++ b/include/asm-generic/bitops/find.h @@ -29,8 +29,6 @@ extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, unsigned long offset); #endif -#ifdef CONFIG_GENERIC_FIND_FIRST_BIT - /** * find_first_bit - find the first set bit in a memory region * @addr: The address to start the search at @@ -52,11 +50,5 @@ extern unsigned long find_first_bit(const unsigned long *addr, */ extern unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size); -#else /* CONFIG_GENERIC_FIND_FIRST_BIT */ - -#define find_first_bit(addr, size) find_next_bit((addr), (size), 0) -#define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) - -#endif /* CONFIG_GENERIC_FIND_FIRST_BIT */ #endif /*_ASM_GENERIC_BITOPS_FIND_H_ */ diff --git a/lib/Kconfig b/lib/Kconfig index 0c8b78a9ae2e..cce523bbd3c7 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -33,9 +33,6 @@ config GENERIC_STRNLEN_USER config GENERIC_NET_UTILS bool -config GENERIC_FIND_FIRST_BIT - bool - config NO_GENERIC_PCI_IOPORT_MAP bool