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

Re: [PATCH] xen/compiler: Fix MISRA C 2012 Rule 20.7 violation


  • To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 4 Aug 2022 15:07:21 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=qMYvBaXJZsFfv1V9X7rehs+pFm8i19kY3uO0fZIyNCA=; b=YKXWDAkdF7KcjqmwHChFIsb1kOW0zu5iO/r3Ysy04FcxW5b5XGiWmMUP2WtlSCdrn2gmYSoYG3kB3o/IyKv1VgguxkrlhDZD6snSZAo0QH5r+72j64wZG4nE8tFyrsukabT+W8KxKQclWYVfuYqexpz99uvHLFbi2BGPE7hR2PsszUXFU8vtimOOUlQ0gw4iCyhAY1lXar+JKtVFF5Wf8LdRjj+vZaGYLyf1ar4CToGkBbSH94oHsjwt4gWqu0wE3jLzrdpeRjzYnHa5YeFH6sqZ7S4DaRu3GKr/Txk/2cebjCAO/XBj982qmU9QYjMtEZwfm1n1KGYoJbK77QkKjA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVchL8rdY2N7GFU5CLnpZ7KqU2/INt9rv50nP71DURbre6S8/5qfTFLa1kV4OkHXPYsURKIp+3CrIzRQFdJoCMq3dscame1hz0K+Tt+Zh69Xax//dy1Rjvp4Wyyh/NEyIPrOhLtVIBTfhjXRuId3R59mZvez4RFYiZw/zE6P7zn0P68/D9fNY9biKY5BUKLfa4u7nImu7olebZW81L8swShXp5gC/Z4TVSmwJ3ZqhLnmZgtvpwM/aGUnYct25nymtDO7AjYRg7/aBkjDeNyIU4Hms27HJ/jo5p+NuoRJZTQBTVL+G0ya8D7PXKpfYsAc+hchY90CRyKxOgliLRb7pg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 04 Aug 2022 13:07:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 04.08.2022 14:29, Xenia Ragiadakou wrote:
> In __must_be_array(), the macro parameter 'a' is used as expression and
> therefore it is good to be enclosed in parentheses to prevent against
> unintended expansions.
> 
> Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

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