Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1115487oof; Tue, 25 Sep 2018 08:27:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV60z7hblj9wON4hG6GRAUUaLdBXQTXeZloS+wUZT5l0yNdqDHkLacqpLt/OW05L37mJLqqcw X-Received: by 2002:a17:902:a03:: with SMTP id 3-v6mr1654782plo.323.1537889224846; Tue, 25 Sep 2018 08:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537889224; cv=none; d=google.com; s=arc-20160816; b=ex+Db1Fz1CowW4U7KXezrTV5IzOxf/HVCgQgb+4IjI7b/b8d/0GksUtnC4TB8Tw/5+ biFmPqLT6z8mDqa3L3nD7CXWI0z6InOLMllOLflHcq4oAcMInx/RgdUp0HScagr6iImA 5HdzpSzB0JuMhqS6g2bxe/nET3g3KsSocutGE6P10b8ptVSUhDC7Aw7oG3aah31DBCh+ PrR0zIhpn66SRtD/BRFx0/zd7yb72l2sZI3nLtbEg5bthvXM7X+0VL29+jAgQs3+yDQG TC7C40c/LA6xKMIbI9mDvmP8CQzJoD4lKLJWouLzvwipHH5P/Yx0ohbjsw4ZWGLdzB6B FRoA== 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=YZqbmfKjH4sK63MGj/DOrhrO67U5Wd4gJ8PCBf+FDx8=; b=fwYy6GIIBuvXhoIQfKiGEOvXrx+klYxBhYBBjjXP4V9TB9UzSFR48Doj7xe0YXCYru 9b6EbzwUDI3Fp4RR/AhFNBKst7IV3X9wPswy4m+hNckkUah7H7vQsXJdN+CaM+ym9uyJ 26ArL2cxvgY/Ha2Odg7GB08eobpkal9VkwATj5WZIBlVQrALTcJGAvlaHfNLNUW9HAxI bVZHaJpmqoVzyFhpPVFzN43e/4b0AApPiTlOh+QwJIyJUt81ZwVETgv6GdflduRK+yC6 svv0m1vJ6+CFULAoFc7dt6xBZa0Wt4IAz2VeMmzsA5HLRGTWYb5Orq5pzlhQHALs7nMH WGhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=U9LVch04; 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 33-v6si2711645pll.381.2018.09.25.08.26.48; Tue, 25 Sep 2018 08:27:04 -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=U9LVch04; 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 S1729606AbeIYVdP (ORCPT + 99 others); Tue, 25 Sep 2018 17:33:15 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55478 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729484AbeIYVdO (ORCPT ); Tue, 25 Sep 2018 17:33:14 -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=YZqbmfKjH4sK63MGj/DOrhrO67U5Wd4gJ8PCBf+FDx8=; b=U9LVch04QOLPnumbuppFb+HBj ubnd+VCfei8klTrKfmmvb24ckt0fMgpHs/9MxNeAQelORWOscoCfnaqgnRn9Q0QQrFaks/BCfl9lD /Jw0WBtlf7ITvA8JpSZwGuLYdPtLFylJOOqWKewFJBMNv7yGZUDJBfy750ZHKeSzO8gjjc259/MSf Wuy3YabzQys7WQMsGQDBRx6IBb6Bf4kjBCSn3RiPianlvA166yi0Hdd5y1kwbM5leqbvUG8Yb2yIP p4Kf4VuUYvjy1co9HVfCXaXQeXJFf5fPD//gDqquF8N4Qutv5dNtk+kQhiSw8SG6IOPI0uXszHBFP +c93N3Mow==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g4pD2-0006oZ-Ly; Tue, 25 Sep 2018 15:25:08 +0000 Date: Tue, 25 Sep 2018 08:25:08 -0700 From: Christoph Hellwig To: Zong Li Cc: hch@infradead.org, palmer@sifive.com, aou@eecs.berkeley.edu, vincentc@andestech.com, zong@andestech.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines Message-ID: <20180925152508.GA24002@infradead.org> References: <2ccc6c0758624dbb22f6fe451a3e476a000108ef.1537260207.git.zongbox@gmail.com> <20180921070006.GC8401@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Tue, Sep 25, 2018 at 10:19:55AM +0800, Zong Li wrote: > The RV32 need the umoddi3 to do modulo when the operands are long long > type, like other libraries implementation such as ucmpdi2, lshrdi3 and > so on. I encounter the undefined reference 'umoddi3' when I use the in > house dma driver, although it is in house driver, but I think that > umoddi3 is a common function for RV32. 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. I don't think libgcc is GPLv2 licensed, is it? Also please retain the copyright notices from libgcc.