sched/credit: fix MISRA C 2012 Rule 8.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 18 Jul 2022 15:56:41 +0000 (17:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jul 2022 15:56:41 +0000 (17:56 +0200)
commit0e60f1d9d1970cae49ee9d03f5759f44afc1fdee
treef0339b56c21845f19c86ca4168a820ac8f70e6f6
parent4f67f1cbb66e96769557863e1734fa465b73b6db
sched/credit: fix MISRA C 2012 Rule 8.7 violation

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

Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation
warning.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/sched/credit.c