• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂88d931a71052fc8fb7b48126ae09aa875745d5ec (tree)
時間2022-07-20 20:38:49
作者Tom Rini <trini@kons...>
CommiterTom Rini

Log Message

Merge tag 'for-v2022.10' of https://source.denx.de/u-boot/custodians/u-boot-ubi

ubifs changes for 2022.10

UBIFS fixes from Pali Rohar:

- ubifs: Fix ubifs_assert_cmt_locked
- ubifs: Use U-Boot assert() from <log.h>

Change Summary

差異

--- a/drivers/mtd/ubi/debug.h
+++ b/drivers/mtd/ubi/debug.h
@@ -27,13 +27,8 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);
2727 } \
2828 } while (0)
2929 #else
30-#define ubi_assert(expr) do { \
31- if (unlikely(!(expr))) { \
32- pr_debug("UBI assert failed in %s at %u\n", \
33- __func__, __LINE__); \
34- dump_stack(); \
35- } \
36-} while (0)
30+#include <log.h>
31+#define ubi_assert(expr) assert(expr)
3732 #endif
3833
3934 #define ubi_dbg_print_hex_dump(ps, pt, r, g, b, len, a) \
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -165,21 +165,10 @@ struct ubifs_global_debug_info {
165165 dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \
166166 } while (0)
167167 #else
168-#define ubifs_assert(expr) do { \
169- if (unlikely(!(expr))) { \
170- pr_debug("UBIFS assert failed in %s at %u\n", \
171- __func__, __LINE__); \
172- dump_stack(); \
173- } \
174-} while (0)
175168
176-#define ubifs_assert_cmt_locked(c) do { \
177- if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
178- up_write(&(c)->commit_sem); \
179- pr_debug("commit lock is not locked!\n"); \
180- ubifs_assert(0); \
181- } \
182-} while (0)
169+#include <log.h>
170+#define ubifs_assert(expr) assert(expr)
171+#define ubifs_assert_cmt_locked(c) do { } while (0)
183172
184173 #define ubifs_dbg_msg(type, fmt, ...) \
185174 pr_debug("UBIFS DBG " type ": " fmt "\n", \