Received: by 10.223.176.5 with SMTP id f5csp699799wra; Fri, 9 Feb 2018 05:55:14 -0800 (PST) X-Google-Smtp-Source: AH8x224g5jke6O9z1TV5wCewbNqxF2pcigiVgTfw5GXWjb/pGFfziAr1Zs370IJlbjmgicj5gPpK X-Received: by 2002:a17:902:261:: with SMTP id 88-v6mr1048260plc.384.1518184514381; Fri, 09 Feb 2018 05:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518184514; cv=none; d=google.com; s=arc-20160816; b=fKuP8ZtSZVSLDApnr8F9OaVeX2HzKjGx6dxPFiBsuXpTwyqZ0AQc8f/BPjP9D+Hy0B Fswihu2K+GulTO9IeGvHRBin4KvJAdUaebgDq7qTJXlGT2J5goj0+Arn00LLIry6x8JW dCFfoKKu3nL8bS8D+2qoQuh8oKJu1ZQAn2RwHlWRY9byXh9+EP18+acZg/2vjtSqTki0 GmRdPVPSNMrAmeEUINKc1ml6QxLB1tkbtfUb5qFr4rPh/ZUlnQqa7yKoTvPR15x7BOpp B/sdoTO6w3m+Bou/4ROce5UribkURCQCofitFB0dfo0nikU1MHMSbhd2LB/TNKpU0Vqi B0+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=qwckh3dbb9a1/rd2xXDDoEEq/XkcSQE0JtDkG0TlLDA=; b=ZNO+P/ilpIw3TVGyfs86a0BVcmxqPCUlwMptisI6Q1KT/SIsKkxUGUnkf6pQhQu5s8 7ERja4kagPoSvqkNh1KzMyjoXsyYtSTeM3nyUOBltA6DwUw84kxneSK/w25f3rkonPbK 2FJxgkYDi1tBPKqI/ScjaQbJQU7KBstMKPAkdh6JlZCo/L+kpUG1EXJHQrbi/po7igNA uykJYGIcrvp+Yq0w0HtOhX54FU5G+0bwRjW3sEDqPhe4+xQ1IdFpOojzSxr87wT7OxEd ptmr52xbH+LYYSe5D+qRGgHHPhtPp+PYDfud5FMFw8xJsOPgdYvFTBHsg34ZRglhuUeL dAbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=USwR8wD3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m27si1774062pfg.64.2018.02.09.05.55.00; Fri, 09 Feb 2018 05:55:14 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=USwR8wD3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932150AbeBINpz (ORCPT + 99 others); Fri, 9 Feb 2018 08:45:55 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:34652 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753707AbeBINpu (ORCPT ); Fri, 9 Feb 2018 08:45:50 -0500 Received: by mail-qt0-f193.google.com with SMTP id d14so10560331qtg.1 for ; Fri, 09 Feb 2018 05:45:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qwckh3dbb9a1/rd2xXDDoEEq/XkcSQE0JtDkG0TlLDA=; b=USwR8wD3p1jsqAW6w0/iVHGcSj6RurlP/EYcvg9fD6J1HMY4Rt/XKmgnl0ZnYIj+1z IXOZPXoKDMOs4OvWZoMptyC+gmysJZHAqKQcCZLsmpnA5yM9Vt2hwt5o73WskqLtHAhi 59on43Z52YcXN0TrzEMrF1TPtUHCyYGge2UAL1rUoSKBgBPDfNTErN+RRnIBSFvd2/s2 c7S541xoB2paxra3g0k81PnGyiy/KGMxkyPYOOXVDGOwshjWMPPxJrpzgV3/YY1o/ZOf d6ZK3oLe4bMCvwOK4ePNRJOQfV5VoTGT7M2l1cAi1IQeCo66vdBOKdMbsyaad+Bs9KWB Lk+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qwckh3dbb9a1/rd2xXDDoEEq/XkcSQE0JtDkG0TlLDA=; b=FgmaVI0kc7fXyw4jjyISkW2UYCedBki7RJ7ZM3dfa8Nj+tRPmNPLh2dCTzYM1w64tw RIDS2zEbh4RZu8+W5OEHpf+bNCrHSv5Ls2JcolG/bFWNohvn4ncGFbakuwYGfqRmQu3w xtVv0ImVm1t5BIL/oGWZuS1rHBfKxRMpDuXGvf+ewRRlQ+4u9WNFJeMJxtuR0hfQwu9u OhVbAdwltKiNasuuLDTWnRusRTPHLtyUEkqTFPrGEWxiVQznyrFVPU3JATOQPWUZoQJn AwOwIlMpBSPXWaH86dsnWFE3djXLIGAMHYcx1dvK5oqqa3wo+fK8RatNKPW+Ce2+jQV7 yVQQ== X-Gm-Message-State: APf1xPCuEQUJlExh5OmpG2HXQ2FEUhvzKiu/QbfIhHRVHGJ46lAd05Gg aNxca+DDrxp6kvYDQuKndoOKie/jEO1hD2d9Ex0= X-Received: by 10.237.32.9 with SMTP id 9mr4699673qta.340.1518183949378; Fri, 09 Feb 2018 05:45:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.175.35 with HTTP; Fri, 9 Feb 2018 05:45:48 -0800 (PST) In-Reply-To: <1518182572-23376-1-git-send-email-matt.redfearn@mips.com> References: <1518182572-23376-1-git-send-email-matt.redfearn@mips.com> From: Andy Shevchenko Date: Fri, 9 Feb 2018 15:45:48 +0200 Message-ID: Subject: Re: [PATCH] lib: Rename compiler intrinsic selects to GENERIC_LIB_* To: Matt Redfearn Cc: Palmer Dabbelt , antonynpavlov@gmail.com, Linux MIPS Mailing List , jhogan@kernel.org, Ralf Baechle , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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 > -- With Best Regards, Andy Shevchenko