Whamcloud - gitweb
LU-13355 crypto: adler32 wrapper in libcfs 78/37878/2
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 11 Mar 2020 10:05:48 +0000 (11:05 +0100)
committerOleg Drokin <green@whamcloud.com>
Sat, 14 Mar 2020 17:25:51 +0000 (17:25 +0000)
libcfs has wrappers in order to be able to use adler32 as any other
crypto module. But libcfs should not be considered as the owner of
this implementation.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I66da322b7deae7aeb7f2fb95ede9ee1eff43c70c
Reviewed-on: https://review.whamcloud.com/37878
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
libcfs/libcfs/linux-crypto-adler.c

index 44bf374..ee47fb5 100644 (file)
@@ -119,7 +119,7 @@ static struct shash_alg alg = {
                .cra_priority           = 100,
                .cra_blocksize          = CHKSUM_BLOCK_SIZE,
                .cra_ctxsize            = sizeof(u32),
-               .cra_module             = THIS_MODULE,
+               .cra_module             = NULL,
                .cra_init               = adler32_cra_init,
        }
 };