* [Qemu-trivial] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning
@ 2016-04-05 14:46 Ed Maste
2016-04-05 14:54 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
2016-04-05 17:13 ` Peter Maydell
0 siblings, 2 replies; 4+ messages in thread
From: Ed Maste @ 2016-04-05 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial
This is the same change as b55266b5 in linux-user.
Signed-off-by: Ed Maste <emaste@freebsd.org>
---
bsd-user/uaccess.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bsd-user/uaccess.c b/bsd-user/uaccess.c
index b7b3a06..91e2067 100644
--- a/bsd-user/uaccess.c
+++ b/bsd-user/uaccess.c
@@ -51,7 +51,7 @@ abi_long target_strlen(abi_ulong guest_addr1)
ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1);
if (!ptr)
return -TARGET_EFAULT;
- len = qemu_strnlen((char *)ptr, max_len);
+ len = qemu_strnlen((const char *)ptr, max_len);
unlock_user(ptr, guest_addr, 0);
guest_addr += len;
/* we don't allow wrapping or integer overflow */
--
2.4.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning
2016-04-05 14:46 [Qemu-trivial] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning Ed Maste
@ 2016-04-05 14:54 ` Peter Maydell
2016-04-05 15:26 ` Ed Maste
2016-04-05 17:13 ` Peter Maydell
1 sibling, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2016-04-05 14:54 UTC (permalink / raw)
To: Ed Maste; +Cc: QEMU Trivial, QEMU Developers
On 5 April 2016 at 15:46, Ed Maste <emaste@freebsd.org> wrote:
> This is the same change as b55266b5 in linux-user.
>
> Signed-off-by: Ed Maste <emaste@freebsd.org>
Do you have many more of these bsd related patches to come?
It might be easier to deal with them all in one patchseries...
thanks
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning
2016-04-05 14:54 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
@ 2016-04-05 15:26 ` Ed Maste
0 siblings, 0 replies; 4+ messages in thread
From: Ed Maste @ 2016-04-05 15:26 UTC (permalink / raw)
To: Peter Maydell; +Cc: QEMU Trivial, QEMU Developers
On 5 April 2016 at 10:54, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 5 April 2016 at 15:46, Ed Maste <emaste@freebsd.org> wrote:
>> This is the same change as b55266b5 in linux-user.
>>
>> Signed-off-by: Ed Maste <emaste@freebsd.org>
>
> Do you have many more of these bsd related patches to come?
> It might be easier to deal with them all in one patchseries...
I have nothing beyond these two. I caught the missing #include from a
build warning, but unfortunately didn't notice this (const char *)
difference vs linux-user when I mailed the first patch.
There are some warnings remaining in bsd-user still, but these should
be investigated after we sort out the bsd-user rework from Stacy Son
and Sean Bruno. I don't expect to have any further work until then.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning
2016-04-05 14:46 [Qemu-trivial] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning Ed Maste
2016-04-05 14:54 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
@ 2016-04-05 17:13 ` Peter Maydell
1 sibling, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2016-04-05 17:13 UTC (permalink / raw)
To: Ed Maste; +Cc: QEMU Trivial, QEMU Developers
On 5 April 2016 at 15:46, Ed Maste <emaste@freebsd.org> wrote:
> This is the same change as b55266b5 in linux-user.
>
> Signed-off-by: Ed Maste <emaste@freebsd.org>
> ---
> bsd-user/uaccess.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bsd-user/uaccess.c b/bsd-user/uaccess.c
> index b7b3a06..91e2067 100644
> --- a/bsd-user/uaccess.c
> +++ b/bsd-user/uaccess.c
> @@ -51,7 +51,7 @@ abi_long target_strlen(abi_ulong guest_addr1)
> ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1);
> if (!ptr)
> return -TARGET_EFAULT;
> - len = qemu_strnlen((char *)ptr, max_len);
> + len = qemu_strnlen((const char *)ptr, max_len);
> unlock_user(ptr, guest_addr, 0);
> guest_addr += len;
> /* we don't allow wrapping or integer overflow */
> --
> 2.4.6
Applied to master, thanks.
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-05 17:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 14:46 [Qemu-trivial] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning Ed Maste
2016-04-05 14:54 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
2016-04-05 15:26 ` Ed Maste
2016-04-05 17:13 ` Peter Maydell
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).