From: Samuel Thibault <samuel.thibault@gnu.org>
To: Manolo de Medici <manolodemedici@gmail.com>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
qemu-devel@nongnu.org, bug-hurd@gnu.org,
"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [PATCH 2/4] Avoid multiple definitions of copy_file_range
Date: Wed, 17 Jan 2024 16:03:23 +0100 [thread overview]
Message-ID: <20240117150323.xn5otaf2ovg3hyp5@begin> (raw)
In-Reply-To: <CAHP40mkk4aRG+9PGjoW2U38WXSvd1NpvDgMet4AQASg3=H=UdA@mail.gmail.com>
Hello,
Manolo de Medici, le mer. 17 janv. 2024 15:47:09 +0100, a ecrit:
> ../../../block/file-posix.c:2003:14: error: conflicting types for
> 'copy_file_range'; have 'off_t(int, off_t *, int, off_t *, size_t,
> unsigned int)' {aka 'long long int(int, long long int *, int, long
> long int *, unsigned int, unsigned int)'}
> 2003 | static off_t copy_file_range(int in_fd, off_t *in_off, int out_fd,
> | ^~~~~~~~~~~~~~~
> In file included from /root/qemu/include/qemu/osdep.h:122,
> from ../../../block/file-posix.c:25:
> /usr/include/unistd.h:1142:9: note: previous declaration of
> 'copy_file_range' with type 'ssize_t(int, __off64_t *, int,
> __off64_t *, size_t, unsigned int)' {aka 'int(int, long long int *,
> int, long long int *, unsigned int, unsigned int)'}
> 1142 | ssize_t copy_file_range (int __infd, __off64_t *__pinoff,
> | ^~~~~~~~~~~~~~~
>
> the current patch fixes this compilation error.
Yes, but by ignoring the difference :)
The prototype of copy_file_range in glibc really does say that it
returns an ssize_t, not an off_t, so that should be fixed so.
Samuel
next prev parent reply other threads:[~2024-01-17 15:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 12:31 [PATCH 2/4] Avoid multiple definitions of copy_file_range Manolo de Medici
2024-01-17 13:56 ` Philippe Mathieu-Daudé
2024-01-17 14:09 ` Manolo de Medici
2024-01-17 14:33 ` Samuel Thibault
2024-01-17 14:47 ` Manolo de Medici
2024-01-17 15:03 ` Samuel Thibault [this message]
2024-01-17 15:08 ` Manolo de Medici
2024-01-17 15:22 ` Samuel Thibault
2024-01-17 15:27 ` Manolo de Medici
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=20240117150323.xn5otaf2ovg3hyp5@begin \
--to=samuel.thibault@gnu.org \
--cc=bug-hurd@gnu.org \
--cc=manolodemedici@gmail.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).