提交 02d51fdf 编写于 作者: T Tejun Heo

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: NTejun Heo <tj@kernel.org>
Reported-by: NIngo Molnar <mingo@elte.hu>
上级 0093b108
...@@ -639,7 +639,7 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size) ...@@ -639,7 +639,7 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size)
int page_start = PFN_DOWN(off); int page_start = PFN_DOWN(off);
int page_end = PFN_UP(off + size); int page_end = PFN_UP(off + size);
int map_start = -1; int map_start = -1;
int map_end; int uninitialized_var(map_end);
unsigned int cpu; unsigned int cpu;
int i; int i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册