]> xenbits.xensource.com Git - xen.git/commit
xen/time: fix MISRA C 2012 Rule 8.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 6 Jul 2022 11:07:43 +0000 (13:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 6 Jul 2022 11:07:43 +0000 (13:07 +0200)
commit46cbd76faf737e9fe2d57aaf335a0203f66ba21c
tree7eb0ba6baec659dc091f80aa77ac3e797d14884f
parenteb40ae41b658e0421e4275c14dd18c7377b0752a
xen/time: fix MISRA C 2012 Rule 8.7 violation

The variable __mon_lengths is referenced only in time.c.
Change its linkage from external to internal by adding the storage-class
specifier static to its definitions.

Also, this patch resolves indirectly a MISRA C 2012 Rule 8.4 violation warning.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/time.c