]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
x86: address violations of MISRA C Rule 8.4
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Wed, 29 May 2024 07:57:28 +0000 (09:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 29 May 2024 07:57:28 +0000 (09:57 +0200)
commit2bc462f645824a439879190ed19a231cb5b8034c
tree31463e1cb5bd2787c4a6525cf7651a07420b6613
parent19b6e9f9149f028e729493b733c6019b2270c751
x86: address violations of MISRA C Rule 8.4

Rule 8.4 states: "A compatible declaration shall be visible when an
object or function with external linkage is defined."

These variables are only referenced from assembly code, so they need to
be extern and there is negligible risk of them being used improperly
without noticing.

As a result, they can be exempted using a comment-based deviation.
No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/desc.c
xen/arch/x86/mm.c