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

MISRA violations in hypercall-defs



Hello everyone.

I would like to to ask your opinion about the auto-generated file
xen/include/xen/hypercall-defs.h which contains some violations of
MISRA C:2012 Rule 8.3:
"All declarations of an object or function shall use the same names and
type qualifiers".

Such violations can be seen at the following links
(copy and paste the link on you browser, including also the characters
after the '#'):

- arm
https://saas.eclairit.com:3787/fs/var/local/eclair/XEN.ecdf/ECLAIR_normal/origin/staging/ARM64-Set1/218/PROJECT.ecd;/by_service/MC3R1.R8.3.html#{"select":true,"selection":{"hiddenAreaKinds":[],"hiddenSubareaKinds":[],"show":true,"selector":{"enabled":true,"negated":false,"kind":2,"children":[{"enabled":true,"negated":false,"kind":0,"domain":"file","inputs":[{"enabled":true,"text":"xen/include/xen/hypercall-defs.h"}]}]}}}

- x86
https://saas.eclairit.com:3787/fs/var/local/eclair/XEN.ecdf/ECLAIR_normal/origin/staging/X86_64-Set1/218/PROJECT.ecd;/by_service/MC3R1.R8.3.html#{"select":true,"selection":{"hiddenAreaKinds":[],"hiddenSubareaKinds":[],"show":true,"selector":{"enabled":true,"negated":false,"kind":2,"children":[{"enabled":true,"negated":false,"kind":0,"domain":"file","inputs":[{"enabled":true,"text":"xen/include/xen/hypercall-defs.h"}]}]}}}

Some of the violations are due to mismatches on the return types
and the use of `ret_t`.
I see that xen/include/hypercall-defs.c generates the declarations
but I am not sure about what might be the best way to modify it
so as to address violations with the least amount of changes.
Do you have any suggestions?

Regards
--
Federico Serafini, M.Sc.

Software Engineer, BUGSENG (http://bugseng.com)



 


Rackspace

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