[LTP] [PATCH] lib/tst_kconfig: Include stddef.h
Ricardo B. Marliere
rbm@suse.com
Mon Jan 13 23:05:03 CET 2025
Currently, if a test wants to make use of tst_kconfig.h it must also
include stddef.h due to the usage of size_t. While at it, fix a few minor
typos in comments.
Signed-off-by: Ricardo B. Marliere <rbm@suse.com>
---
include/tst_kconfig.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/tst_kconfig.h b/include/tst_kconfig.h
index 5377c00f39957fd93f316368865c8e44038f2e1e..b0608498d7e837e2c7b847fbef23334dcf2605c9 100644
--- a/include/tst_kconfig.h
+++ b/include/tst_kconfig.h
@@ -7,6 +7,7 @@
#define TST_KCONFIG_H__
#include <stdbool.h>
+#include <stddef.h>
/**
* Initialization helper macro for struct tst_kconfig_var. Requires <string.h>
@@ -29,7 +30,7 @@ struct tst_kconfig_var {
* tst_kconfig_var structures.
*
* The path to the kernel config should be autodetected in most of the cases as
- * the code looks for know locations. It can be explicitely set/overrided with
+ * the code looks for know locations. It can be explicitly set/overridden with
* the KCONFIG_PATH environment variable as well.
*
* The caller has to initialize the tst_kconfig_var structure. The id has to be
@@ -47,7 +48,7 @@ struct tst_kconfig_var {
* In the case that match is set to 'v' the val pointer points to a newly
* allocated string that holds the value.
*
- * @param vars An array of caller initalized tst_kconfig_var structures.
+ * @param vars An array of caller initialized tst_kconfig_var structures.
* @param vars_len Length of the vars array.
*/
void tst_kconfig_read(struct tst_kconfig_var vars[], size_t vars_len);
---
base-commit: 7aea2cea9ad5d9e1586112a57948c7f85dc12970
change-id: 20250113-tst_kconfig_stddef-544c3644d261
Best regards,
--
Ricardo B. Marliere <rbm@suse.com>
More information about the ltp
mailing list