From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v6 1/3] Refactor regen.sh script to generate syscalls
Date: Thu, 31 Oct 2024 10:49:27 +0100 [thread overview]
Message-ID: <20241031094927.GB995052@pevik> (raw)
In-Reply-To: <20241031-generate_syscalls-v6-1-1ad86a33ce2d@suse.com>
Hi Andrea,
whole patchset LGTM, thank you!
I was comparing the old include/lapi/syscalls.h (21579 lines) and the new one
(20054). Having new file shorter is a bit surprising to me. I haven't found what
is missing, probably I'm missing something myself :).
> Rename regen.sh into a more meaningful generate_syscalls.sh name, rename
> order into a more meaningful supported-syscalls.txt name and rewrite
> part of the regen.sh script code in order to execute it from anywhere in
> the filesystem, without need to be in its own folder. The new code is
> also more clear and concise, using native sh features which are
> simplifying the code.
Purely out of curiosity (nothing to block this), which "native sh features"?
> +++ b/include/lapi/syscalls/generate_syscalls.sh
...
> +SCRIPT_DIR="$(realpath $(dirname "$0"))"
> +SUPPORTED_ARCH="${SCRIPT_DIR}/supported-arch.txt"
> +
> +echo '
> +// SPDX-License-Identifier: GPL-2.0-or-later
very nit stylish: This produce new line. Why not just:
echo '// SPDX-License-Identifier: GPL-2.0-or-later
/************************************************
Feel free to ignore or amend before push.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-10-31 9:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 7:27 [LTP] [PATCH v6 0/3] Automatically generate syscalls.h Andrea Cervesato
2024-10-31 7:27 ` [LTP] [PATCH v6 1/3] Refactor regen.sh script to generate syscalls Andrea Cervesato
2024-10-31 9:49 ` Petr Vorel [this message]
2024-10-31 10:28 ` Cyril Hrubis
2024-10-31 10:37 ` Andrea Cervesato via ltp
2024-10-31 11:35 ` Cyril Hrubis
2024-10-31 11:02 ` Andrea Cervesato via ltp
2024-10-31 11:17 ` Petr Vorel
2024-10-31 12:19 ` Cyril Hrubis
2024-10-31 12:25 ` Andrea Cervesato via ltp
2024-10-31 10:25 ` Cyril Hrubis
2024-10-31 10:31 ` Cyril Hrubis
2024-10-31 7:27 ` [LTP] [PATCH v6 2/3] Add script to generate arch(s) dependant syscalls Andrea Cervesato
2024-10-31 7:27 ` [LTP] [PATCH v6 3/3] Delete obsolete strip_syscall.awk file Andrea Cervesato
2024-10-31 9:56 ` [LTP] [PATCH v6 0/3] Automatically generate syscalls.h Petr Vorel
2024-10-31 10:02 ` Cyril Hrubis
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=20241031094927.GB995052@pevik \
--to=pvorel@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.