All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] lib/tst_kconfig: Include stddef.h
@ 2025-01-13 22:05 Ricardo B. Marliere via ltp
  2025-01-14  2:55 ` Petr Vorel
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo B. Marliere via ltp @ 2025-01-13 22:05 UTC (permalink / raw)
  To: Linux Test Project; +Cc: Ricardo B. Marliere

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>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-14 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-13 22:05 [LTP] [PATCH] lib/tst_kconfig: Include stddef.h Ricardo B. Marliere via ltp
2025-01-14  2:55 ` Petr Vorel
2025-01-14  9:52   ` Petr Vorel
2025-01-14 13:18   ` Ricardo B. Marliere via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.