All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header
@ 2025-05-27 11:47 Cyril Hrubis
  2025-05-28  5:08 ` Li Wang via ltp
  2025-06-02 15:06 ` Petr Vorel
  0 siblings, 2 replies; 5+ messages in thread
From: Cyril Hrubis @ 2025-05-27 11:47 UTC (permalink / raw)
  To: ltp

The function is not supposed to be used by tests hence it shouldn't be
part of the tst_fs.h include by them.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 include/tst_fs.h                 | 7 -------
 include/tst_private.h            | 7 +++++++
 lib/tst_supported_fs_types.c     | 1 +
 testcases/lib/tst_supported_fs.c | 1 +
 4 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/include/tst_fs.h b/include/tst_fs.h
index 19c240e07..ceae78e7e 100644
--- a/include/tst_fs.h
+++ b/include/tst_fs.h
@@ -203,13 +203,6 @@ enum tst_fs_impl {
  */
 enum tst_fs_impl tst_fs_is_supported(const char *fs_type);
 
-/*
- * Returns NULL-terminated array of kernel-supported filesystems.
- *
- * @skiplist A NULL terminated array of filesystems to skip.
- */
-const char **tst_get_supported_fs_types(const char *const *skiplist);
-
 /*
  * Returns 1 if filesystem is in skiplist 0 otherwise.
  *
diff --git a/include/tst_private.h b/include/tst_private.h
index 4c6479f4b..292f7e936 100644
--- a/include/tst_private.h
+++ b/include/tst_private.h
@@ -47,4 +47,11 @@ char tst_kconfig_get(const char *confname);
  */
 int tst_check_cmd(const char *cmd, const int brk_nosupp);
 
+/*
+ * Returns NULL-terminated array of kernel-supported filesystems.
+ *
+ * @skiplist A NULL terminated array of filesystems to skip.
+ */
+const char **tst_get_supported_fs_types(const char *const *skiplist);
+
 #endif
diff --git a/lib/tst_supported_fs_types.c b/lib/tst_supported_fs_types.c
index 46165ebc6..bbd5a5fb4 100644
--- a/lib/tst_supported_fs_types.c
+++ b/lib/tst_supported_fs_types.c
@@ -14,6 +14,7 @@
 #define TST_NO_DEFAULT_MAIN
 #include "tst_test.h"
 #include "tst_fs.h"
+#include "tst_private.h"
 
 /*
  * NOTE: new filesystem should be also added to
diff --git a/testcases/lib/tst_supported_fs.c b/testcases/lib/tst_supported_fs.c
index 1832154f0..af02a9ccb 100644
--- a/testcases/lib/tst_supported_fs.c
+++ b/testcases/lib/tst_supported_fs.c
@@ -14,6 +14,7 @@
 #define TST_NO_DEFAULT_MAIN
 #include "tst_test.h"
 #include "tst_fs.h"
+#include "tst_private.h"
 
 #define err_exit(...) ({ \
 	fprintf(stderr, __VA_ARGS__); \
-- 
2.49.0


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

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

* Re: [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header
  2025-05-27 11:47 [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header Cyril Hrubis
@ 2025-05-28  5:08 ` Li Wang via ltp
  2025-08-29 13:15   ` Cyril Hrubis
  2025-06-02 15:06 ` Petr Vorel
  1 sibling, 1 reply; 5+ messages in thread
From: Li Wang via ltp @ 2025-05-28  5:08 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: ltp

Reviewed-by: Li Wang <liwang@redhat.com>

-- 
Regards,
Li Wang


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

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

* Re: [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header
  2025-05-27 11:47 [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header Cyril Hrubis
  2025-05-28  5:08 ` Li Wang via ltp
@ 2025-06-02 15:06 ` Petr Vorel
  2025-08-29 13:15   ` Cyril Hrubis
  1 sibling, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2025-06-02 15:06 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: ltp

Hi Cyril,

> The function is not supposed to be used by tests hence it shouldn't be
> part of the tst_fs.h include by them.

Reviewed-by: Petr Vorel <pvorel@suse.cz>

...
> +/*
> + * Returns NULL-terminated array of kernel-supported filesystems.
> + *
> + * @skiplist A NULL terminated array of filesystems to skip.
> + */
> +const char **tst_get_supported_fs_types(const char *const *skiplist);

BTW I suppose as a "private" header is not supposed to be used in in test programs
we don't want to use kerneldoc, right?

Kind regards,
Petr

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

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

* Re: [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header
  2025-06-02 15:06 ` Petr Vorel
@ 2025-08-29 13:15   ` Cyril Hrubis
  0 siblings, 0 replies; 5+ messages in thread
From: Cyril Hrubis @ 2025-08-29 13:15 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp

Hi!
> > +/*
> > + * Returns NULL-terminated array of kernel-supported filesystems.
> > + *
> > + * @skiplist A NULL terminated array of filesystems to skip.
> > + */
> > +const char **tst_get_supported_fs_types(const char *const *skiplist);
> 
> BTW I suppose as a "private" header is not supposed to be used in in test programs
> we don't want to use kerneldoc, right?

Do we? There should be some kind of documentation even for internal
functions and I do not see a reson to use a different format. Having
kerneldoc vs doxygen is confusing enough for me adding third format
wouldn't help.

-- 
Cyril Hrubis
chrubis@suse.cz

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

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

* Re: [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header
  2025-05-28  5:08 ` Li Wang via ltp
@ 2025-08-29 13:15   ` Cyril Hrubis
  0 siblings, 0 replies; 5+ messages in thread
From: Cyril Hrubis @ 2025-08-29 13:15 UTC (permalink / raw)
  To: Li Wang; +Cc: ltp

Hi!
Thanks for the reviews, pushed.

-- 
Cyril Hrubis
chrubis@suse.cz

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

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

end of thread, other threads:[~2025-08-29 13:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-27 11:47 [LTP] [PATCH] lib: Move tst_get_supported_fs_types() to private header Cyril Hrubis
2025-05-28  5:08 ` Li Wang via ltp
2025-08-29 13:15   ` Cyril Hrubis
2025-06-02 15:06 ` Petr Vorel
2025-08-29 13:15   ` Cyril Hrubis

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.