All of lore.kernel.org
 help / color / mirror / Atom feed
* Address MISRA C:2012 Rule 8.4
@ 2023-08-03  9:20 Nicola Vetrini
  2023-08-04  0:35 ` Stefano Stabellini
  0 siblings, 1 reply; 10+ messages in thread
From: Nicola Vetrini @ 2023-08-03  9:20 UTC (permalink / raw)
  To: Xen-devel
  Cc: Stefano Stabellini, Michal Orzel, xenia.ragiadakou,
	Ayan Kumar Halder, consulting, Jan Beulich, Andrew Cooper,
	Julien Grall, George Dunlap, Wei Liu

The headline of Rule 8.4 is as follows:
"A compatible declaration shall be visible when an object or
function with external linkage is defined".

Some functions reported in [1][2] are lacking a declaration in the 
respective header files;
as remarked on xen-devel's IRC channel, this is ok since they are only 
called from asm code (e.g., start_xen). A similar discussion
had taken place in the past (see [3]) and the general consensus was to 
deviate these cases.
If that is still the case, a suitable project-wide deviation can be 
added to address these violations.

[1] 
https://saas.eclairit.com:3787/fs/var/local/eclair/XEN.ecdf/ECLAIR_normal/origin/staging/ARM64-Set1/210/PROJECT.ecd;/by_service/MC3R1.R8.4.html
[2] 
https://saas.eclairit.com:3787/fs/var/local/eclair/XEN.ecdf/ECLAIR_normal/origin/staging/X86_64-Set1/210/PROJECT.ecd;/by_service/MC3R1.R8.4.html
[3] 
https://lore.kernel.org/all/20220705210218.483854-2-burzalodowa@gmail.com/

Regards,

-- 
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-07 10:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03  9:20 Address MISRA C:2012 Rule 8.4 Nicola Vetrini
2023-08-04  0:35 ` Stefano Stabellini
2023-08-04  9:47   ` Nicola Vetrini
2023-08-04 11:39     ` Jan Beulich
2023-08-04 14:09       ` Nicola Vetrini
2023-08-07  7:26         ` Jan Beulich
2023-08-04 20:40       ` Stefano Stabellini
2023-08-04 14:00     ` Nicola Vetrini
2023-08-07  7:34       ` Jan Beulich
2023-08-07 10:40         ` Nicola Vetrini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.