diff options
author | Li Hua <hucool.lihua@huawei.com> | 2022-11-21 12:18:47 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-02-02 21:13:34 +0100 |
commit | aa6d148e6d6270274e3d5a529b71c54cd329d17f (patch) | |
tree | ae08b47db5d9730c894b5c3408742614cacf9fb0 /samples/rpmsg | |
parent | ubi: ensure that VID header offset + VID header size <= alloc, size (diff) | |
download | linux-aa6d148e6d6270274e3d5a529b71c54cd329d17f.tar.xz linux-aa6d148e6d6270274e3d5a529b71c54cd329d17f.zip |
ubifs: Fix build errors as symbol undefined
With CONFIG_UBIFS_FS_AUTHENTICATION not set, the compiler can assume that
ubifs_node_check_hash() is never true and drops the call to ubifs_bad_hash().
Is CONFIG_CC_OPTIMIZE_FOR_SIZE enabled this optimization does not happen anymore.
So When CONFIG_UBIFS_FS and CONFIG_CC_OPTIMIZE_FOR_SIZE is enabled but
CONFIG_UBIFS_FS_AUTHENTICATION is not set, the build errors is as followd:
ERROR: modpost: "ubifs_bad_hash" [fs/ubifs/ubifs.ko] undefined!
Fix it by add no-op ubifs_bad_hash() for the CONFIG_UBIFS_FS_AUTHENTICATION=n case.
Fixes: 16a26b20d2af ("ubifs: authentication: Add hashes to index nodes")
Signed-off-by: Li Hua <hucool.lihua@huawei.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'samples/rpmsg')
0 files changed, 0 insertions, 0 deletions