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) {