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

Re: [XEN PATCH v2 0/3] docs/misra: add documentation skeleton to address MISRA C:2012 Dir 4.1


  • To: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 29 Sep 2023 16:49:41 +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=G7PvRLtURPRfUHdKaC3ynLf00Iq8JeFE1Je7gYdcfUA=; b=jtUvhIeYBeUQhjp+0lSJWQgWsQshYPh5TP+MQ4MGoYaXlzRjUMg0VnWMgb2fAXzGkS+CYG2vsVoP3SFsXPHzV0JOr2nOOJTOXCYs6cMtreFRLg89+elhoF0muTtExneSxeMaosKROFhy/WTZyM3k1T0Bh+1j8RPpNXDHTy7M8E0ZUAkT90SDI4MeaY95SQMdtD8oO+lixNs7EASCuFnvwDSTDRiVDXGr89jqfrrjtKS98OnPUF8yy1sFo5A7dIsV9cniz2HtNJBnn8St+kqdOe8PAPRO7OanG3/mpt+ul2mGIjXzqmXSCfyyuzcWOKYxJLeETNcEFdt37h2EwF09QQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XdsJOjblTCEOgGap7I32U5EeUO5mPjLKdurNroCxWtvz7E0/04uUBTSGctKGhX2YuV4DOZ4U2udOah1FyQeBEJthIFFe6zyBkxoRQm6QEHOi7eJac7gNr7rez1SRx1ZcSx4IhBgXIEC8LCMS8sn+he5hqirVzUBEzSMWK4ADWqZXCGS55zElH4P0AD1mZyuLHmCk/HP+NWn909bLwB9XFn2qvKWJz9Kp9CgCmR3P9BpN0zKJ6hjgtTbv8SuSvBufGe3U7meeUi9kt2hCHWON2gftB1xuVNiFtjq9gr59gtOBYb440Obewlgc9sayhZM4R6UbP8S8lUpnhuD2vJztpQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, "xenia.ragiadakou@xxxxxxx" <xenia.ragiadakou@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, "consulting@xxxxxxxxxxx" <consulting@xxxxxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Simone Ballarin <simone.ballarin@xxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
  • Delivery-date: Fri, 29 Sep 2023 16:50:27 +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: AQHZ8uq6JQBfM1ccxUeWd6hakfVo37AyA/8A
  • Thread-topic: [XEN PATCH v2 0/3] docs/misra: add documentation skeleton to address MISRA C:2012 Dir 4.1

> 
> CC-ing Luca as well:
> I'm testing the next version of this series, and I'm seeing a failure on 
> cppcheck
> containers on this pipeline [1]. I'm not sure about what is causing that 
> conversion script
> to fail. Any pointer in debugging this would be greatly appreciated.
> 
> [1] https://gitlab.com/xen-project/people/bugseng/xen/-/pipelines/1020917280

Hi Nicola,

In the logs I can see:

+ xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra -- -j80
No notes for rule 2.1
WARNING: Can't open 
/builds/xen-project/people/bugseng/xen/xen/drivers/video/font_8x14.c: 'utf-8' 
codec can't decode byte 0x9f in position 7228: invalid start byte
WARNING: Can't open 
/builds/xen-project/people/bugseng/xen/xen/drivers/video/font_8x16.c: 'utf-8' 
codec can't decode byte 0x80 in position 5436: invalid start byte
WARNING: Can't open 
/builds/xen-project/people/bugseng/xen/xen/drivers/video/font_8x8.c: 'utf-8' 
codec can't decode byte 0x80 in position 4410: invalid start byte
ERROR: An error occured when running:
/builds/xen-project/people/bugseng/xen/xen/tools/convert_misra_doc.py -i 
/builds/xen-project/people/bugseng/xen/docs/misra/rules.rst -o 
/builds/xen-project/people/bugseng/xen/xen/cppcheck-misra.txt -j 
/builds/xen-project/people/bugseng/xen/xen/cppcheck-misra.json

So I think that the rules.rst doesn’t have the expected syntax, on patch 1 try 
to leave the third ‘-‘ on the rule 2.1:

* - `Dir 2.1 
<https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/D_02_01.c>`_
- Required
- All source files shall compile without any compilation errors
-

Cheers,
Luca


 


Rackspace

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