dpu-utilities/0001-Enable-qtfs-compiled-on-machine-with-5.10-kernel.patch
2022-08-12 19:35:22 +08:00

37 lines
1.1 KiB
Diff

From 61bf2162d88247a6595a17a00c66e31c3b8e19c0 Mon Sep 17 00:00:00 2001
From: Yangxin <yangxin102@huawei.com>
Date: Fri, 12 Aug 2022 16:31:02 +0800
Subject: [PATCH] Enable qtfs compiled on machine with 5.10 kernel.
Signed-off-by: Yangxin <yangxin102@huawei.com>
---
qtfs/qtfs/Makefile | 2 +-
qtfs/qtfs_server/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/qtfs/qtfs/Makefile b/qtfs/qtfs/Makefile
index f3c6014..fb6a51e 100644
--- a/qtfs/qtfs/Makefile
+++ b/qtfs/qtfs/Makefile
@@ -1,5 +1,5 @@
ccflags-y += -I$(src)/../ -I$(src) -DQTFS_CLIENT
-KBUILD=/lib/modules/$(shell uname -r)/build/
+KBUILD=/lib/modules/5.10*/build/
obj-m:=qtfs.o
qtfs-objs:=qtfs-mod.o sb.o syscall.o ../conn.o xattr.o proc.o ../misc.o miss.o
diff --git a/qtfs/qtfs_server/Makefile b/qtfs/qtfs_server/Makefile
index c1c5ef6..13f9c3e 100644
--- a/qtfs/qtfs_server/Makefile
+++ b/qtfs/qtfs_server/Makefile
@@ -1,5 +1,5 @@
ccflags-y += -I$(src)/../ -I$(src) -DQTFS_SERVER
-KBUILD=/lib/modules/$(shell uname -r)/build/
+KBUILD=/lib/modules/5.10*/build/
obj-m:=qtfs_server.o
qtfs_server-objs:=../conn.o fsops.o qtfs-server.o ../misc.o
--
2.33.0