From e9d0526e1b8a881c9b49facc9ba30716fb08d437 Mon Sep 17 00:00:00 2001 From: liankong Date: Tue, 1 Apr 2025 12:28:59 +0800 Subject: [PATCH] 1 --- kernel/kpm/Makefile | 4 +--- userspace/kpmmgr/jni/kpmmgr.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/kpm/Makefile b/kernel/kpm/Makefile index e0a8ce1a..10cf7d44 100644 --- a/kernel/kpm/Makefile +++ b/kernel/kpm/Makefile @@ -1,4 +1,2 @@ obj-y += kpm.o -obj-y += compact.o - -ccflags-y += -flto=thin \ No newline at end of file +obj-y += compact.o \ No newline at end of file diff --git a/userspace/kpmmgr/jni/kpmmgr.c b/userspace/kpmmgr/jni/kpmmgr.c index 7fce2f4a..7c4d9a7f 100644 --- a/userspace/kpmmgr/jni/kpmmgr.c +++ b/userspace/kpmmgr/jni/kpmmgr.c @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) { if (strcmp(argv[1], "load") == 0 && argc >= 3) { // 加载 KPM 模块 ret = prctl(KSU_OPTIONS, CONTROL_CODE(SUKISU_KPM_LOAD), argv[2], (argc > 3 ? argv[3] : NULL), &out); - if(out == 0) { + if(out > 0) { printf("Success"); } } else if (strcmp(argv[1], "unload") == 0 && argc >= 3) {