[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/9] hw/core/qdev-properties: Use qemu_strtoul() in set_pc
From: |
Richard Henderson |
Subject: |
Re: [PATCH v2 2/9] hw/core/qdev-properties: Use qemu_strtoul() in set_pci_host_devaddr() |
Date: |
Mon, 16 Mar 2020 11:39:20 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 3/15/20 5:11 PM, Philippe Mathieu-Daudé wrote:
> Replace strtoul() by qemu_strtoul() so checkpatch.pl won't
> complain if we move this code later. Increase the slot and
> func local variables to unsigned long so that the range check
> isn't truncated. Remove the 'e == p' test which is done in
> check_strtox_error(), called by qemu_strtoul().
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> v2: drop the e == p test, do not do modify range check (rth)
> ---
> hw/core/qdev-properties.c | 25 ++++++++++++-------------
> 1 file changed, 12 insertions(+), 13 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH v2 0/9] user-mode: Prune build dependencies (part 3), Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 1/9] hw/core/qdev-properties: Use qemu_strtol() in set_mac() handler, Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 2/9] hw/core/qdev-properties: Use qemu_strtoul() in set_pci_host_devaddr(), Philippe Mathieu-Daudé, 2020/03/15
- Re: [PATCH v2 2/9] hw/core/qdev-properties: Use qemu_strtoul() in set_pci_host_devaddr(),
Richard Henderson <=
- [PATCH v2 3/9] hw/core/qdev-properties: Fix code style, Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 4/9] hw/core/qdev-properties: Export enum-related functions, Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 5/9] hw/core/qdev-properties: Export qdev_prop_enum, Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 6/9] hw/core/qdev-properties: Export some integer-related functions, Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 8/9] hw/core: Add qdev stub for user-mode, Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 9/9] qapi: Restrict code generated for user-mode, Philippe Mathieu-Daudé, 2020/03/15
- [PATCH v2 7/9] hw/core/qdev-properties: Extract system-mode specific properties, Philippe Mathieu-Daudé, 2020/03/15
- Re: [PATCH v2 0/9] user-mode: Prune build dependencies (part 3), Philippe Mathieu-Daudé, 2020/03/18