Received: by 10.223.176.5 with SMTP id f5csp766093wra; Fri, 9 Feb 2018 06:54:56 -0800 (PST) X-Google-Smtp-Source: AH8x226Fr1r20C2HvHU5rKE9VyRrw1zRpzojJs0f/nLz0J+/C9gsJQSQ3v86XVYYLpCXrcf0VOoQ X-Received: by 10.99.143.67 with SMTP id r3mr2568787pgn.17.1518188096037; Fri, 09 Feb 2018 06:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518188095; cv=none; d=google.com; s=arc-20160816; b=D7ahbQXupnpiVo5IxboPWdGCZmO9SAFwfPiE49gPkJEkp9YGO7nuWfbU7mWqTyhlpp wG3Dbph26//2l/Hp4c276OVmKYQek0iyeZ2fa8S0b69WOdmvfQL0xs3M3e7OrnENctcR IQ/H3OQ7yd+B++77ra9WmzhRP2GwRw6aPSWLRRikSRdJ6Qg/ReRhjo/73njZL6J5vloC k4O9rA7Yo3rMyCv0RVUv13SzcTqcWInwd/muBXjzvd2g4uKMYWNSGykJH8NfEP6RzA55 IrlRb+adO64tLYCRNJBzVp0aGdRXQZU8YLdwsRv6Vag/g+J/I7upgCkahY+Eu03CuGrA ycCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=kkOMVYAlAyGJ57rLoSN0hZH9TmZH7nNQWq1B6SUC/Kw=; b=QgqVzgQyMcuO0iiUZs8/caeLkz6pwigNbl1muYyVeUDpyJFs8LIBEHBCGeg4pkbg7u I7GplBg+BBK8PvueoLpVp06Isq1Ab2YDz9A81NrGAXf9kipbkgt7vuwLuB1RxOD8q96+ R/NZUOK4dAxDr632USpjyokXOIpsRPBGpzHWWH7GKYcOwSbGLl0scsQ+KN0MdG2lQR0j ozJTd9yHdoVMUnRm3WdykoyhDLhVEN5HyISoLAVW6Z6oTUIWC6xsbmCllE+3/qu0LqlY FDVglfgHmOp6BOPp8YvSlowSwZ1A+qZyaHNr+hsAvnjghb8LU68xowzdDs0U1s82GzAN 342A== ARC-Authentication-Results: i=1; mx.google.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 h18si1806173pfi.167.2018.02.09.06.54.41; Fri, 09 Feb 2018 06:54:55 -0800 (PST) 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; 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 S1752246AbeBIOxK (ORCPT + 99 others); Fri, 9 Feb 2018 09:53:10 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.154.210]:38148 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126AbeBIOxJ (ORCPT ); Fri, 9 Feb 2018 09:53:09 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1412.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Fri, 09 Feb 2018 14:52:53 +0000 Received: from [10.150.130.83] (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 9 Feb 2018 06:52:52 -0800 Subject: Re: [PATCH] lib: Rename compiler intrinsic selects to GENERIC_LIB_* To: Andy Shevchenko CC: Palmer Dabbelt , , "Linux MIPS Mailing List" , , Ralf Baechle , Linux Kernel Mailing List References: <1518182572-23376-1-git-send-email-matt.redfearn@mips.com> From: Matt Redfearn Message-ID: <30b2cff6-ad18-617e-cc11-ad2188193c3a@mips.com> Date: Fri, 9 Feb 2018 14:52:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.150.130.83] X-BESS-ID: 1518187973-452060-5654-53521-1 X-BESS-VER: 2018.1.1-r1801291958 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.189857 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 09/02/18 13:45, Andy Shevchenko wrote: > On Fri, Feb 9, 2018 at 3:22 PM, Matt Redfearn wrote: >> When these are included into arch Kconfig files, maintaining >> alphabetical ordering of the selects means these get split up. To allow >> for keeping things tidier and alphabetical, rename the selects to >> GENERIC_LIB_* >> > > I don't remember who suggested that, if it wasn't you, please add > Suggested-by tag with appropriate name. It was me that suggested the rename, before we ack replacing MIPS' compiler intrinsics with these generic ones. Thanks, Matt > >> Signed-off-by: Matt Redfearn >> --- >> arch/riscv/Kconfig | 6 +++--- >> lib/Kconfig | 12 ++++++------ >> lib/Makefile | 12 ++++++------ >> 3 files changed, 15 insertions(+), 15 deletions(-) >> >> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig >> index 2c6adf12713a..5f1e2188d029 100644 >> --- a/arch/riscv/Kconfig >> +++ b/arch/riscv/Kconfig >> @@ -99,9 +99,9 @@ config ARCH_RV32I >> bool "RV32I" >> select CPU_SUPPORTS_32BIT_KERNEL >> select 32BIT >> - select GENERIC_ASHLDI3 >> - select GENERIC_ASHRDI3 >> - select GENERIC_LSHRDI3 >> + select GENERIC_LIB_ASHLDI3 >> + select GENERIC_LIB_ASHRDI3 >> + select GENERIC_LIB_LSHRDI3 >> >> config ARCH_RV64I >> bool "RV64I" >> diff --git a/lib/Kconfig b/lib/Kconfig >> index c5e84fbcb30b..946d0890aad6 100644 >> --- a/lib/Kconfig >> +++ b/lib/Kconfig >> @@ -584,20 +584,20 @@ config STRING_SELFTEST >> >> endmenu >> >> -config GENERIC_ASHLDI3 >> +config GENERIC_LIB_ASHLDI3 >> bool >> >> -config GENERIC_ASHRDI3 >> +config GENERIC_LIB_ASHRDI3 >> bool >> >> -config GENERIC_LSHRDI3 >> +config GENERIC_LIB_LSHRDI3 >> bool >> >> -config GENERIC_MULDI3 >> +config GENERIC_LIB_MULDI3 >> bool >> >> -config GENERIC_CMPDI2 >> +config GENERIC_LIB_CMPDI2 >> bool >> >> -config GENERIC_UCMPDI2 >> +config GENERIC_LIB_UCMPDI2 >> bool >> diff --git a/lib/Makefile b/lib/Makefile >> index d11c48ec8ffd..7e1ef77e86a3 100644 >> --- a/lib/Makefile >> +++ b/lib/Makefile >> @@ -252,9 +252,9 @@ obj-$(CONFIG_SBITMAP) += sbitmap.o >> obj-$(CONFIG_PARMAN) += parman.o >> >> # GCC library routines >> -obj-$(CONFIG_GENERIC_ASHLDI3) += ashldi3.o >> -obj-$(CONFIG_GENERIC_ASHRDI3) += ashrdi3.o >> -obj-$(CONFIG_GENERIC_LSHRDI3) += lshrdi3.o >> -obj-$(CONFIG_GENERIC_MULDI3) += muldi3.o >> -obj-$(CONFIG_GENERIC_CMPDI2) += cmpdi2.o >> -obj-$(CONFIG_GENERIC_UCMPDI2) += ucmpdi2.o >> +obj-$(CONFIG_GENERIC_LIB_ASHLDI3) += ashldi3.o >> +obj-$(CONFIG_GENERIC_LIB_ASHRDI3) += ashrdi3.o >> +obj-$(CONFIG_GENERIC_LIB_LSHRDI3) += lshrdi3.o >> +obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o >> +obj-$(CONFIG_GENERIC_LIB_CMPDI2) += cmpdi2.o >> +obj-$(CONFIG_GENERIC_LIB_UCMPDI2) += ucmpdi2.o >> -- >> 2.7.4 >> > > >