mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 14:53:11 +01:00
This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng <[email protected]> Reviewed-by: Gary Guo <[email protected]> Signed-off-by: Alice Ryhl <[email protected]> Signed-off-by: Boqun Feng <[email protected]> Link: https://patch.msgid.link/[email protected]
19 lines
246 B
C
19 lines
246 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <asm/barrier.h>
|
|
|
|
__rust_helper void rust_helper_smp_mb(void)
|
|
{
|
|
smp_mb();
|
|
}
|
|
|
|
__rust_helper void rust_helper_smp_wmb(void)
|
|
{
|
|
smp_wmb();
|
|
}
|
|
|
|
__rust_helper void rust_helper_smp_rmb(void)
|
|
{
|
|
smp_rmb();
|
|
}
|