qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 07/24] linux-user: Do not call get_errno() in do_brk()


From: Michael Tokarev
Subject: Re: [PULL 07/24] linux-user: Do not call get_errno() in do_brk()
Date: Sun, 6 Aug 2023 09:53:46 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

06.08.2023 06:36, Richard Henderson wrote:

--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c

-        mapped_addr = get_errno(target_mmap(brk_page, new_alloc_size,
-                                        PROT_READ|PROT_WRITE,
-                                        MAP_ANON|MAP_PRIVATE, 0, 0));
+        mapped_addr = target_mmap(brk_page, new_alloc_size,
+                                  PROT_READ|PROT_WRITE,
+                                  MAP_ANON|MAP_PRIVATE, 0, 0);

Can't we add spaces around "|" here at apply time to make checkpatch happy?
Just a nitpick really..  I thought this will be done in some of the Vn,
but it is not.

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]