diff mbox series

[2/2] libcrc32c: remove crc32c_impl

Message ID 20230405054905.94678-3-hch@lst.de (mailing list archive)
State New, archived
Headers show
Series [1/2] btrfs: don't print the crc32c implementtion at load time | expand

Commit Message

Christoph Hellwig April 5, 2023, 5:49 a.m. UTC
This was only ever used by btrfs, and the btrfs users just went away.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 include/linux/crc32c.h | 1 -
 lib/libcrc32c.c        | 6 ------
 2 files changed, 7 deletions(-)

Comments

Herbert Xu April 5, 2023, 6:04 a.m. UTC | #1
On Wed, Apr 05, 2023 at 07:49:05AM +0200, Christoph Hellwig wrote:
> This was only ever used by btrfs, and the btrfs users just went away.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  include/linux/crc32c.h | 1 -
>  lib/libcrc32c.c        | 6 ------
>  2 files changed, 7 deletions(-)

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Thanks,
diff mbox series

Patch

diff --git a/include/linux/crc32c.h b/include/linux/crc32c.h
index bd21af828ff6fd..357ae4611a4539 100644
--- a/include/linux/crc32c.h
+++ b/include/linux/crc32c.h
@@ -5,7 +5,6 @@ 
 #include <linux/types.h>
 
 extern u32 crc32c(u32 crc, const void *address, unsigned int length);
-extern const char *crc32c_impl(void);
 
 /* This macro exists for backwards-compatibility. */
 #define crc32c_le crc32c
diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c
index 5ca0d815a95df6..649e687413a0c1 100644
--- a/lib/libcrc32c.c
+++ b/lib/libcrc32c.c
@@ -65,12 +65,6 @@  static void __exit libcrc32c_mod_fini(void)
 	crypto_free_shash(tfm);
 }
 
-const char *crc32c_impl(void)
-{
-	return crypto_shash_driver_name(tfm);
-}
-EXPORT_SYMBOL(crc32c_impl);
-
 module_init(libcrc32c_mod_init);
 module_exit(libcrc32c_mod_fini);