Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/crc: remove unnecessary prompt for CONFIG_CRC32 and drop 'default y'

All modules that need CONFIG_CRC32 already select it, so there is no
need to bother users about the option, nor to default it to y.

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-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>

+1 -11
-1
arch/sh/configs/edosk7705_defconfig
··· 33 33 # CONFIG_PROC_FS is not set 34 34 # CONFIG_SYSFS is not set 35 35 # CONFIG_ENABLE_MUST_CHECK is not set 36 - # CONFIG_CRC32 is not set
-1
arch/sh/configs/kfr2r09-romimage_defconfig
··· 49 49 # CONFIG_NETWORK_FILESYSTEMS is not set 50 50 # CONFIG_ENABLE_MUST_CHECK is not set 51 51 CONFIG_DEBUG_FS=y 52 - # CONFIG_CRC32 is not set
-1
arch/sh/configs/sh7724_generic_defconfig
··· 39 39 # CONFIG_SYSFS is not set 40 40 # CONFIG_MISC_FILESYSTEMS is not set 41 41 # CONFIG_ENABLE_MUST_CHECK is not set 42 - # CONFIG_CRC32 is not set
-1
arch/sh/configs/sh7770_generic_defconfig
··· 41 41 # CONFIG_SYSFS is not set 42 42 # CONFIG_MISC_FILESYSTEMS is not set 43 43 # CONFIG_ENABLE_MUST_CHECK is not set 44 - # CONFIG_CRC32 is not set
+1 -7
lib/Kconfig
··· 177 177 functions require M here. 178 178 179 179 config CRC32 180 - tristate "CRC32/CRC32c functions" 181 - default y 180 + tristate 182 181 select BITREVERSE 183 - help 184 - This option is provided for the case where no in-kernel-tree 185 - modules require CRC32/CRC32c functions, but a module built outside 186 - the kernel tree does. Such modules that use library CRC32/CRC32c 187 - functions require M here. 188 182 189 183 config ARCH_HAS_CRC32 190 184 bool