[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patc
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patches |
Date: |
Fri, 28 Jun 2019 10:05:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
Le 28/06/2019 à 09:46, Aleksandar Markovic a écrit :
>> From: Laurent Vivier <address@hidden>
>> Sent: Friday, June 28, 2019 9:21 AM
>> To: address@hidden; address@hidden
>> Cc: Aleksandar Markovic
>> Subject: Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous
>> patches
>>
>> Le 27/06/2019 à 21:27, address@hidden a écrit :
>>> Patchew URL: https://patchew.org/> QEMU/address@hidden/
>>> CC i386-linux-user/linux-user/uname.o
>>> CCAS i386-linux-user/linux-user/safe-syscall.o
>>> CC i386-linux-user/linux-user/i386/signal.o
>>> /var/tmp/patchew-tester-tmp-zqhqa95y/src/linux-user/syscall.c:323:16:
>>> error: > conflicting types for ‘statx’
>>> 323 | _syscall5(int, statx, int, dirfd, const char *, pathname, int,
>>> flags,
>>> | ^~~~~
>>> /var/tmp/patchew-tester-tmp-zqhqa95y/src/linux-user/syscall.c:214:13: note:
>>> in > definition of macro ‘_syscall5’
>>>
>>
>> This is a real error. To avoid this you can rename it to "sys_statx"
>> (see sys_gettid() for instance).
>>
>
> Ok, Laurent. But the root cause is a little deeper, I would say - the error
> appears because <sys/stat.h> is superfluously included, and glibc defines
> statx() basically in that header (in fact, in a headed that is always
> included by stat.h) - hence the error, I guess only for build systems with
> glibc >= 2.28.
>
> I am going to remove #include <sys/stat.h> too from the patch, is that OK, in
> your opinion? (and, honestly, I am almost positive this line removal is
> sufficient for removing build error without any name changes etc.)
I'm OK with that.
We'll add the name change only if it becomes needed (if we need stat.h
for another stuff).
Thanks,
Laurent
- [Qemu-devel] [PATCH v13 5/5] linux-user: Handle EXCP_FPE properly for MIPS, (continued)
- [Qemu-devel] [PATCH v13 5/5] linux-user: Handle EXCP_FPE properly for MIPS, Aleksandar Markovic, 2019/06/27
- [Qemu-devel] [PATCH v13 4/5] linux-user: Introduce TARGET_HAVE_ARCH_STRUCT_FLOCK, Aleksandar Markovic, 2019/06/27
- [Qemu-devel] [PATCH v13 1/5] linux-user: Add support for translation of statx() syscall, Aleksandar Markovic, 2019/06/27
- [Qemu-devel] [PATCH v13 3/5] linux-user: Fix flock structure for MIPS O64 ABI, Aleksandar Markovic, 2019/06/27
- [Qemu-devel] [PATCH v13 2/5] linux-user: Add support for strace for statx() syscall, Aleksandar Markovic, 2019/06/27
- Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patches, no-reply, 2019/06/27
- Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patches, no-reply, 2019/06/27