ti-ocf-crypto-module: add crypto module for hw accel
[openembedded.git] / recipes / linux / linux-efika-2.6.20.20 / weaken-div64_32-symbol.patch
blobbd6fb98f613c67285b9c392517bbd25abb73ada5
1 2.6.20.20 with CFS fails to compile for powerpc, because this arch already has
2 its assembly-optimized __div64_32() implementation, so linking fails due to
3 two symbols.
5 The same issue appeared on the s390 arch, so this patch is inspired by it.
7 http://lkml.org/lkml/2007/4/11/24
9 Leon 'likewise' Woestenberg <leonw@mailcan.com>
11 Index: linux-2.6.20/lib/div64.c
12 ===================================================================
13 --- linux-2.6.20.orig/lib/div64.c 2007-10-07 16:19:38.000000000 +0200
14 +++ linux-2.6.20/lib/div64.c 2007-10-07 16:20:15.000000000 +0200
15 @@ -23,7 +23,7 @@
16 /* Not needed on 64bit architectures */
17 #if BITS_PER_LONG == 32
19 -uint32_t __div64_32(uint64_t *n, uint32_t base)
20 +uint32_t __attribute__((weak)) __div64_32(uint64_t *n, uint32_t base)
22 uint64_t rem = *n;
23 uint64_t b = base;