lib/crc: remove CONFIG_LIBCRC32C
authorEric Biggers <ebiggers@google.com>
Tue, 1 Apr 2025 22:16:00 +0000 (15:16 -0700)
committerEric Biggers <ebiggers@google.com>
Fri, 4 Apr 2025 18:31:42 +0000 (11:31 -0700)
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>
20 files changed:
drivers/block/Kconfig
drivers/block/drbd/Kconfig
drivers/md/Kconfig
drivers/md/persistent-data/Kconfig
drivers/net/ethernet/broadcom/Kconfig
drivers/net/ethernet/cavium/Kconfig
fs/bcachefs/Kconfig
fs/btrfs/Kconfig
fs/ceph/Kconfig
fs/erofs/Kconfig
fs/gfs2/Kconfig
fs/xfs/Kconfig
lib/Kconfig
net/batman-adv/Kconfig
net/ceph/Kconfig
net/netfilter/Kconfig
net/netfilter/ipvs/Kconfig
net/openvswitch/Kconfig
net/sched/Kconfig
net/sctp/Kconfig

index a97f2c40c640dd60e8916e3468aaea60197a6583..2551ebf88dda1498413db113d6e540507aa3e6c4 100644 (file)
@@ -367,7 +367,7 @@ config BLK_DEV_RBD
        tristate "Rados block device (RBD)"
        depends on INET && BLOCK
        select CEPH_LIB
-       select LIBCRC32C
+       select CRC32
        select CRYPTO_AES
        select CRYPTO
        help
index 6fb4e38fca88c28852f8e5ac9c4d6ced4ede16de..495a72da04c6c1969fc1d4c2c77bc129dcb3d0b3 100644 (file)
@@ -10,7 +10,7 @@ config BLK_DEV_DRBD
        tristate "DRBD Distributed Replicated Block Device support"
        depends on PROC_FS && INET
        select LRU_CACHE
-       select LIBCRC32C
+       select CRC32
        help
 
          NOTE: In order to authenticate connections you have to select
index 0b1870a09e1fdc1384329b083496e25e664563a4..2c26a02391cded1bd5cc6b47f266044cbe20a041 100644 (file)
@@ -139,7 +139,7 @@ config MD_RAID456
        tristate "RAID-4/RAID-5/RAID-6 mode"
        depends on BLK_DEV_MD
        select RAID6_PQ
-       select LIBCRC32C
+       select CRC32
        select ASYNC_MEMCPY
        select ASYNC_XOR
        select ASYNC_PQ
index f4f948b0e173104810c69ef111ec215d80fa76d8..dbb97a7233ab95d9e70de33792fbaa6a853e64ed 100644 (file)
@@ -2,7 +2,7 @@
 config DM_PERSISTENT_DATA
        tristate
        depends on BLK_DEV_DM
-       select LIBCRC32C
+       select CRC32
        select DM_BUFIO
        help
         Library providing immutable on-disk data structure support for
index eeec8bf17cf4581bfc68eeebcbb62492f3d6f176..1bd4313215d7150d1d0d6e7300d2d0d5b96121ec 100644 (file)
@@ -143,7 +143,7 @@ config BNX2X
        depends on PTP_1588_CLOCK_OPTIONAL
        select FW_LOADER
        select ZLIB_INFLATE
-       select LIBCRC32C
+       select CRC32
        select MDIO
        help
          This driver supports Broadcom NetXtremeII 10 gigabit Ethernet cards.
@@ -207,7 +207,7 @@ config BNXT
        depends on PCI
        depends on PTP_1588_CLOCK_OPTIONAL
        select FW_LOADER
-       select LIBCRC32C
+       select CRC32
        select NET_DEVLINK
        select PAGE_POOL
        select DIMLIB
index ca742cc146d798aea9145f15ebfc0c485d6c2487..7dae5aad3689d6a8982424df188fdc972edbd91e 100644 (file)
@@ -70,8 +70,8 @@ config LIQUIDIO
        depends on 64BIT && PCI
        depends on PCI
        depends on PTP_1588_CLOCK_OPTIONAL
+       select CRC32
        select FW_LOADER
-       select LIBCRC32C
        select LIQUIDIO_CORE
        select NET_DEVLINK
        help
index c9798750202d388b86798425d675d4ac5aa5db79..ea668dedb2608aeddcad03ec262188091d718292 100644 (file)
@@ -4,7 +4,7 @@ config BCACHEFS_FS
        depends on BLOCK
        select EXPORTFS
        select CLOSURES
-       select LIBCRC32C
+       select CRC32
        select CRC64
        select FS_POSIX_ACL
        select LZ4_COMPRESS
index fa8515598341ec16530abd1d8bf3438039d6b51f..73a2dfb854c55e4c73b0e14a91ccd71566acd90a 100644 (file)
@@ -3,9 +3,9 @@
 config BTRFS_FS
        tristate "Btrfs filesystem support"
        select BLK_CGROUP_PUNT_BIO
+       select CRC32
        select CRYPTO
        select CRYPTO_CRC32C
-       select LIBCRC32C
        select CRYPTO_XXHASH
        select CRYPTO_SHA256
        select CRYPTO_BLAKE2B
index 7249d70e1a43fade3a72728df628274d25f7e9c9..3e7def3d31c16fb03d20ac84201b069aab9c980b 100644 (file)
@@ -3,7 +3,7 @@ config CEPH_FS
        tristate "Ceph distributed file system"
        depends on INET
        select CEPH_LIB
-       select LIBCRC32C
+       select CRC32
        select CRYPTO_AES
        select CRYPTO
        select NETFS_SUPPORT
index 331e49cd1b8d9d302714b58cc83d7ccbbe38e9be..8f68ec49ad897b647aa1fb1ea1c305304d70edeb 100644 (file)
@@ -3,8 +3,8 @@
 config EROFS_FS
        tristate "EROFS filesystem support"
        depends on BLOCK
+       select CRC32
        select FS_IOMAP
-       select LIBCRC32C
        help
          EROFS (Enhanced Read-Only File System) is a lightweight read-only
          file system with modern designs (e.g. no buffer heads, inline
index be7f87a8e11ae185fcde84063b2b9aadfa2cfbe6..7bd231d16d4a076e2172bf2d49dbb68a803bcbef 100644 (file)
@@ -4,7 +4,6 @@ config GFS2_FS
        select BUFFER_HEAD
        select FS_POSIX_ACL
        select CRC32
-       select LIBCRC32C
        select QUOTACTL
        select FS_IOMAP
        help
index fffd6fffdce0f014c560f2f34b6872fb909fbfc9..ae0ca68584963a1e4581bf8600decffb96bdceff 100644 (file)
@@ -3,7 +3,7 @@ config XFS_FS
        tristate "XFS filesystem support"
        depends on BLOCK
        select EXPORTFS
-       select LIBCRC32C
+       select CRC32
        select FS_IOMAP
        help
          XFS is a high performance journaling filesystem which originated
index 4e796eaea2f4f60bc83c448baa891c7a2bac0f87..6c1b8f1842678c13966768177781b2de04601bdd 100644 (file)
@@ -208,13 +208,6 @@ config CRC7
          The CRC7 library functions.  Select this if your module uses any of
          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
        tristate
        help
index 860a0786bc1e40daf140193fb90b50db08ce8270..20b316207f9aa6e52cc7d37616cfdbba741b3d61 100644 (file)
@@ -9,7 +9,7 @@
 
 config BATMAN_ADV
        tristate "B.A.T.M.A.N. Advanced Meshing Protocol"
-       select LIBCRC32C
+       select CRC32
        help
          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
index c5c4eef3a9ff135284edcd500e01ba7af563205b..0aa21fcbf6ece564c1599ed0d2538f824274494d 100644 (file)
@@ -2,7 +2,7 @@
 config CEPH_LIB
        tristate "Ceph core library"
        depends on INET
-       select LIBCRC32C
+       select CRC32
        select CRYPTO_AES
        select CRYPTO_CBC
        select CRYPTO_GCM
index df2dc21304efbe5b7d689d9871beed8c6455b7d6..047ba81865edff61d2fca61a7614ee9f0e5d14ff 100644 (file)
@@ -212,7 +212,7 @@ config NF_CT_PROTO_SCTP
        bool 'SCTP protocol connection tracking support'
        depends on NETFILTER_ADVANCED
        default y
-       select LIBCRC32C
+       select CRC32
        help
          With this option enabled, the layer 3 independent connection
          tracking code will be able to do state tracking on SCTP connections.
@@ -475,7 +475,7 @@ endif # NF_CONNTRACK
 
 config NF_TABLES
        select NETFILTER_NETLINK
-       select LIBCRC32C
+       select CRC32
        tristate "Netfilter nf_tables support"
        help
          nftables is the new packet classification framework that intends to
index 2a3017b9c001b3da247013195e5dfaeaf24c2469..8c5b1fe12d0782a091538246c0e84c5687481472 100644 (file)
@@ -105,7 +105,7 @@ config      IP_VS_PROTO_AH
 
 config  IP_VS_PROTO_SCTP
        bool "SCTP load balancing support"
-       select LIBCRC32C
+       select CRC32
        help
          This option enables support for load balancing SCTP transport
          protocol. Say Y if unsure.
index 2535f3f9f4623be11c9b54a71b7bfb58a008ba9a..5481bd561eb414e3bbb4b50922c84f1c1afe773a 100644 (file)
@@ -11,7 +11,7 @@ config OPENVSWITCH
                                     (!NF_NAT || NF_NAT) && \
                                     (!NETFILTER_CONNCOUNT || NETFILTER_CONNCOUNT)))
        depends on PSAMPLE || !PSAMPLE
-       select LIBCRC32C
+       select CRC32
        select MPLS
        select NET_MPLS_GSO
        select DST_CACHE
index 8180d0c12fceaf4a9fcdedc117fb131b8a1def44..a800127effcd73d22e1c35b12d8cff66edccc7ed 100644 (file)
@@ -784,7 +784,7 @@ config NET_ACT_SKBEDIT
 config NET_ACT_CSUM
        tristate "Checksum Updating"
        depends on NET_CLS_ACT && INET
-       select LIBCRC32C
+       select CRC32
        help
          Say Y here to update some common checksum after some direct
          packet alterations.
index 5da599ff84a90f2932096dbc9518a70f075eafb6..d18a72df3654eb456251869e644c4ab28accfd2a 100644 (file)
@@ -7,10 +7,10 @@ menuconfig IP_SCTP
        tristate "The SCTP Protocol"
        depends on INET
        depends on IPV6 || IPV6=n
+       select CRC32
        select CRYPTO
        select CRYPTO_HMAC
        select CRYPTO_SHA1
-       select LIBCRC32C
        select NET_UDP_TUNNEL
        help
          Stream Control Transmission Protocol