sched: add the inline keyword to the prototype.
PATCH 1/1 sched: add the inline keyword to the prototype.
The prototype has to agree with the definition.
Add the inline keyword to the prototype also.
Signed-off-by Il Han <[email protected]>
--- kernel/sched_fair.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
kernel/sched_fair.c +4 -4
@@ -306,7 +306,7 @@ find_matching_se(struct sched_entity **se, struct sched_entity **pse)#endif /* CONFIG_FAIR_GROUP_SCHED */ -static void account_cfs_rq_runtime (struct cfs_rq *cfs_rq, +static __always_inline void account_cfs_rq_runtime(struct cfs_rq *cfs_rq,unsigned long delta_exec);/**************************************************************
@@ -1065,7 +1065,7 @@ static void clear_buddies(struct cfs_rq *cfs_rq, struct sched_entity *se)__clear_buddies_skip (se); } -static void return_cfs_rq_runtime (struct cfs_rq *cfs_rq); +static __always_inline void return_cfs_rq_runtime(struct cfs_rq *cfs_rq);static void dequeue_entity (struct cfs_rq *cfs_rq,struct sched_entity *se,int flags)
@@ -1831,11 +1831,11 @@ static void check_cfs_rq_runtime(struct cfs_rq *cfs_rq)throttle_cfs_rq (cfs_rq); }#else -static void account_cfs_rq_runtime (struct cfs_rq *cfs_rq, +static __always_inline void account_cfs_rq_runtime(struct cfs_rq *cfs_rq,unsigned long delta_exec) {}static void check_cfs_rq_runtime (struct cfs_rq *cfs_rq) {}static void check_enqueue_throttle (struct cfs_rq *cfs_rq) {} -static void return_cfs_rq_runtime (struct cfs_rq *cfs_rq) {} +static __always_inline void return_cfs_rq_runtime(struct cfs_rq *cfs_rq) {}static inline int cfs_rq_throttled (struct cfs_rq *cfs_rq) {
Signature · 1 line
1.7.4.1
Quoted 2 lines · Il Han
The prototype has to agree with the definition.
Add the inline keyword to the prototype also.
Is this something gcc-4.6 wants or so? I guess I should go build new compilers, again.