mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
Currently vma test is failing because of the new vma_assert_attached()
assertion. The check is failing because previous refcount_set() inside
vma_mark_attached() is a NoOp. Fix the definition of atomic_set() to
correctly set the value of the atomic.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 9325b8b5a1 ("tools: add skeleton code for userland testing of VMA logic")
Signed-off-by: Suren Baghdasaryan <[email protected]>
Reviewed-by: Lorenzo Stoakes <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Liam R. Howlett <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
8 lines
259 B
C
8 lines
259 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
#define atomic_t int32_t
|
|
#define atomic_inc(x) uatomic_inc(x)
|
|
#define atomic_read(x) uatomic_read(x)
|
|
#define atomic_set(x, y) uatomic_set(x, y)
|
|
#define U8_MAX UCHAR_MAX
|
|
#include "../../../../include/linux/maple_tree.h"
|