[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID:
<AS8PR02MB1021776B93FEF6D425C7223389CB32@AS8PR02MB10217.eurprd02.prod.outlook.com>
Date: Mon, 14 Apr 2025 17:57:41 +0000
From: David Binderman <dcb314@...mail.com>
To: "jgross@...e.com" <jgross@...e.com>, "sstabellini@...nel.org"
<sstabellini@...nel.org>, "oleksandr_tyshchenko@...m.com"
<oleksandr_tyshchenko@...m.com>, "xen-devel@...ts.xenproject.org"
<xen-devel@...ts.xenproject.org>, Linux Kernel Mailing List
<linux-kernel@...r.kernel.org>
Subject: linux-6.15-rc2/drivers/xen/balloon.c:346: Possible int/long mixup
Hello there,
Static analyser cppcheck says:
linux-6.15-rc2/drivers/xen/balloon.c:346:24: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment]
Source code is
unsigned long i, size = (1 << order);
Maybe better code:
unsigned long i, size = (1UL << order);
Regards
David Binderman
Powered by blists - more mailing lists