[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 2/7] xen/console: use 'unsigned int' in contring_{flush,puts}()
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: dmukhin@xxxxxxxx
- Date: Mon, 27 Jul 2026 23:50:44 -0700
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 148.163.138.245) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=ford.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ford.com; dkim=pass (signature was verified) header.d=saarlouis.ford.com; dkim=pass (signature was verified) header.d=ford.com; arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dqTGhvqpn8gpXb6wAeWGBbJTJoEs7CcCTQTy9ycj/Xk=; b=b4MExBu7hDXaDH8Ar4s1yrJl95KWqqj+y37aqj+xM903MzEyM10AD1NfvTLhmQoZq4Q/34924mum7xh8Z8j9lvWYwwSzqWLekvUpOTcW/FaRRD5qsEydwOPyxFosF7w9Z6WJX22Fkx+uIa8VqLQ2QRzXp0KJvWan7rvzRIGwFQAMoXNYE/uMi9AzUK/aGQD4M15YwMufYKF3ItTjU5NSJxBiXex64mUyPUu+9WC6H2D31rHJ4kUEuerUiyF+6IKLrcz1v3ATD2HlmTxWu+iYUnIbpK/KSGneCZ3em2A4W1sMq4vrNtzBRD7maQwufVNoX6voIMvlZrqtOmzK2GB/mw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GIXki+GaGFDt0u9thydg6Pso+qE3lMD9pQH16JOvWqS/xNsxNxShRG1kt7XITxc6JzAZcVfu3Pl4EXOAvd/2gPTuSG1J5euw0HBEVzHXiR5/Bv3UB4OHBvRIfC0tsY9+GX9772f+SSs5ciKdyE4kSbTktllf9P3RxJYypGxqiMHPBD5jOfz/ROk8UtypziZKEbQTMTNChQuDNXE8lGvIcDNXtWch6BSoOWr4uNwQ932BpjVM8kbP36vtTp7g4Zj4FwfHR/oBEAMvbeucGLfRupJbm03mJnjTeAf4m+Q1XDnkCeWidhOrPTKssN+KlJ/R5Fo/cuU9CfuTQg68/s98OQ==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=ppford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=selector2-azureford-onmicrosoft-com header.d=azureford.onmicrosoft.com header.i="@azureford.onmicrosoft.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"; dkim=pass header.s=ppserprodsaar header.d=saarlouis.ford.com header.i="@saarlouis.ford.com" header.h="Cc:Content-Transfer-Encoding:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=ppfserpocford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Transfer-Encoding:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"
- Cc: andrew.cooper3@xxxxxxxxxx, anthony.perard@xxxxxxxxxx, jbeulich@xxxxxxxx, julien@xxxxxxx, michal.orzel@xxxxxxx, roger.pau@xxxxxxxxxx, sstabellini@xxxxxxxxxx, dmukhin@xxxxxxxx
- Delivery-date: Tue, 28 Jul 2026 06:51:38 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Pser-m365-app: SER-APP
From: Denis Mukhin <dmukhin@xxxxxxxx>
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 <dmukhin@xxxxxxxx>
---
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
|