Skip to content

Commit b250c90

Browse files
cmuellnerpalmer-dabbelt
authored andcommitted
tools: selftests: riscv: Add missing include for vector test
GCC raises the following warning: warning: 'status' may be used uninitialized The warning comes from the fact, that the signature of waitpid() is unknown and therefore the initialization of GCC cannot be guessed. Let's add the relevant header to address this warning. Signed-off-by: Christoph Müllner <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Reviewed-by: Andy Chiu <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent ac7b2a0 commit b250c90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
2+
3+
#include <linux/wait.h>
4+
25
#define THIS_PROGRAM "./vstate_exec_nolibc"
36

47
int main(int argc, char **argv)

0 commit comments

Comments
 (0)