diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-09-01 04:52:13 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:44 -0400 |
commit | 70dec235d8ac8cfb56ed2a3597e7d6c5b801f018 (patch) | |
tree | aa15277c4cf3316ed22772ddb45cfc888b131557 /crypto/scatterwalk.c | |
parent | 3c09f17c3d11f3e98928f55b600e6de22f58017a (diff) |
[CRYPTO] api: Kill crypto_km_types
When scatterwalk is built as a module digest.c was broken because it
requires the crypto_km_types structure which is in scatterwalk. This
patch removes the crypto_km_types structure by encoding the logic into
crypto_kmap_type directly.
In fact, this even saves a few bytes of code (not to mention the data
structure itself) on i386 which is about the only place where it's
needed.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/scatterwalk.c')
-rw-r--r-- | crypto/scatterwalk.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c index e93a8f6f35d4..3052f6507f53 100644 --- a/crypto/scatterwalk.c +++ b/crypto/scatterwalk.c | |||
@@ -23,14 +23,6 @@ | |||
23 | #include "internal.h" | 23 | #include "internal.h" |
24 | #include "scatterwalk.h" | 24 | #include "scatterwalk.h" |
25 | 25 | ||
26 | enum km_type crypto_km_types[] = { | ||
27 | KM_USER0, | ||
28 | KM_USER1, | ||
29 | KM_SOFTIRQ0, | ||
30 | KM_SOFTIRQ1, | ||
31 | }; | ||
32 | EXPORT_SYMBOL_GPL(crypto_km_types); | ||
33 | |||
34 | static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) | 26 | static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) |
35 | { | 27 | { |
36 | void *src = out ? buf : sgdata; | 28 | void *src = out ? buf : sgdata; |