Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=291ae5a12088e1aa87aae4899a818498be3d18eb
Commit:     291ae5a12088e1aa87aae4899a818498be3d18eb
Parent:     9531b62f5ebf2b693bf85129d20328188f685c44
Author:     Josh Triplett <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 9 11:16:46 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Thu Aug 9 11:16:46 2007 +0200

    sched: mark print_cfs_stats static
    
    sched_fair.c defines print_cfs_stats, and sched_debug.c uses it, but sched.c
    includes both sched_fair.c and sched_debug.c, so all the references to
    print_cfs_stats occur in the same compilation unit.  Thus, mark
    print_cfs_stats static.
    
    Eliminates a sparse warning:
    warning: symbol 'print_cfs_stats' was not declared. Should it be static?
    
    Signed-off-by: Josh Triplett <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched_fair.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 7307a37..edcb4b5 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1107,7 +1107,7 @@ struct sched_class fair_sched_class __read_mostly = {
 };
 
 #ifdef CONFIG_SCHED_DEBUG
-void print_cfs_stats(struct seq_file *m, int cpu, u64 now)
+static void print_cfs_stats(struct seq_file *m, int cpu, u64 now)
 {
        struct rq *rq = cpu_rq(cpu);
        struct cfs_rq *cfs_rq;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to