Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1413106imm; Tue, 2 Oct 2018 07:51:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV63NCeAxmLAcDOA+jU1LdmvMy4YxB1D7/fWsodhMVTZ0Pl7otVLwxRCrFntQt49ONknvRQEt X-Received: by 2002:a62:6e45:: with SMTP id j66-v6mr16453838pfc.259.1538491879241; Tue, 02 Oct 2018 07:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538491879; cv=none; d=google.com; s=arc-20160816; b=ZpLays94a5GSrFNdXsp9zp8q77jFKAKf16awBKh2MQcCjOPOv37ofcSXPAqqadDOOz 0MUYPvSMVWW4vECHV3b+aGlCN04VXNw2Y8VLnBVm90mxKkiUAjqICLx2VAQsUuEHM0ru WNvMi7kF8PqmFCN3EkfFosRzJByeRk4pZcB2WoSlYXxuVMaQD0R0Nqm2mUH3AZRrn7Ts MIYD3vgJs/bKiQS1noodLFLCeI4TkPHC53RyvxZlHqdwRCas7Ei6eBSna0a2Afaa88wf oGdjC/hEOG/dHi4IJqTdEntuBQYGENxwIHLjJrDerCH6n2z8Bq9KzUMRDAKJKbf1nxgV XwYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+0FUfnpwE6tgG3L/Bn/7usEhLXFSGLkr/4GEmbbg4CQ=; b=A0f35XZtt/PyGZ+CSRNNlWZW00p3D4u+CiPAN47rxv3qhrgK1fR1IQNtI+nGt7Ljs7 SdrB2e2Rx7RYtbABovlzZ5wXbtahtSeQaLlm0i8ARS1wWAVVpd1+dCCcydZQIRJv/Nmf 9FOUBVywGpCDPHD7JCIjX2nkMwsJCzDEMLOnwfDKs1fryQZ2f1L85ZSWi++IhN+GX7/6 24AcONSa6x4NuXMYy2xdFRp4896sFdzcifdvEaXQWjAW2J2BcPXr5NJZForSNPO8u/jw q8jfAnT5VUmaOk2Q5GxaX8CugXHmlHoNWRKNlXjQbZrt/Q0yeO4dWrVVI6ZHlkZ4L4I9 Rt1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GBSUB4ay; 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 bi5-v6si6525555plb.62.2018.10.02.07.51.04; Tue, 02 Oct 2018 07:51:19 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GBSUB4ay; 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 S1728685AbeJBVea (ORCPT + 99 others); Tue, 2 Oct 2018 17:34:30 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52898 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbeJBVea (ORCPT ); Tue, 2 Oct 2018 17:34:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+0FUfnpwE6tgG3L/Bn/7usEhLXFSGLkr/4GEmbbg4CQ=; b=GBSUB4ayon22M28Q+SlvR3w4w 7yRDuxVhL0y5rGo897XqExALMyAx/BGtRRPp9PMzOJH+HEB1o5UcEkjmC5lbLfX9FmcZ9VJnzAv9G TgEW5O62FRZDblzSVLmS2I6CQ7OczuWU8CNTV7rAcLS4bxe9anKXG+71fPCHQ6zuOOn6O0cp3lo5M BMcZqVn3MY9Jrxxk9p76XU4HZ+QkKpRMWN0/xY0kaSZIqgcOJuWH02BNpRYxRE1h70iCWVl0tazsH 3vv6Uq7V2Ofn8nRS9DpaP4RATYdYKZIWTCjcxLt+fcAgciGsvhPGYVH+484geFBu1J7iEQpappzQ3 Rwlg3EX6Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7M0Y-0002jC-6x; Tue, 02 Oct 2018 14:50:42 +0000 Date: Tue, 2 Oct 2018 07:50:41 -0700 From: Christoph Hellwig To: Zong Li Cc: palmer@sifive.com, aou@eecs.berkeley.edu, hch@infradead.org, zong@andestech.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines Message-ID: <20181002145041.GC3889@infradead.org> References: <2144f372b95f236afe47da4fc575a42ec95e8239.1538470103.git.zongbox@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2144f372b95f236afe47da4fc575a42ec95e8239.1538470103.git.zongbox@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The udivmoddi4 and umoddi3 are copies from libgcc in gcc. There are other > functions use the udivmoddi4 in libgcc, so I separate the umoddi3 and > udivmoddi4 for flexible extension in the future. Can you please mention which exact version of an external projected you imported things from? That will generally help if/when someone has to dig into diverging versions. > +++ b/lib/udivmoddi4.c > @@ -0,0 +1,310 @@ > +// SPDX-License-Identifier: GPL-2.0 > + > +/* > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, see the file COPYING, or write > + * to the Free Software Foundation, Inc. > + */ The SPDX tag was supposed to replace this boiler plate. On the other hand I'm surpriced there is no Copyright statement here - the FSF is usually very good about having them uptodate in every GNU project.