linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ubifs: Fix build errors as symbol undefined
@ 2022-11-15  8:33 Li Hua
  2022-11-15  8:24 ` Zhihao Cheng
  2022-11-19  5:21 ` Lihua (lihua, ran)
  0 siblings, 2 replies; 7+ messages in thread
From: Li Hua @ 2022-11-15  8:33 UTC (permalink / raw)
  To: richard, s.hauer
  Cc: linux-mtd, linux-kernel, weiyongjun1, yusongping, hucool.lihua

When CONFIG_UBIFS_FS is enable but CONFIG_UBIFS_FS_AUTHENTICATION is not set:
    ERROR: modpost: "ubifs_bad_hash" [fs/ubifs/ubifs.ko] undefined!

Fixes: 16a26b20d2af ("ubifs: authentication: Add hashes to index nodes")
Signed-off-by: Li Hua <hucool.lihua@huawei.com>
---
 fs/ubifs/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig
index 45d3d207fb99..93bda1057fdc 100644
--- a/fs/ubifs/Kconfig
+++ b/fs/ubifs/Kconfig
@@ -13,6 +13,7 @@ config UBIFS_FS
 	select CRYPTO_HASH_INFO
 	select UBIFS_FS_XATTR if FS_ENCRYPTION
 	select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
+	select UBIFS_FS_AUTHENTICATION
 	depends on MTD_UBI
 	help
 	  UBIFS is a file system for flash devices which works on top of UBI.
@@ -91,6 +92,7 @@ config UBIFS_FS_AUTHENTICATION
 	select KEYS
 	select CRYPTO_HMAC
 	select SYSTEM_DATA_VERIFICATION
+	select SYSTEM_TRUSTED_KEYRING
 	help
 	  Enable authentication support for UBIFS. This feature offers protection
 	  against offline changes for both data and metadata of the filesystem.
-- 
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-21  9:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-15  8:33 [PATCH] ubifs: Fix build errors as symbol undefined Li Hua
2022-11-15  8:24 ` Zhihao Cheng
2022-11-19  5:21 ` Lihua (lihua, ran)
2022-11-19 21:25   ` Richard Weinberger
2022-11-21  1:54     ` Lihua (lihua, ran)
2022-11-21  8:00       ` Richard Weinberger
2022-11-21  9:32         ` Lihua (lihua, ran)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).