From: Victor Lira <victorm.l...@amd.com> Rule 8.8: "The static storage class specifier shall be used in all declarations of objects and functions that have internal linkage"
This patch fixes this by adding the static specifier. No functional changes. Reported-by: Stewart Hildebrand <stewart.hildebr...@amd.com> Signed-off-by: Victor Lira <victorm.l...@amd.com> --- Cc: George Dunlap <george.dun...@citrix.com> Cc: Dario Faggioli <dfaggi...@suse.com> Cc: Juergen Gross <jgr...@suse.com> Cc: xen-devel@lists.xenproject.org --- xen/common/sched/credit2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/sched/credit2.c b/xen/common/sched/credit2.c index 685929c290..10a32bd160 100644 --- a/xen/common/sched/credit2.c +++ b/xen/common/sched/credit2.c @@ -1476,7 +1476,7 @@ static inline void runq_remove(struct csched2_unit *svc) list_del_init(&svc->runq_elem); } -void burn_credits(struct csched2_runqueue_data *rqd, struct csched2_unit *svc, +static void burn_credits(struct csched2_runqueue_data *rqd, struct csched2_unit *svc, s_time_t now); static inline void @@ -1855,7 +1855,7 @@ static void reset_credit(int cpu, s_time_t now, struct csched2_unit *snext) /* No need to resort runqueue, as everyone's order should be the same. */ } -void burn_credits(struct csched2_runqueue_data *rqd, +static void burn_credits(struct csched2_runqueue_data *rqd, struct csched2_unit *svc, s_time_t now) { s_time_t delta; -- 2.37.6