diff options
author | Simon Kagstrom <simon.kagstrom@netinsight.net> | 2009-12-23 05:08:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-28 04:50:13 -0500 |
commit | d894837f23f491aa7ed167aae767fc07cfe6e6e6 (patch) | |
tree | 33ee2a3526d3ed9889d385233c9f2feb4bdbc835 /kernel/sched.c | |
parent | 6b7b284958d47b77d06745b36bc7f36dab769d9b (diff) |
sched: might_sleep(): Make file parameter const char *
Fixes a warning when building with g++:
warning: deprecated conversion from string constant to 'char*'
And the file parameter use is constant, so mark it as such.
Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Cc: peterz@infradead.org
LKML-Reference: <20091223110818.442d848e@marrow.netinsight.se>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index c535cc4f6428..64298a52eaa6 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -9694,7 +9694,7 @@ static inline int preempt_count_equals(int preempt_offset) | |||
9694 | return (nested == PREEMPT_INATOMIC_BASE + preempt_offset); | 9694 | return (nested == PREEMPT_INATOMIC_BASE + preempt_offset); |
9695 | } | 9695 | } |
9696 | 9696 | ||
9697 | void __might_sleep(char *file, int line, int preempt_offset) | 9697 | void __might_sleep(const char *file, int line, int preempt_offset) |
9698 | { | 9698 | { |
9699 | #ifdef in_atomic | 9699 | #ifdef in_atomic |
9700 | static unsigned long prev_jiffy; /* ratelimiting */ | 9700 | static unsigned long prev_jiffy; /* ratelimiting */ |