summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ppc_ksyms.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-03-12 23:39:55 +0100
committerPaul Mackerras <paulus@samba.org>2008-03-12 23:39:55 +0100
commit95ff54f5176a36f65522e46c670a571728328b10 (patch)
treeab569ddca890ff70c4770e4376f119355c042695 /arch/powerpc/kernel/ppc_ksyms.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jk/spu... (diff)
downloadlinux-95ff54f5176a36f65522e46c670a571728328b10.tar.xz
linux-95ff54f5176a36f65522e46c670a571728328b10.zip
[POWERPC] Add __ucmpdi2 for 64-bit comparisons in 32-bit kernels
Some drivers (such as V4L2) have code that causes gcc to generate calls to __ucmpdi2 when compiling for 32-bit powerpc, which results in either a link-time error or a module that can't be loaded, as we don't currently have a __ucmpdi2. This adds one so these drivers can be used. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/ppc_ksyms.c')
-rw-r--r--arch/powerpc/kernel/ppc_ksyms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c
index aa9ff35b0e63..3e52122c5073 100644
--- a/arch/powerpc/kernel/ppc_ksyms.c
+++ b/arch/powerpc/kernel/ppc_ksyms.c
@@ -149,6 +149,8 @@ long long __lshrdi3(long long, int);
EXPORT_SYMBOL(__ashrdi3);
EXPORT_SYMBOL(__ashldi3);
EXPORT_SYMBOL(__lshrdi3);
+int __ucmpdi2(unsigned long long, unsigned long long);
+EXPORT_SYMBOL(__ucmpdi2);
#endif
EXPORT_SYMBOL(memcpy);