From a7e4f70d58fccca00a9e5ca0033a801fdc75fdef Mon Sep 17 00:00:00 2001 From: Bohan Lei Date: Wed, 15 May 2024 02:01:28 +0000 Subject: [PATCH] Fixed non-x86 case of fh_install_hook --- src/modules/pmcs/pmctrack_stub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/pmcs/pmctrack_stub.c b/src/modules/pmcs/pmctrack_stub.c index a6b3b64..79e4401 100644 --- a/src/modules/pmcs/pmctrack_stub.c +++ b/src/modules/pmcs/pmctrack_stub.c @@ -554,6 +554,8 @@ int fh_install_hook(struct ftrace_hook *hook) hook->ops.flags = FTRACE_OPS_FL_SAVE_REGS | FTRACE_OPS_FL_IPMODIFY; } +#else + ; #endif #if defined CONFIG_X86 if(strcmp(hook->name, "intel_thermal_interrupt") == 0) {