diff mbox series

zonefs: select CONFIG_CRC32

Message ID 20210103214358.1997428-1-arnd@kernel.org (mailing list archive)
State New, archived
Headers show
Series zonefs: select CONFIG_CRC32 | expand

Commit Message

Arnd Bergmann Jan. 3, 2021, 9:43 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de>

When CRC32 is disabled, zonefs cannot be linked:

ld: fs/zonefs/super.o: in function `zonefs_fill_super':

Add a Kconfig 'select' statement for it.

Fixes: 8dcc1a9d90c1 ("fs: New zonefs file system")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 fs/zonefs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Damien Le Moal Jan. 4, 2021, 12:13 a.m. UTC | #1
On 2021/01/04 6:44, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> When CRC32 is disabled, zonefs cannot be linked:
> 
> ld: fs/zonefs/super.o: in function `zonefs_fill_super':
> 
> Add a Kconfig 'select' statement for it.
> 
> Fixes: 8dcc1a9d90c1 ("fs: New zonefs file system")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  fs/zonefs/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/zonefs/Kconfig b/fs/zonefs/Kconfig
> index ef2697b78820..827278f937fe 100644
> --- a/fs/zonefs/Kconfig
> +++ b/fs/zonefs/Kconfig
> @@ -3,6 +3,7 @@ config ZONEFS_FS
>  	depends on BLOCK
>  	depends on BLK_DEV_ZONED
>  	select FS_IOMAP
> +	select CRC32
>  	help
>  	  zonefs is a simple file system which exposes zones of a zoned block
>  	  device (e.g. host-managed or host-aware SMR disk drives) as files.
> 

Applied. Thanks Arnd !
diff mbox series

Patch

diff --git a/fs/zonefs/Kconfig b/fs/zonefs/Kconfig
index ef2697b78820..827278f937fe 100644
--- a/fs/zonefs/Kconfig
+++ b/fs/zonefs/Kconfig
@@ -3,6 +3,7 @@  config ZONEFS_FS
 	depends on BLOCK
 	depends on BLK_DEV_ZONED
 	select FS_IOMAP
+	select CRC32
 	help
 	  zonefs is a simple file system which exposes zones of a zoned block
 	  device (e.g. host-managed or host-aware SMR disk drives) as files.