Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/5] API/cgroup: Whitespace fixes
@ 2021-12-14 10:36 Richard Palethorpe via ltp
  2021-12-14 10:36 ` [LTP] [PATCH 2/5] API/cgroup: Remove typedef Richard Palethorpe via ltp
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Richard Palethorpe via ltp @ 2021-12-14 10:36 UTC (permalink / raw)
  To: ltp; +Cc: Richard Palethorpe

Reduce make check noise

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
 lib/tst_cgroup.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
index 61cc02fa7..2dcfbc8ff 100644
--- a/lib/tst_cgroup.c
+++ b/lib/tst_cgroup.c
@@ -199,7 +199,8 @@ static struct cgroup_ctrl controllers[] = {
 static const struct tst_cgroup_opts default_opts = { 0 };
 
 /* We should probably allow these to be set in environment
- * variables */
+ * variables
+ */
 static const char *ltp_cgroup_dir = "ltp";
 static const char *ltp_cgroup_drain_dir = "drain";
 static char test_cgroup_dir[NAME_MAX + 1];
@@ -798,7 +799,8 @@ void tst_cgroup_cleanup(void)
 			continue;
 
 		/* This probably does not result in the CGroup root
-		 * being destroyed */
+		 * being destroyed
+		 */
 		if (umount2(root->mnt_path, MNT_DETACH))
 			continue;
 
@@ -817,7 +819,7 @@ clear_data:
 	memset(roots, 0, sizeof(roots));
 }
 
-__attribute__ ((nonnull (1)))
+__attribute__((nonnull(1)))
 static void cgroup_group_init(struct tst_cgroup_group *const cg,
 			      const char *const group_name)
 {
@@ -832,7 +834,7 @@ static void cgroup_group_init(struct tst_cgroup_group *const cg,
 	strcpy(cg->group_name, group_name);
 }
 
-__attribute__((nonnull (2, 3)))
+__attribute__((nonnull(2, 3)))
 static void cgroup_group_add_dir(const struct tst_cgroup_group *const parent,
 				 struct tst_cgroup_group *const cg,
 				 struct cgroup_dir *const dir)
@@ -856,7 +858,8 @@ static void cgroup_group_add_dir(const struct tst_cgroup_group *const parent,
 				   "+%s", ctrl->ctrl_name);
 	}
 
-	for (i = 0; cg->dirs[i]; i++);
+	for (i = 0; cg->dirs[i]; i++)
+		;
 	cg->dirs[i] = dir;
 }
 
@@ -923,7 +926,7 @@ static const struct cgroup_file *cgroup_file_find(const char *const file,
 	memcpy(ctrl_name, file_name, len);
 	ctrl_name[len] = '\0';
 
-        ctrl = cgroup_find_ctrl(ctrl_name);
+	ctrl = cgroup_find_ctrl(ctrl_name);
 
 	if (!ctrl) {
 		tst_brk_(file, lineno, TBROK,
-- 
2.34.0


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

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

end of thread, other threads:[~2021-12-14 11:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-14 10:36 [LTP] [PATCH 1/5] API/cgroup: Whitespace fixes Richard Palethorpe via ltp
2021-12-14 10:36 ` [LTP] [PATCH 2/5] API/cgroup: Remove typedef Richard Palethorpe via ltp
2021-12-14 10:36 ` [LTP] [PATCH 3/5] API/cgroup: Lift out assignments in if statements Richard Palethorpe via ltp
2021-12-14 10:36 ` [LTP] [PATCH 4/5] API/cgroup: remove ltp_ prefix from static vars Richard Palethorpe via ltp
2021-12-14 10:36 ` [LTP] [PATCH 5/5] API/cgroup: Use __func__ in tst_cgroup_require Richard Palethorpe via ltp
2021-12-14 11:48 ` [LTP] [PATCH 1/5] API/cgroup: Whitespace fixes Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox