Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9859 libcfs: fix cfs_print_to_console()
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
linux
/
linux-crypto-adler.c
diff --git
a/libcfs/libcfs/linux/linux-crypto-adler.c
b/libcfs/libcfs/linux/linux-crypto-adler.c
index
dd2aafd
..
90f502f
100644
(file)
--- a/
libcfs/libcfs/linux/linux-crypto-adler.c
+++ b/
libcfs/libcfs/linux/linux-crypto-adler.c
@@
-34,16
+34,9
@@
#include <libcfs/linux/linux-crypto.h>
#include <crypto/internal/hash.h>
#include <libcfs/linux/linux-crypto.h>
#include <crypto/internal/hash.h>
-
#define CHKSUM_BLOCK_SIZE 1
#define CHKSUM_DIGEST_SIZE 4
#define CHKSUM_BLOCK_SIZE 1
#define CHKSUM_DIGEST_SIZE 4
-
-static u32 __adler32(u32 cksum, unsigned char const *p, size_t len)
-{
- return zlib_adler32(cksum, p, len);
-}
-
static int adler32_cra_init(struct crypto_tfm *tfm)
{
u32 *key = crypto_tfm_ctx(tfm);
static int adler32_cra_init(struct crypto_tfm *tfm)
{
u32 *key = crypto_tfm_ctx(tfm);
@@
-81,13
+74,13
@@
static int adler32_update(struct shash_desc *desc, const u8 *data,
{
u32 *cksump = shash_desc_ctx(desc);
{
u32 *cksump = shash_desc_ctx(desc);
- *cksump =
_
_adler32(*cksump, data, len);
+ *cksump =
zlib
_adler32(*cksump, data, len);
return 0;
}
static int __adler32_finup(u32 *cksump, const u8 *data, unsigned int len,
u8 *out)
{
return 0;
}
static int __adler32_finup(u32 *cksump, const u8 *data, unsigned int len,
u8 *out)
{
- *(u32 *)out =
_
_adler32(*cksump, data, len);
+ *(u32 *)out =
zlib
_adler32(*cksump, data, len);
return 0;
}
return 0;
}
@@
-135,10
+128,8
@@
int cfs_crypto_adler32_register(void)
{
return crypto_register_shash(&alg);
}
{
return crypto_register_shash(&alg);
}
-EXPORT_SYMBOL(cfs_crypto_adler32_register);
void cfs_crypto_adler32_unregister(void)
{
crypto_unregister_shash(&alg);
}
void cfs_crypto_adler32_unregister(void)
{
crypto_unregister_shash(&alg);
}
-EXPORT_SYMBOL(cfs_crypto_adler32_unregister);