Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp498218oof; Tue, 25 Sep 2018 00:21:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62eKXT+Z/ULzmWPGddy2gnDY96wvNtUQ1Lj7hkRea+POpx6o6vIDMSEvGVY12TWg76XM5Du X-Received: by 2002:a63:a40a:: with SMTP id c10-v6mr2129407pgf.140.1537860073892; Tue, 25 Sep 2018 00:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537860073; cv=none; d=google.com; s=arc-20160816; b=ZGnkzv7bDKm8aqq7NMKMhGRbcNxfuExLUQ9LU0bRSsb7XcU3mu4Bl1un0/usORXwPC TEQ20+ZULqlxFen7AxP/SORlq14/DyaK4js+jviCL3INsvqwx/cnkfnPXVVkQ6KAjjVy xM68KGen5u+Y1eGIiHrk9OUAz3YaBcScYXPVAqiqfVXk0pByyOlmYZ6Toaisxf08C/6L 1y46al0RIAeTviOXcodxbgVcQSz0F0z9JN1n3PQcdy71kuuo6rBC8BRm0M0i/quICJZN PWOQRe8fq/SDnEAgbB7ayVIpsGjkr0pYprE98fXGAxwGCcgzSb+L3VTw1tLNrpsLyBrL zZMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=+Ou0ZfZCc1DZTX7VFG8aTmV7JYqL7W2/7OALEBZ2Xck=; b=Wqlmz33H3sSdwZY407zYFabMDWeE3B/ZFuau8kx6rMMmnH/9iVQUYPGeM6Vbas+Mff gBMP6+tG+6yQsStuwee2mHYOcXqPOJ6NiYoQerL/A8saeFh4e2hMnXnffidRZtxqo4/G 2vfQUCYXyZzEW4zMmzTTkpBa/eU6TEHQkSWDcLCCrddtsA9+EWaf2A7UGMGcqffEZeG0 yqu0rnHlzRBrEGHm87u0mxFw1vCWkvtpKsLMNMYUImrv9R6mjU8sopUAy7VXJdn2qFGX 7GyxO5QesRXfKbNRU8q7TiLjoAxBlvUcghLWy5HlPeoNIDM1ygACVybciOqTNXE0Rkvh nV6Q== 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 f8-v6si1653135pgu.370.2018.09.25.00.20.58; Tue, 25 Sep 2018 00:21:13 -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 S1728666AbeIYN0h (ORCPT + 99 others); Tue, 25 Sep 2018 09:26:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:39672 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727588AbeIYN0h (ORCPT ); Tue, 25 Sep 2018 09:26:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E59BAAF41; Tue, 25 Sep 2018 07:20:25 +0000 (UTC) From: Andreas Schwab 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 References: <2ccc6c0758624dbb22f6fe451a3e476a000108ef.1537260207.git.zongbox@gmail.com> <20180921070006.GC8401@infradead.org> X-Yow: I think I am an overnight sensation right now!! Date: Tue, 25 Sep 2018 09:20:25 +0200 In-Reply-To: (Zong Li's message of "Tue, 25 Sep 2018 10:19:55 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sep 25 2018, 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. You probably should use the macros from instead. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."