diff options
author | Christoph Müllner <[email protected]> | 2023-11-23 19:58:19 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-01-11 08:02:49 -0800 |
commit | b250c90898412878fe56f069b1a6b1b94a7bbdfa (patch) | |
tree | 12a753dc9006f848d8a944385961749e9739e228 | |
parent | ac7b2a02d62faff8c6d45bacb5cb9ea565b47776 (diff) |
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]>
-rw-r--r-- | tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c b/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c index 2c0d2b1126c1..1f9969bed235 100644 --- a/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c +++ b/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c @@ -1,4 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only + +#include <linux/wait.h> + #define THIS_PROGRAM "./vstate_exec_nolibc" int main(int argc, char **argv) |