From: Karel Zak <kzak@redhat.com>
To: Enze Li <lienze@kylinos.cn>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH] enosys: add support for LoongArch
Date: Tue, 23 May 2023 11:08:04 +0200 [thread overview]
Message-ID: <20230523090804.tvb3myuxohm7kxyi@ws.net.home> (raw)
In-Reply-To: <20230523083356.377658-1-lienze@kylinos.cn>
Please, see https://github.com/util-linux/util-linux/pull/2260, Thomas
wants to move all this to include/audit-arch.h
Karel
On Tue, May 23, 2023 at 04:33:56PM +0800, Enze Li wrote:
> Signed-off-by: Enze Li <lienze@kylinos.cn>
> ---
> misc-utils/enosys.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c
> index 02978c20a..9facbcb53 100644
> --- a/misc-utils/enosys.c
> +++ b/misc-utils/enosys.c
> @@ -70,6 +70,12 @@
> # else
> # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2
> # endif
> +#elif __loongarch__
> +# if _LOONGARCH_SZPTR == 32
> +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32
> +# elif _LOONGARCH_SZPTR == 64
> +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64
> +# endif
> #else
> # error Unknown target architecture
> #endif
>
> base-commit: fe0b1e793c9017edba72768e2e0b4c769c204604
> --
> 2.34.1
>
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2023-05-23 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 8:33 [PATCH] enosys: add support for LoongArch Enze Li
2023-05-23 9:08 ` Karel Zak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230523090804.tvb3myuxohm7kxyi@ws.net.home \
--to=kzak@redhat.com \
--cc=lienze@kylinos.cn \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).