xen/console: do not use XENCONS_RING_IDX in console_init_ring()

Replace XENCONS_RING_IDX with unsigned int for the console ring indices,
as the console ring is not a Xen console (XENCONS) ring.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Denis Mukhin authored and Jan Beulich committed 2026-08-12 10:46:37 +02:00
1 parent ad82632486
commit ba911c5db2
1 file changed
+3 -3
+3 -3
View File
@@ -463,7 +463,7 @@ static void cf_check conring_dump_keyhandler(unsigned char key)
void __init console_init_ring(void)
{
char *ring;
XENCONS_RING_IDX done, size, n;
unsigned int done, size, n;
unsigned int order, memflags;
unsigned long flags;
@@ -484,8 +484,8 @@ void __init console_init_ring(void)
size = conringp - conringc;
for ( done = 0; done < size; done += n )
{
XENCONS_RING_IDX src = (conringc + done) & (conring_size - 1);
XENCONS_RING_IDX dst = (conringc + done) & (opt_conring_size - 1);
unsigned int src = (conringc + done) & (conring_size - 1);
unsigned int dst = (conringc + done) & (opt_conring_size - 1);
n = min(opt_conring_size - dst, conring_size - src);
n = min(size - done, n);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.