hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/ubifs/ubifs.h
....@@ -1594,8 +1594,13 @@
15941594 return crypto_memneq(expected, got, c->hmac_desc_len);
15951595 }
15961596
1597
+#ifdef CONFIG_UBIFS_FS_AUTHENTICATION
15971598 void ubifs_bad_hash(const struct ubifs_info *c, const void *node,
15981599 const u8 *hash, int lnum, int offs);
1600
+#else
1601
+static inline void ubifs_bad_hash(const struct ubifs_info *c, const void *node,
1602
+ const u8 *hash, int lnum, int offs) {};
1603
+#endif
15991604
16001605 int __ubifs_node_check_hash(const struct ubifs_info *c, const void *buf,
16011606 const u8 *expected);