Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
khugepaged: avoid usage of uninitialized variable 'isolated'
In file included from include/trace/events/huge_memory.h:7:0, from mm/huge_memory.c:62: include/linux/tracepoint.h:141:5: warning: `isolated' may be used uninitialized in this function [-Wmaybe-uninitialized] ((void(*)(proto))(it_func))(args); \ ^ mm/huge_memory.c:2327:6: note: `isolated' was declared here int isolated, result = 0; We make use of isolated in error path before it get initialized. Signed-off-by: Kirill A. Shutemov <[email protected]> Cc: Ebru Akagunduz <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information