lib/crc: remove CONFIG_LIBCRC32C

Now that LIBCRC32C does nothing besides select CRC32, make every option
that selects LIBCRC32C instead select CRC32 directly.  Then remove
LIBCRC32C.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250401221600.24878-8-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
Eric Biggers 2025-04-01 15:16:00 -07:00
parent 31ab49a99f
commit b261d22220
20 changed files with 20 additions and 28 deletions

View file

@ -367,7 +367,7 @@ config BLK_DEV_RBD
tristate "Rados block device (RBD)" tristate "Rados block device (RBD)"
depends on INET && BLOCK depends on INET && BLOCK
select CEPH_LIB select CEPH_LIB
select LIBCRC32C select CRC32
select CRYPTO_AES select CRYPTO_AES
select CRYPTO select CRYPTO
help help

View file

@ -10,7 +10,7 @@ config BLK_DEV_DRBD
tristate "DRBD Distributed Replicated Block Device support" tristate "DRBD Distributed Replicated Block Device support"
depends on PROC_FS && INET depends on PROC_FS && INET
select LRU_CACHE select LRU_CACHE
select LIBCRC32C select CRC32
help help
NOTE: In order to authenticate connections you have to select NOTE: In order to authenticate connections you have to select

View file

@ -139,7 +139,7 @@ config MD_RAID456
tristate "RAID-4/RAID-5/RAID-6 mode" tristate "RAID-4/RAID-5/RAID-6 mode"
depends on BLK_DEV_MD depends on BLK_DEV_MD
select RAID6_PQ select RAID6_PQ
select LIBCRC32C select CRC32
select ASYNC_MEMCPY select ASYNC_MEMCPY
select ASYNC_XOR select ASYNC_XOR
select ASYNC_PQ select ASYNC_PQ

View file

@ -2,7 +2,7 @@
config DM_PERSISTENT_DATA config DM_PERSISTENT_DATA
tristate tristate
depends on BLK_DEV_DM depends on BLK_DEV_DM
select LIBCRC32C select CRC32
select DM_BUFIO select DM_BUFIO
help help
Library providing immutable on-disk data structure support for Library providing immutable on-disk data structure support for

View file

@ -143,7 +143,7 @@ config BNX2X
depends on PTP_1588_CLOCK_OPTIONAL depends on PTP_1588_CLOCK_OPTIONAL
select FW_LOADER select FW_LOADER
select ZLIB_INFLATE select ZLIB_INFLATE
select LIBCRC32C select CRC32
select MDIO select MDIO
help help
This driver supports Broadcom NetXtremeII 10 gigabit Ethernet cards. This driver supports Broadcom NetXtremeII 10 gigabit Ethernet cards.
@ -207,7 +207,7 @@ config BNXT
depends on PCI depends on PCI
depends on PTP_1588_CLOCK_OPTIONAL depends on PTP_1588_CLOCK_OPTIONAL
select FW_LOADER select FW_LOADER
select LIBCRC32C select CRC32
select NET_DEVLINK select NET_DEVLINK
select PAGE_POOL select PAGE_POOL
select DIMLIB select DIMLIB

View file

@ -70,8 +70,8 @@ config LIQUIDIO
depends on 64BIT && PCI depends on 64BIT && PCI
depends on PCI depends on PCI
depends on PTP_1588_CLOCK_OPTIONAL depends on PTP_1588_CLOCK_OPTIONAL
select CRC32
select FW_LOADER select FW_LOADER
select LIBCRC32C
select LIQUIDIO_CORE select LIQUIDIO_CORE
select NET_DEVLINK select NET_DEVLINK
help help

View file

@ -4,7 +4,7 @@ config BCACHEFS_FS
depends on BLOCK depends on BLOCK
select EXPORTFS select EXPORTFS
select CLOSURES select CLOSURES
select LIBCRC32C select CRC32
select CRC64 select CRC64
select FS_POSIX_ACL select FS_POSIX_ACL
select LZ4_COMPRESS select LZ4_COMPRESS

View file

@ -3,9 +3,9 @@
config BTRFS_FS config BTRFS_FS
tristate "Btrfs filesystem support" tristate "Btrfs filesystem support"
select BLK_CGROUP_PUNT_BIO select BLK_CGROUP_PUNT_BIO
select CRC32
select CRYPTO select CRYPTO
select CRYPTO_CRC32C select CRYPTO_CRC32C
select LIBCRC32C
select CRYPTO_XXHASH select CRYPTO_XXHASH
select CRYPTO_SHA256 select CRYPTO_SHA256
select CRYPTO_BLAKE2B select CRYPTO_BLAKE2B

View file

@ -3,7 +3,7 @@ config CEPH_FS
tristate "Ceph distributed file system" tristate "Ceph distributed file system"
depends on INET depends on INET
select CEPH_LIB select CEPH_LIB
select LIBCRC32C select CRC32
select CRYPTO_AES select CRYPTO_AES
select CRYPTO select CRYPTO
select NETFS_SUPPORT select NETFS_SUPPORT

View file

@ -3,8 +3,8 @@
config EROFS_FS config EROFS_FS
tristate "EROFS filesystem support" tristate "EROFS filesystem support"
depends on BLOCK depends on BLOCK
select CRC32
select FS_IOMAP select FS_IOMAP
select LIBCRC32C
help help
EROFS (Enhanced Read-Only File System) is a lightweight read-only EROFS (Enhanced Read-Only File System) is a lightweight read-only
file system with modern designs (e.g. no buffer heads, inline file system with modern designs (e.g. no buffer heads, inline

View file

@ -4,7 +4,6 @@ config GFS2_FS
select BUFFER_HEAD select BUFFER_HEAD
select FS_POSIX_ACL select FS_POSIX_ACL
select CRC32 select CRC32
select LIBCRC32C
select QUOTACTL select QUOTACTL
select FS_IOMAP select FS_IOMAP
help help

View file

@ -3,7 +3,7 @@ config XFS_FS
tristate "XFS filesystem support" tristate "XFS filesystem support"
depends on BLOCK depends on BLOCK
select EXPORTFS select EXPORTFS
select LIBCRC32C select CRC32
select FS_IOMAP select FS_IOMAP
help help
XFS is a high performance journaling filesystem which originated XFS is a high performance journaling filesystem which originated

View file

@ -208,13 +208,6 @@ config CRC7
The CRC7 library functions. Select this if your module uses any of The CRC7 library functions. Select this if your module uses any of
the functions from <linux/crc7.h>. the functions from <linux/crc7.h>.
config LIBCRC32C
tristate
select CRC32
help
This option just selects CRC32 and is provided for compatibility
purposes until the users are updated to select CRC32 directly.
config CRC8 config CRC8
tristate tristate
help help

View file

@ -9,7 +9,7 @@
config BATMAN_ADV config BATMAN_ADV
tristate "B.A.T.M.A.N. Advanced Meshing Protocol" tristate "B.A.T.M.A.N. Advanced Meshing Protocol"
select LIBCRC32C select CRC32
help help
B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
a routing protocol for multi-hop ad-hoc mesh networks. The a routing protocol for multi-hop ad-hoc mesh networks. The

View file

@ -2,7 +2,7 @@
config CEPH_LIB config CEPH_LIB
tristate "Ceph core library" tristate "Ceph core library"
depends on INET depends on INET
select LIBCRC32C select CRC32
select CRYPTO_AES select CRYPTO_AES
select CRYPTO_CBC select CRYPTO_CBC
select CRYPTO_GCM select CRYPTO_GCM

View file

@ -212,7 +212,7 @@ config NF_CT_PROTO_SCTP
bool 'SCTP protocol connection tracking support' bool 'SCTP protocol connection tracking support'
depends on NETFILTER_ADVANCED depends on NETFILTER_ADVANCED
default y default y
select LIBCRC32C select CRC32
help help
With this option enabled, the layer 3 independent connection With this option enabled, the layer 3 independent connection
tracking code will be able to do state tracking on SCTP connections. tracking code will be able to do state tracking on SCTP connections.
@ -475,7 +475,7 @@ endif # NF_CONNTRACK
config NF_TABLES config NF_TABLES
select NETFILTER_NETLINK select NETFILTER_NETLINK
select LIBCRC32C select CRC32
tristate "Netfilter nf_tables support" tristate "Netfilter nf_tables support"
help help
nftables is the new packet classification framework that intends to nftables is the new packet classification framework that intends to

View file

@ -105,7 +105,7 @@ config IP_VS_PROTO_AH
config IP_VS_PROTO_SCTP config IP_VS_PROTO_SCTP
bool "SCTP load balancing support" bool "SCTP load balancing support"
select LIBCRC32C select CRC32
help help
This option enables support for load balancing SCTP transport This option enables support for load balancing SCTP transport
protocol. Say Y if unsure. protocol. Say Y if unsure.

View file

@ -11,7 +11,7 @@ config OPENVSWITCH
(!NF_NAT || NF_NAT) && \ (!NF_NAT || NF_NAT) && \
(!NETFILTER_CONNCOUNT || NETFILTER_CONNCOUNT))) (!NETFILTER_CONNCOUNT || NETFILTER_CONNCOUNT)))
depends on PSAMPLE || !PSAMPLE depends on PSAMPLE || !PSAMPLE
select LIBCRC32C select CRC32
select MPLS select MPLS
select NET_MPLS_GSO select NET_MPLS_GSO
select DST_CACHE select DST_CACHE

View file

@ -784,7 +784,7 @@ config NET_ACT_SKBEDIT
config NET_ACT_CSUM config NET_ACT_CSUM
tristate "Checksum Updating" tristate "Checksum Updating"
depends on NET_CLS_ACT && INET depends on NET_CLS_ACT && INET
select LIBCRC32C select CRC32
help help
Say Y here to update some common checksum after some direct Say Y here to update some common checksum after some direct
packet alterations. packet alterations.

View file

@ -7,10 +7,10 @@ menuconfig IP_SCTP
tristate "The SCTP Protocol" tristate "The SCTP Protocol"
depends on INET depends on INET
depends on IPV6 || IPV6=n depends on IPV6 || IPV6=n
select CRC32
select CRYPTO select CRYPTO
select CRYPTO_HMAC select CRYPTO_HMAC
select CRYPTO_SHA1 select CRYPTO_SHA1
select LIBCRC32C
select NET_UDP_TUNNEL select NET_UDP_TUNNEL
help help
Stream Control Transmission Protocol Stream Control Transmission Protocol