[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 2/4] xen/arm64: bitops: justify uninitialized variable inside a macro


  • To: Julien Grall <julien@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Sun, 16 Jul 2023 09:20:30 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=TCG6tiNKZKE6QnUD5HVuiJSmtqHSTSDCv50XvdrqgyQ=; b=lnfNGEX/aD9ZdAY6MFHGBOMpiC+h/Qb5a857/GvbMPPcSyP7WcJ39VNZqpUgFQb/NesckYJ9ui6h6fZWI7prhPx2qDwMYUOakHrELUU4mDKKFwMIZnyIprcgme1iJeIzPK4oHYXE3WhFGdPIxYElcMz4I7l4RI/KJIgZsyNtlldHDN4Y8dVQJZZq29Gq2wAyQYmeI0CNzGsl05MZfv+TeWNyN9Z20jmoPqoaFzKvKdqv1YSq3A+TnWIuQhJeq5ulzZibxjr4VIU+B9NpjZcElfaBqHobvigRj8trYK13pjUAI0OBTujMwCMkr2+YYFF8hqYzNw0pCtXn8FjMYA9JlA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L7P4uZa9oepihb4lHux2lnD8SsYq+XfWKlWM5OBtwOUxtjPu2GnWWFpgBNvr6qjJLfvBWvQRvDGbvF/uuoLlshhc33qOR/QfrTCAmg4Q8jfI1XYp5E2JSidZqYRwlgACgRbHO57H0gq+FFLc6Bs0sbElBniVCoczgai+7No+GhlidiBlhbREy406eb9p+L49cVJ2y9NfWHzANMDydF/NovOYlzixtCWHev4SOZMfT0di8uVeS0p7JYPQOLkKUshyNpYAyAzeP8Kf/tAEsdqecrz4I7Pgb3xYickqPy8upFhfTjcOUt7kj56zx/dAGz4jnqnlT6pKc93ziaQighvH8A==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, "xenia.ragiadakou@xxxxxxx" <xenia.ragiadakou@xxxxxxx>, "ayan.kumar.halder@xxxxxxx" <ayan.kumar.halder@xxxxxxx>, "consulting@xxxxxxxxxxx" <consulting@xxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Wei Liu <wl@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Sun, 16 Jul 2023 09:21:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZtkllBkKUd/6mO0+M9pyVgMwza6+5OwiAgALl4AA=
  • Thread-topic: [RFC PATCH 2/4] xen/arm64: bitops: justify uninitialized variable inside a macro


> On 14 Jul 2023, at 14:05, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi,
> 
> On 14/07/2023 12:49, Nicola Vetrini wrote:
>> The macro 'testop' expands to a function that declares the local
>> variable 'oldbit', which is written before being set, but is such a
>> way that is not amenable to automatic checking.
> 
> The code is pretty straightforward. So I am not entirely sure why Eclair is 
> not happy. Is it because the value is set by assembly code?

Hi Julien,

Yes I agree that it’s strange, do you think that that if at line 97 we 
initialize oldbit to zero, it would solve the issue?
@Nicola

Cheers,
Luca

> 
> Cheers,
> 
> -- 
> Julien Grall
> 


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.