diff options
author | Willy Tarreau <w@1wt.eu> | 2021-01-21 10:20:30 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-01-21 21:06:45 +0300 |
commit | 35635d7fa689492ca9edb1d949f1805f074ecf1a (patch) | |
tree | a0dd26bd523252448e359c8a3f2d536df31d8369 /lib/mpi/mpi-cmp.c | |
parent | f65d7117785cb8ab04f1af55909807c7eb9ed30b (diff) | |
download | linux-35635d7fa689492ca9edb1d949f1805f074ecf1a.tar.xz |
tools/nolibc: Emit detailed error for missing alternate syscall number definitions
Some syscalls can be implemented from different __NR_* variants. For
example, sys_dup2() can be implemented based on __NR_dup3 or __NR_dup2.
In this case it is useful to mention both alternatives in error messages
when neither are detected. This information will help the user search for
the right one (e.g __NR_dup3) instead of just the fallback (__NR_dup2)
which might not exist on the platform.
This is a port of nolibc's upstream commit a21080d2ba41 to the Linux
kernel.
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/lkml/20210120145447.GC77728@C02TD0UTHF1T.local/
Tested-by: Valentin Schneider <valentin.schneider@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com> [arm64]
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions