From 82350f0759efb43ddd7e0d26beb48fb9243d811e Mon Sep 17 00:00:00 2001
From: doupengda <doupengda@loongson.cn>
Date: Tue, 23 Jan 2024 17:02:11 +0800
Subject: [PATCH] resolving loongarch64 compilation errors

---
 src/libpmem2/loongarch64/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libpmem2/loongarch64/init.c b/src/libpmem2/loongarch64/init.c
index f8b531b..6b5572a 100644
--- a/src/libpmem2/loongarch64/init.c
+++ b/src/libpmem2/loongarch64/init.c
@@ -36,6 +36,6 @@ pmem2_arch_init(struct pmem2_arch_info *info)
 {
 	LOG(3, NULL);
 
-	info->fence = loongarch_fence;
+	info->fence = loongarch_memory_fence;
 	info->flush = loongarch_flush;
 }
-- 
2.33.0


