Skip to contentSkip to conversation

selftests/sched: fix code format issues

PATCH In review aigourensheng 2 participants 2 messages Jun 11, 2024 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/sched: fix code format issues

There are extra spaces in the middle of #define. It is recommended to delete the spaces to make the code look more comfortable.

---
 tools/testing/selftests/sched/cs_prctl_test.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
tools/testing/selftests/sched/cs_prctl_test.c +5 -5
index 62fba7356af2..52d97fae4dbd 100644
@@ -42,11 +42,11 @@ static pid_t gettid(void)
 
 #ifndef PR_SCHED_CORE
 #define PR_SCHED_CORE			62
-# define PR_SCHED_CORE_GET		0
-# define PR_SCHED_CORE_CREATE		1 /* create unique core_sched cookie */
-# define PR_SCHED_CORE_SHARE_TO		2 /* push core_sched cookie to pid */
-# define PR_SCHED_CORE_SHARE_FROM	3 /* pull core_sched cookie to pid */
-# define PR_SCHED_CORE_MAX		4
+#define PR_SCHED_CORE_GET		0
+#define PR_SCHED_CORE_CREATE		1 /* create unique core_sched cookie */
+#define PR_SCHED_CORE_SHARE_TO		2 /* push core_sched cookie to pid */
+#define PR_SCHED_CORE_SHARE_FROM	3 /* pull core_sched cookie to pid */
+#define PR_SCHED_CORE_MAX		4
 #endif
 
 #define MAX_PROCESSES 128
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 19 lines · aigourensheng

There are extra spaces in the middle of #define. It is recommended to delete the spaces to make the code look more comfortable.

---
  tools/testing/selftests/sched/cs_prctl_test.c | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)
tools/testing/selftests/sched/cs_prctl_test.c +0 -3
index 62fba7356af2..52d97fae4dbd 100644
@@ -42,11 +42,11 @@ static pid_t gettid(void)
 
  #ifndef PR_SCHED_CORE
  #define PR_SCHED_CORE			62
-# define PR_SCHED_CORE_GET		0
-# define PR_SCHED_CORE_CREATE		1 /* create unique core_sched cookie */
-# define PR_SCHED_CORE_SHARE_TO		2 /* push core_sched cookie to pid */

tools/testing/selftests/sched/cs_prctl_test.c static pid_t gettid(void) · line 52

Quoted 10 lines
tools/testing/selftests/sched/cs_prctl_test.c +5 -2
-# define PR_SCHED_CORE_SHARE_FROM	3 /* pull core_sched cookie to pid */
-# define PR_SCHED_CORE_MAX		4
+#define PR_SCHED_CORE_GET		0
+#define PR_SCHED_CORE_CREATE		1 /* create unique core_sched cookie */
+#define PR_SCHED_CORE_SHARE_TO		2 /* push core_sched cookie to pid */
+#define PR_SCHED_CORE_SHARE_FROM	3 /* pull core_sched cookie to pid */
+#define PR_SCHED_CORE_MAX		4
  #endif
 
  #define MAX_PROCESSES 128

Applied to linux-ksleftest next for Linux 6.11-rc1

thanks,
-- Shuah