Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02d51fdf authored by Tejun Heo's avatar Tejun Heo
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0093b108
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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_end = PFN_UP(off + size);
	int map_start = -1;
	int map_end;
	int uninitialized_var(map_end);
	unsigned int cpu;
	int i;