diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-09-01 16:52:13 +0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:55:44 -0700 |
commit | 69646b10d6c4dfcab5b7f49c2569e91c730fc121 (patch) | |
tree | de6cbe171b8c188f879bb2c34dbe7e62723cc2f9 /crypto/scatterwalk.c | |
parent | 850db7faf509cfc553bb522ba7dcb649c92d8c37 (diff) | |
download | linux-crypto-69646b10d6c4dfcab5b7f49c2569e91c730fc121.tar.gz linux-crypto-69646b10d6c4dfcab5b7f49c2569e91c730fc121.zip |
[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 '')
-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 e93a8f6f..3052f650 100644 --- a/crypto/scatterwalk.c +++ b/crypto/scatterwalk.c @@ -23,14 +23,6 @@ #include "internal.h" #include "scatterwalk.h" -enum km_type crypto_km_types[] = { - KM_USER0, - KM_USER1, - KM_SOFTIRQ0, - KM_SOFTIRQ1, -}; -EXPORT_SYMBOL_GPL(crypto_km_types); - static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) { void *src = out ? buf : sgdata; |