leon: R.I.P.
[openwrt/svn-archive/archive.git] / target / linux / coldfire / patches / 041-Fix-CAU-driver-bug-for-SHA1-digest-algorithm.patch
1 From da0df827fa9600b3104d4b8d8cc3edbdd5a0849b Mon Sep 17 00:00:00 2001
2 From: Alison Wang <b18965@freescale.com>
3 Date: Thu, 4 Aug 2011 09:59:53 +0800
4 Subject: [PATCH 41/52] Fix CAU driver bug for SHA1 digest algorithm
5
6 Make the compiler to never inline a particular member
7 function.
8
9 Signed-off-by: Alison Wang <b18965@freescale.com>
10 ---
11 drivers/crypto/mcfcau-sha1.c | 3 ++-
12 1 files changed, 2 insertions(+), 1 deletions(-)
13
14 --- a/drivers/crypto/mcfcau-sha1.c
15 +++ b/drivers/crypto/mcfcau-sha1.c
16 @@ -60,7 +60,8 @@ struct mcfcau_sha1_ctx {
17 u8 buffer[64];
18 };
19
20 -static void mcfcau_sha1_transform(__u32 *digest, const char *in, __u32 *W)
21 +static noinline void mcfcau_sha1_transform(__u32 *digest,
22 + const char *in, __u32 *W)
23 {
24 int i;
25 u32 *tmp_p;