Re: Bug#861171: #warning "Consider adding the right clone() syscall definitions here!"

James Cowgill <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Control: forwarded -1 https://github.com/systemd/systemd/pull/5880

Hi,

On 25/04/17 12:55, Michael Biebl wrote:
> Am 25.04.2017 um 12:56 schrieb Mathieu Malaterre:
>> Package: systemd
>> Version: 232-22
>> User: [email protected]
>> Usertags: mipsel mips64el mips
>>
>> There are warning(s) generated during systemd building on mipsel* :
>>
>> I am starring at the clone warning (mmap seems to trigger something
>> equivalent apparently):
>>
>> https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=mips64el&ver=232-22&stamp=1490743348&raw=0
>>
>> See:
>> http://sources.debian.net/src/systemd/232-22/src/shared/seccomp-util.c/#L726
>>
>>
>> $ man 2 clone
>> [...]
>>        On x86-32, and several other common architectures (including
>> score, ARM, ARM 64, PA-RISC, arc, Power PC, xtensa, and MIPS), the
>> order of the last two arguments is reversed:
>>
>>            long clone(unsigned long flags, void *child_stack,
>>                      int *ptid, unsigned long newtls,
>>                      int *ctid);
>> [...]
>>
>> I believe it would make sense to fix those warnings (missing case in
>> the switch) for mips/arm & powerpc* family since those are release
>> archs.
> 
> Would be great if you can send us a tested patch. I don't have any mips*
> hardware where I could test if the patch works as expected.

I've tested and submitted an upstream PR for the MIPS support.

James
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJZCZ6gAAoJEMfxZ23qLQHv2xMP/0ho+4dtagRGDVwRl5WabsUN
5J1iFcf7t3SWgmZOqI0mS+cxoKbv8ZZt904pdqOVkESd9Mr9MOdIHJpncCBYeix3
xOARQxALHbiSbZmfzO7nzZrQ5S55Ej7FiImcfvTxnu7HVd+2wY8VfjeN1QlU9bwL
JM9/SOSkxBaj6hPbv2OsXXDX0RrLs3nkxei+Ar9Rhi9gC+jwsJib5uyRjMAZKa1J
WP4WCOD474exzAp4B8v8ea5ddGcocbVZW3fyGLR2sMLnl3KbxUy7DBdKnLn8eTlu
2lnmGrCLTM82gj1FiKA3k63U77nxDobaDWk+51cAmbqyRmrQlXQA6MWrl7UfmZji
mjIIS3ST04MjBbtveAhXz2bTFG61FEQqECx0udZw0i3RonzyCRkIGsckNwnvFort
hSK8wmkPGepvNn8sNGbUbTu/QSk36ev5W5Yc+AgDzkN+w1oNgHudvXjq+R9vjfx0
9+NHRFIsMwqMxrYttht+sq1jV10WsoMKxTHCU01vs7OHtz+p9kb0wVsvAJiMi30v
sr/nF13g1Ombg3Az4DxX7MXt6F7sjKb+g1RcUz51W6ZAa2eZce58uDLm5YDwWgV6
NyaSCeyrZghWPnQHqXtRCop9cO5wurfKOUr+7slUejdkUksHxy2T2K+UdeYAqTul
FPWuaem5It/25PWcuNXJ
=vQVI
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.