Message ID | 20230806033715.244648-8-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | c6cc059eca18d9f6e4e26bb8b6d1135ddb35d81a |
Headers | show |
Series | [PULL,01/24] accel/tcg: Adjust parameters and locking with do_{ld, st}_mmio_* | expand |
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
On 8/5/23 23:53, Michael Tokarev wrote: > 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. Since I had to re-spin, I did so. r~
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 95727a816a..b9d2ec02f9 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -862,9 +862,9 @@ abi_long do_brk(abi_ulong brk_val) */ if (new_host_brk_page > brk_page) { new_alloc_size = new_host_brk_page - brk_page; - 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); } else { new_alloc_size = 0; mapped_addr = brk_page;