diff options
author | CoprDistGit <infra@openeuler.org> | 2024-11-21 08:03:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-11-21 08:03:09 +0000 |
commit | 2d17024a365126cd94df28519c4fecd24049bc08 (patch) | |
tree | 295ad3fc676c2a6a01619a5d68e6e59af798d16b /update-support-loongarch-fix-compilation-errors.patch | |
parent | e36a8eabe0d4807984abf28546e5aa6b85ca7dc0 (diff) |
automatic import of sysmonitor-kmod
Diffstat (limited to 'update-support-loongarch-fix-compilation-errors.patch')
-rw-r--r-- | update-support-loongarch-fix-compilation-errors.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/update-support-loongarch-fix-compilation-errors.patch b/update-support-loongarch-fix-compilation-errors.patch new file mode 100644 index 0000000..2958fae --- /dev/null +++ b/update-support-loongarch-fix-compilation-errors.patch @@ -0,0 +1,25 @@ +From fb19b25f3723c6274bf0225c0cbd33180e726707 Mon Sep 17 00:00:00 2001 +From: yueyuankun <yueyuankun@kylinos.cn> +Date: Mon, 3 Jun 2024 14:54:20 +0800 +Subject: [PATCH] support loongarch, fix compilation errors + +--- + module/signo_catch.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/module/signo_catch.c b/module/signo_catch.c +index c038e16..a9270e0 100644 +--- a/module/signo_catch.c ++++ b/module/signo_catch.c +@@ -257,7 +257,7 @@ out: + + static int pre_handler(struct kprobe *p, struct pt_regs *regs) + { +-#ifdef CONFIG_ARM64 ++#if (defined(CONFIG_ARM64) || defined(CONFIG_LOONGARCH)) + send_sig_info_data_t data; + data.sig = regs->regs[0]; + data.info = (struct kernel_siginfo *)((unsigned long *)regs->regs[1]); +-- +2.43.0 + |