> On 29 Sep 2023, at 00:20, Stefano Stabellini <sstabell...@kernel.org> wrote:
> 
> On Thu, 28 Sep 2023, Luca Fancellu wrote:
>> Hi all,
>> 
>> In the last MISRA meeting Stefano told me about the Rule 10.3 and that we 
>> have a lot of violations,
>> but GCC has a way to list them as written in rules.rst.
>> 
>> So the issue was just that we have a lot of violations, most of them coming 
>> from headers and the
>> Developer might feel a bit lost since the number is very high, so I’ve 
>> developed this script to take
>> the GCC build log and create a list of unique occurrences of the violations 
>> sorted in descending
>> order, so that who has a bit of time can try to fix some of those and maybe 
>> can start from the top
>> of the list to fix as many as possible occurrences.
>> 
>> I attach the script as patch file.

Hi Stefano,

> 
> Thanks Luca! Actually I think this is great! The script makes it much
> easier to use the GCC output to address 10.3 violations. I think we
> should have it in the xen.git tree.

Ok I can refine it a bit in that case and push it to the ML.

> 
> Thanks to the script I was able to quickly address the top violation in
> bitmap.h.

I’m wondering if we need to remove from the list the excluded files, in this
first shot I didn’t do that but should be easy.


Reply via email to