diff options
author | Tejun Heo <tj@kernel.org> | 2009-03-01 01:42:36 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-03-01 01:42:36 -0500 |
commit | 02d51fdfb2bfcf6bbd776f983177f55868aa0a79 (patch) | |
tree | 0237b1e965f91198955aa637025263ca66c2ce5c /mm | |
parent | 0093b108a6853d8398e1acf9021bcbd4666f4594 (diff) |
percpu: kill compile warning in pcpu_populate_chunk()
Impact: remove compile warning
Mark local variable map_end in pcpu_populate_chunk() with
uninitialized_var(). The variable is always used in tandem with
map_start and guaranteed to be initialized before use but gcc doesn't
understand that.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 5954e7a9eb1e..3d0f5456827c 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -639,7 +639,7 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size) | |||
639 | int page_start = PFN_DOWN(off); | 639 | int page_start = PFN_DOWN(off); |
640 | int page_end = PFN_UP(off + size); | 640 | int page_end = PFN_UP(off + size); |
641 | int map_start = -1; | 641 | int map_start = -1; |
642 | int map_end; | 642 | int uninitialized_var(map_end); |
643 | unsigned int cpu; | 643 | unsigned int cpu; |
644 | int i; | 644 | int i; |
645 | 645 | ||