Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751013AbZLSJNW (ORCPT ); Sat, 19 Dec 2009 04:13:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750800AbZLSJNS (ORCPT ); Sat, 19 Dec 2009 04:13:18 -0500 Received: from mail-vw0-f192.google.com ([209.85.212.192]:33061 "EHLO mail-vw0-f192.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbZLSJNO convert rfc822-to-8bit (ORCPT ); Sat, 19 Dec 2009 04:13:14 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LuRGcvAAyL0TvlxlkLFbikFEVNBNWt8ozqreHZ2VpR9hTEf3guoBDQJUvogEuoku+T lspw7glDymKykw4WPWVC1pWl77iqZuM/rx4Z0IV/7yStTBa0rayQsNrSJjuFjt8bn6zq xL7KuERB4JGfLhXdqwYO3kYQYh+ri4KuEAMmI= MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 19 Dec 2009 01:13:11 -0800 Message-ID: Subject: Re: drivers/gpu/drm/radeon/radeon_test.c:45: undefined reference to `__udivdi3' From: Dave Hylands To: "Mr. James W. Laferriere" Cc: Benjamin Herrenschmidt , linux-fbdev@vger.kernel.org, Linux Kernel Maillist Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 35 Hi Jim, On Fri, Dec 18, 2009 at 12:54 PM, Mr. James W. Laferriere wrote: > ? ? ? ?Hello Benjamin , ?I am not having a good time compiling 2.6.32.1 . > First RCU 'inline' difficulties then fusion-mpt 'inline' difficulty , ?Now > this . > ? ? ? ?This one is not a simple as removing 'inline' from a statement . > ? ? ? ?Would you please look into this ? ?Anything else you need please just > ask . > ? ? ? ?Please cc: me as I am not subscribed to linux-fbdev . > > ? ? ? ? ? ? ? ?Tia , ?JimL > ...snip... > drivers/built-in.o(.text+0x11345a): In function `radeon_test_moves': > drivers/gpu/drm/radeon/radeon_test.c:45: undefined reference to `__udivdi3' > make: *** [.tmp_vmlinux1] Error 1 __udivdi3 is a gcc helper function used to do 64-bit division. This form of 64-bit division is not supported from within the kernel (which is why you get the undefined symbol). There is which contains a macro called do_div which can perform a 64-bit dvision by a 32-bit divisor. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ -- 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/