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

Re: [PATCH 0/9] MISRA C 2012 8.1 rule fixes


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, roberto.bagnara@xxxxxxxxxxx
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 23 Jun 2022 09:32:44 +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=5b3Ww6RDJ86vfpNsdUp4sKDWUbLmUiZLD1rFJ+Awy0Q=; b=hdy7k9hxHd1u0CaHsf3MRLH+ZkCUX7BPHHwXqGOb1gT+35zEXuMBeqthj/Y2M3xfD4j7W+Py15eePaH3zxLZlJroLHfvvRsmnozfW//R+nHnJIxi1iTXiyuWNkJICL8v69I/4YmmBKWo0djM2ab8UEPLvIDe6W72LFWFBlHlyfQUbgjr9+hJBeYFUONKn+ItwJOu9GVtjPrQgbCgftM8Nplp67Vh/4lMqJstXZTLAsEi3+KR9fPqxFnEbmOiwvpGMaesDtGo9idULb+A9CjQolDEhdDmKXtuXzTFpCxKd+kW09AmicESAN+u/4crtUPY/ioqxczOwbiMV8FFIe+yPA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9krQ9/WU5DwNVJjXALtiErkJFB6TrXiC8TDJOiyC/IOxV6cjM+ydUrzzV23Qdndcr5iu57TArpVAW0MxFOemtWkFO0MRfEXjW7gSaF8ZdeFr8MMZJ3R7SiLdCLyy/OkyTPayKcpVRQiaeG/ATyLKVbS1FLT6ERDGuQqbZd5B1We83eJC02rLczHlLg63+gaxbSOKt8J1cBSTjqWEbq0pTWjeyz4G4qpmPFXbm4+HStoK5SLgFSjzPJU4B28B8q5n1Yd5ITmijSB9vtBLtMLdrLoGiH3PR/Xs8cHh5fAZ2tpvpPkkonQMuiPuMUs03lt32OaYlOu2nntZyQJRXTuPQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <Michal.Orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 23 Jun 2022 07:33:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 22.06.2022 21:23, Stefano Stabellini wrote:
> A quick question about Rule 8.1.
> 
> 
> Michal sent a patch series to fix Xen against Rule 8.1 (here is a link
> if you are interested: https://marc.info/?l=xen-devel&m=165570851227125)
> 
> Although we all generally agree that the changes are a good thing, there
> was a question about the rule itself. Specifically, is the following
> actually a violation?
> 
>   unsigned x;
> 
> 
> Looking through the examples in the MISRA document I can see various
> instances of more confusing and obvious violations such as:
> 
>   const x;
>   extern x;
> 
> but no examples of using "unsigned" without "int". Do you know if it is
> considered a violation?

And if it is, by implication would plain "long" also be a violation?

Jan



 


Rackspace

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