linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Lihua (lihua, ran)" <hucool.lihua@huawei.com>
To: <richard@nod.at>, <s.hauer@pengutronix.de>
Cc: <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
	<weiyongjun1@huawei.com>, <yusongping@huawei.com>
Subject: Re: [PATCH] ubifs: Fix build errors as symbol undefined
Date: Sat, 19 Nov 2022 13:21:03 +0800	[thread overview]
Message-ID: <23feff35-6f2d-5cd7-57f9-ff2591a3c74e@huawei.com> (raw)
In-Reply-To: <20221115083335.21211-1-hucool.lihua@huawei.com>

ping

在 2022/11/15 16:33, Li Hua 写道:
> 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.
> 

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

  parent reply	other threads:[~2022-11-19  5:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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) [this message]
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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23feff35-6f2d-5cd7-57f9-ff2591a3c74e@huawei.com \
    --to=hucool.lihua@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=s.hauer@pengutronix.de \
    --cc=weiyongjun1@huawei.com \
    --cc=yusongping@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).