Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759484AbaJ3Ldt (ORCPT ); Thu, 30 Oct 2014 07:33:49 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:59820 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759059AbaJ3Ldq (ORCPT ); Thu, 30 Oct 2014 07:33:46 -0400 From: Arnd Bergmann To: Ley Foon Tan Cc: Linux-Arch , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , Chung-Lin Tang Subject: Re: [PATCH v5 29/29] nios2: Build infrastructure Date: Thu, 30 Oct 2014 12:33:38 +0100 Message-ID: <11875981.eJaWCbGJJT@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1414139071-3818-1-git-send-email-lftan@altera.com> <2095416.INZmt8AD1y@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:z8cWEWU9Y8x5IBqRbtz+vf0cE/oZ3dqCIRKURd23cFF qBGA8fKaPbLXSg1W7DV9KRZImfDDMn/kVjK4vcqfsbjGU8D+a+ +yb/6KFJ0xnYv1Uv36fDk1Y2dZzksyhitgxvshsgR5Tp4GrCAl YTxsDuf/NDx7aqeaWL/N1tqn9WOl4/jGelXcU8EwMOaQixn/XJ 0oJ/zwJz8x1fn3dyL/dHnD00i5lw4eZO6CXCcA7nchklDu0+67 Nrvn8TDxX+zyaOV//SkqTU+2dFGoo575h0xC5utB3NWbyfinUn F+19QrLB9pfQ8WGQYk4py9ldewbX2HaV2wAlRJw4WteKhES1Kp GykwWi7RrIkIsWWGIJfA= X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 30 October 2014 18:44:37 Ley Foon Tan wrote: > > > > I don't remember what all of these are, but at least some of them seem > > to be concerned with 64-bit division. By convention, we don't provide those > > in the Linux kernel but instead require all code to use the do_div() > > macro instead. > Do you mean kernel doesn't support 64 bit division result for a 32-bit > architecture? Because do_div() only support 32-bit division result for > 32-bit architecture. Correct. If you need a full 64-bit division on a 32-bit kernel, the assumption is that your driver has a bug. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/