diff options
| author | Nico Pache <[email protected]> | 2021-09-02 14:58:08 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-09-03 09:58:15 -0700 |
| commit | b346075fcf5dda7f9e9ae671703aae60e8a94564 (patch) | |
| tree | 60dc22cd16497fd6ee921f78d135d0ba93589fd4 /lib/mpi/mpi-mul.c | |
| parent | 08678804e0b305bbbf5b756ad365373e5fe885a2 (diff) | |
mm/page_alloc.c: fix 'zone_id' may be used uninitialized in this function warning
When compiling with -Werror, cc1 will warn that 'zone_id' may be used
uninitialized in this function warning.
Initialize the zone_id as 0.
Its safe to assume that if the code reaches this point it has at least one
numa node with memory, so no need for an assertion before
init_unavilable_range.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 122e093c1734 ("mm/page_alloc: fix memory map initialization for descending nodes")
Signed-off-by: Nico Pache <[email protected]>
Cc: Mike Rapoport <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions