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

2023-02-08 Thread Richard Henderson
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 the

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

2023-02-07 Thread Philippe Mathieu-Daudé
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: