[LTP] [PATCH v2 2/4] syscalls/pidfd_send_signal01

Christian Amann
2019-06-11T11:12:01Z

Hi,

No, the *.in file changes are in a separate commit [1]. I didn't include
it in version 2 of this patch because it didn't change.

Sorry for that, I will include those commits in the future.

Kind regards,

Christian

[1] https://patchwork.ozlabs.org/patch/1099966/

On 06/06/2019 15:10, Cyril Hrubis wrote:
> Hi!
> When I attempty to compile this code I get:
>
> In file included from pidfd_send_signal.h:11:0,
> from pidfd_send_signal01.c:17:
> pidfd_send_signal.h: In function 'check_syscall_support':
> pidfd_send_signal.h:16:14: error: '__NR_pidfd_send_signal' undeclared (first use in this function); did you mean '__NR_perf_event_open'?
> tst_syscall(__NR_pidfd_send_signal);
> ^
> ../../../../include/lapi/syscalls.h:39:6: note: in definition of macro 'tst_syscall'
> if (NR == __LTP__NR_INVALID_SYSCALL) { \
> ^~
> pidfd_send_signal.h:16:14: note: each undeclared identifier is reported only once for each function it appears in
> tst_syscall(__NR_pidfd_send_signal);
> ^
> ../../../../include/lapi/syscalls.h:39:6: note: in definition of macro 'tst_syscall'
> if (NR == __LTP__NR_INVALID_SYSCALL) { \
> ^~
> pidfd_send_signal.h: In function 'pidfd_send_signal':
> pidfd_send_signal.h:23:21: error: '__NR_pidfd_send_signal' undeclared (first use in this function); did you mean 'pidfd_send_signal'?
> return tst_syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags);
> ^
> ../../../../include/lapi/syscalls.h:39:6: note: in definition of macro 'tst_syscall'
> if (NR == __LTP__NR_INVALID_SYSCALL) { \
> ^~
> make: *** [<builtin>: pidfd_send_signal01] Error 1
>
>
> Have you forgotten to git add the *.in files with syscall numbers?
>