Received: by 10.213.65.68 with SMTP id h4csp1530503imn; Thu, 29 Mar 2018 06:28:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48jt9c1m53KRxsEe8o3g0BHE8vsp8obtExmbXRaP0TBVLSBFemjTf1++kDqlffeWaTinM/a X-Received: by 2002:a17:902:5acf:: with SMTP id g15-v6mr8215144plm.138.1522330089250; Thu, 29 Mar 2018 06:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522330089; cv=none; d=google.com; s=arc-20160816; b=GozwYh236dYN2S+4OKH4kqge4Hmuo4i4V01vOuZdmAS2tDRavo1gxewG6grY5S1rKe TePmC6o1qnUSf5zeamBaiIUDl5hZkxt/ZLpjbKSK/tfeifN/s8px7+MaCXcUFiJ/Mdte TmmPJERsZw1KfGntyV23jvGnVyvmo31ovVq7hKsLVJqqXCcNMhCAW89hcumIXrQxELo1 Vr8ts/cia2aFzb1aOWYTSXXH8hOvOXUNBSD2YgRL+Rr5gk1942p40IhOudiQsLjNfCKp B+6sUCmR/MZu2sRmQntGpzD5nK6NcExnXrTWQiKsP4WivBxzpegpZnzmRDDOL5luLk4Y Sj6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=WtZJW3/PDwRmEx2o7KiwAM6JLc2uald6zhWxa1BEuls=; b=ouAxu35MiyTDepqgnpR1TmnaVn2ABsCSRJ4gyH2sMiYPCa4XForAzpSffxft3T30zQ 6lHyTWeCvKqRrdra601l0WW00cND22fIHdPopL1vlZhEtKEwxc+10lQCTOWgP6qwS3u/ Pq8IpLHH/vXq4wvY2mLkVcExyc0q/zplBn/ohg1SBf+CcN6q/rBkiBv6ioXjlvihtUEm H4pFn43en9zCKw2BwbbFDLnnbtY+uLB9DYU1R1OzTwjlrvazuw9BmsnP9P65fbJrX2dm hjIGlXwAE4ehDEONmEHpkCBVsddueFIeW5L5T9dPs7o3sl2LVhCNav/IQLrbNLnYriU9 7vtg== 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 t11si4003407pgn.337.2018.03.29.06.27.55; Thu, 29 Mar 2018 06:28:09 -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; 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 S1752644AbeC2N0c (ORCPT + 99 others); Thu, 29 Mar 2018 09:26:32 -0400 Received: from 9pmail.ess.barracuda.com ([64.235.154.211]:56554 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751908AbeC2N0b (ORCPT ); Thu, 29 Mar 2018 09:26:31 -0400 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1411.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Thu, 29 Mar 2018 13:25:28 +0000 Received: from mredfearn-linux.mipstec.com (192.168.155.41) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 29 Mar 2018 03:41:40 -0700 From: Matt Redfearn To: Palmer Dabbelt , Antony Pavlov , James Hogan , Ralf Baechle CC: , Matt Redfearn , , Thomas Gleixner , Philippe Ombredanne , Paul Burton , Greg Kroah-Hartman , "Al Viro" Subject: [PATCH v4 3/3] MIPS: use generic GCC library routines from lib/ Date: Thu, 29 Mar 2018 11:41:23 +0100 Message-ID: <1522320083-27818-3-git-send-email-matt.redfearn@mips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522320083-27818-1-git-send-email-matt.redfearn@mips.com> References: <1522320083-27818-1-git-send-email-matt.redfearn@mips.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.155.41] X-BESS-ID: 1522329928-452059-22111-59230-1 X-BESS-VER: 2018.4.1-r1803282120 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.60 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.191513 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.60 MARKETING_SUBJECT HEADER: Subject contains popular marketing words X-BESS-Outbound-Spam-Status: SCORE=0.60 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, MARKETING_SUBJECT X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Antony Pavlov The commit b35cd9884fa5 ("lib: Add shared copies of some GCC library routines") makes it possible to share generic GCC library routines by several architectures. This commit removes several generic GCC library routines from arch/mips/lib/ in favour of similar routines from lib/. Signed-off-by: Antony Pavlov [Matt Redfearn] Use GENERIC_LIB_* named Kconfig entries Signed-off-by: Matt Redfearn Cc: Palmer Dabbelt Cc: Matt Redfearn Cc: James Hogan Cc: Ralf Baechle Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org --- Changes in v4: Rework to use the new GENERIC_LIB_ Kconfig entries Changes in v3: Maintain alphabetical order of MIPS Kconfig Changes in v2: None arch/mips/Kconfig | 5 +++++ arch/mips/lib/Makefile | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 8128c3b68d6b..98955a76c656 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -22,6 +22,11 @@ config MIPS select GENERIC_CPU_AUTOPROBE select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW + select GENERIC_LIB_ASHLDI3 + select GENERIC_LIB_ASHRDI3 + select GENERIC_LIB_CMPDI2 + select GENERIC_LIB_LSHRDI3 + select GENERIC_LIB_UCMPDI2 select GENERIC_PCI_IOMAP select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC select GENERIC_SMP_IDLE_THREAD diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile index e84e12655fa8..6537e022ef62 100644 --- a/arch/mips/lib/Makefile +++ b/arch/mips/lib/Makefile @@ -16,5 +16,4 @@ obj-$(CONFIG_CPU_R3000) += r3k_dump_tlb.o obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o # libgcc-style stuff needed in the kernel -obj-y += ashldi3.o ashrdi3.o bswapsi.o bswapdi.o cmpdi2.o lshrdi3.o multi3.o \ - ucmpdi2.o +obj-y += bswapsi.o bswapdi.o multi3.o -- 2.7.4