diff --git a/0003-fix-loongarch64-install-error.patch b/0003-fix-loongarch64-install-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..f62be7721085bd5f80c71c0a470ae102163f26a3 --- /dev/null +++ b/0003-fix-loongarch64-install-error.patch @@ -0,0 +1,25 @@ +From 9598efcd4455bfacec07ea8fb781c8ddbaeb6617 Mon Sep 17 00:00:00 2001 +From: Na Cai +Date: Mon, 17 Jun 2024 17:02:40 +0800 +Subject: [PATCH] fix loongarch build error + +--- + vdo/cpu.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/vdo/cpu.h b/vdo/cpu.h +index ee449b7..8d043ad 100644 +--- a/vdo/cpu.h ++++ b/vdo/cpu.h +@@ -20,7 +20,7 @@ + #define CACHE_LINE_BYTES 128 + #elif defined(__s390x__) + #define CACHE_LINE_BYTES 256 +-#elif defined(__x86_64__) || defined(__aarch64__) || defined(__riscv) ++#elif defined(__x86_64__) || defined(__aarch64__) || defined(__riscv) || defined(__loongarch__) + #define CACHE_LINE_BYTES 64 + #else + #error "unknown cache line size" +-- +2.39.3 + diff --git a/kvdo.spec b/kvdo.spec index 2392de9a72d3d445fbd6635816df5db0fbd33029..eb308178d8e7e05eae629b6759ea25f5b0d4ea96 100644 --- a/kvdo.spec +++ b/kvdo.spec @@ -1,5 +1,5 @@ #This spec is obtained from source code(kvdo-6.2.2.24.tar.gz) -%define spec_release 4 +%define spec_release 5 %define kmod_name kmod-kvdo %define kmod_driver_version 8.2.1.2 %define kmod_rpm_release %{spec_release} @@ -17,6 +17,7 @@ URL: http://github.com/dm-vdo/kvdo Source0: https://github.com/dm-vdo/kvdo/archive/refs/tags/%{kmod_driver_version}.tar.gz Patch1: 01-add-riscv64-support.patch Patch2: 0002-replace-kernel-obsolete-api.patch +Patch3: 0003-fix-loongarch64-install-error.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires: dkms @@ -79,6 +80,9 @@ rm -rf $RPM_BUILD_ROOT %{_usr}/src/%{kmod_name}-%{version}-%{kmod_rpm_release}/* %changelog +* Mon Jun 17 2024 Na Cai - 8.2.1.2-5 +- fix loongarch64 install error + * Tue Mar 26 2024 Ge Wang - 8.2.1.2-4 - Replace kernel obsolete api