Re: [PATCH v8 2/7] xen/console: use 'unsigned int' in contring_{flush,puts}()
Stefano Stabellini <[email protected]>
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 27 Jul 2026, [email protected] wrote: > From: Denis Mukhin <[email protected]> > > contring_puts() and conring_flush() still use 'uint32_t' to access > indices. > > Switch to 'unsigned int' to as required by CODING_STYLE. > > Signed-off-by: Denis Mukhin <[email protected]> Reviewed-by: Stefano Stabellini <[email protected]> > --- > Changes since v7: > - new patch > --- > xen/drivers/char/console.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c > index 37fdda93a4c1..40355c1d14d6 100644 > --- a/xen/drivers/char/console.c > +++ b/xen/drivers/char/console.c > @@ -375,7 +375,7 @@ static void conring_puts(const char *str, size_t len) > long read_console_ring(struct xen_sysctl_readconsole *op) > { > XEN_GUEST_HANDLE_PARAM(char) str; > - uint32_t idx, len, max, sofar, c, p; > + unsigned int idx, len, max, sofar, c, p; > > str = guest_handle_cast(op->buffer, char), > max = op->count; > @@ -421,7 +421,7 @@ long read_console_ring(struct xen_sysctl_readconsole *op) > */ > static int conring_flush(unsigned int flags) > { > - uint32_t idx, len, sofar, c; > + unsigned int idx, len, sofar, c; > unsigned int order; > char *buf; > > -- > 2.54.0 >