Received: by 10.223.185.116 with SMTP id b49csp1289828wrg; Fri, 16 Feb 2018 16:33:04 -0800 (PST) X-Google-Smtp-Source: AH8x226Uoee1OohAnv4xZEApi7kGYX/YnWsJgzxFKP+g+ii7xL/WAtXTnQ6KbZcYn4iALqYn5OL3 X-Received: by 10.99.127.86 with SMTP id p22mr6459954pgn.157.1518827584759; Fri, 16 Feb 2018 16:33:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518827584; cv=none; d=google.com; s=arc-20160816; b=DMpMQYShlD7j0MRaDM/ewyypOkVzjTwxw1en/fScDUZN3Enu+VZ/JeygEZXEA3Bp1X y14idU4ovAnrmbSscGq787/oQVJZ+Ia/r0zwLFTjnxXGWNNab/8M3B3X1qsql/mX03ss rG9XDYjIxIGUqh1kQ9PnwfJCtMClBbP6j+7mMGiHVJcq+tYi4Queb2se6do9Wv4vrWhf eIC6SyPtLp3J0KXsH8l8JpyWua0k7mwFnCYQmO+NKyv7NnxVYjfvdZbgHYk4n7XWhW19 WfeNgfxf7Faaa1b9EckJSfh9qw8/bApE4C8fNJxcn46TRopk/TjysVWkjDc3ZjZV0noF c6Lg== 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:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=5I1KFWRVR5aEzYt/C5DIWy4P6JyBHIxXvEXC7bTgnsE=; b=atUixD80GDgeSrJ+sp/+PovCNblfvTsOiescnMEza6ZI2dNADEZyNxpRUbFHf7RlWR 84+BCHTsVO1eXxO8CbsMq7JisWpAWAkV4618fcRt5QqBXAcj4pOzD4v0Dq3DfvEWM50x HR8YHJY08Lwy5AMWiW5+h5T8t9OUZiPwlrk3ZzYl9/bCUZmi5bnZ72OAhXL7Zpw591hw 6dItLIigeHSmlItMvBlh+3sdY8GuOcUQC1BNKN010wibty6M8uqguiAfTlk6QH7UsDwm aIetuhgIukcp7xyeMPT+0UPFslJzCvnGtM77b93wAoIA7P03NX9ZaHUOKWY+yBJOKTX5 ALsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=hUQvTgmG; 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 r19si1392112pfi.100.2018.02.16.16.32.50; Fri, 16 Feb 2018 16:33:04 -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=@sifive.com header.s=google header.b=hUQvTgmG; 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 S1750971AbeBQAcO (ORCPT + 99 others); Fri, 16 Feb 2018 19:32:14 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41804 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbeBQAcM (ORCPT ); Fri, 16 Feb 2018 19:32:12 -0500 Received: by mail-pg0-f68.google.com with SMTP id t4so3681786pgp.8 for ; Fri, 16 Feb 2018 16:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=5I1KFWRVR5aEzYt/C5DIWy4P6JyBHIxXvEXC7bTgnsE=; b=hUQvTgmGL3vMs7xGooatWYIlfycYhhImCrH4x1X/8XG/eiVQJhGwNmqdVylxXzqAkp HoMfXq00DcUEgsisWIZL++/3ehML7peX5N+WheVq3FgmkY3PgZvHDCv5UetXPhKjJGWX 4eydgOc+JaTtuTDWc7fDvnEw7/GRA4apYCGQo7PsS6SKVCXfoSwLf3AbsWmssMtRFwff H6lvUca9Plrz4BHS5TBT75hS/WqfJk3aJOtZlX5ihnDaXzebwFfUC7Q40vEYD10oLh2v as8pesuCrrHxlSfRdIgwhKJnroLlwDPtOhp2+up4MZUxD3nuH3i7OfIA+ivX8Fqeah98 XtdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=5I1KFWRVR5aEzYt/C5DIWy4P6JyBHIxXvEXC7bTgnsE=; b=lNaAJAUAB0i7eYsE3bL+b0saXZaxBhLUo5FyxHat2ZugD0d0f4aPsqaa2qp22hiDmM dpeM4OJcJSJH4dR+UiCd3cQB+scSQyfp+of0OPKecCK4aZerlC5ItCqLcILKzLYIeT6t u5mrjujmAZrVRbiUG/7NUVRNdNNxP3ANMl2wZ4hqSM6u3XcP5c2w4H36CuIP43Az3v7H vBnbp/r+5K43VdSMgAvrfgKoHtyUmWxd60W8FO4QPecHj68fvf3uKMYGnWRzSztyZ5tF wvwg5HmckOlbi4h3brY2FA9HKuemsKwRYrLEyXzH+VYxlIkJnMDGcqLasUz7EYg5E4q6 ygiA== X-Gm-Message-State: APf1xPC8bcHfgq9EZGmWwLAde3tBb1qwaq2NfWpigFo6Vjl8kqO8Oh4s 8JGv+WnCzdJniqtCQM9wVdNfjA== X-Received: by 10.99.120.205 with SMTP id t196mr6275655pgc.392.1518827531906; Fri, 16 Feb 2018 16:32:11 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id n66sm45457503pfn.111.2018.02.16.16.32.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 16:32:11 -0800 (PST) Date: Fri, 16 Feb 2018 16:32:11 -0800 (PST) X-Google-Original-Date: Fri, 16 Feb 2018 16:32:09 PST (-0800) Subject: Re: [PATCH] lib: Rename compiler intrinsic selects to GENERIC_LIB_* In-Reply-To: <20180213224937.GF4290@saruman> CC: matt.redfearn@mips.com, antonynpavlov@gmail.com, linux-mips@linux-mips.org, ralf@linux-mips.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: jhogan@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Feb 2018 14:49:37 PST (-0800), jhogan@kernel.org wrote: > On Tue, Feb 13, 2018 at 01:48:18PM -0800, Palmer Dabbelt wrote: >> On Fri, 09 Feb 2018 05:22:52 PST (-0800), matt.redfearn@mips.com 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_* >> > >> > Signed-off-by: Matt Redfearn >> >> Thanks! Do you want me to take this in my tree? >> >> Reviewed-by: Palmer Dabbelt > > Since a new version of the "MIPS: use generic GCC library routines from > lib/" series would depend on it, and it makes sense for that series to > go via the MIPS tree, I think it would be simpler for this patch to also > be taken (with your ack) via the MIPS tree. Is that okay? That's great, thanks! > > Thanks > James > >> >> > --- >> > 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