qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] exec/ioport: Factor portio_list_register() out


From: Richard Henderson
Subject: Re: [PATCH 2/2] exec/ioport: Factor portio_list_register() out
Date: Wed, 8 Feb 2023 09:13:43 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2/7/23 13:46, Philippe Mathieu-Daudé wrote:
We always follow the same pattern when registering
non-coalesced portio:

   - portio_list_init()
   - portio_list_add()

Factor these 2 operations in a single helper named
portio_list_register(). Since both calls become local
to ioport.c, reduce their scope by declaring them static.

Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  hw/audio/adlib.c        |  4 ++--
  hw/display/vga.c        |  4 ++--
  hw/dma/i82374.c         |  7 +++----
  hw/isa/isa-bus.c        |  6 ++----
  hw/watchdog/wdt_ib700.c |  4 ++--
  include/exec/ioport.h   | 10 ++++------
  softmmu/ioport.c        | 21 ++++++++++++++-------
  7 files changed, 29 insertions(+), 27 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

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