]> xenbits.xensource.com Git - xen.git/commit
common/sched: address a violation of MISRA C Rule 8.7
authorVictor Lira <victorm.lira@amd.com>
Mon, 22 Jul 2024 07:37:45 +0000 (09:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2024 07:37:45 +0000 (09:37 +0200)
commit4b09c30b0f778160523045396f7fff631a24bc1c
treec20364f075b51197ce95662a58bef9da178c6fe4
parentc1059b4799d4ce3378b6722e01d66422f0b63977
common/sched: address a violation of MISRA C Rule 8.7

Rule 8.7: "Functions and objects should not be defined with external
linkage if they are referenced in only one translation unit".

This patch fixes this by adding the static specifier.
No functional changes.

Reported-by: Stewart Hildebrand stewart.hildebrand@amd.com
Signed-off-by: Victor Lira <victorm.lira@amd.com>
Acked-by: George Dunlap <george.dunlap@cloud.com>
xen/common/sched/credit2.c