* [PATCH] selftests/sched: fix code format issues
@ 2024-06-11 5:18 aigourensheng
2024-06-11 20:48 ` Shuah Khan
0 siblings, 1 reply; 2+ messages in thread
From: aigourensheng @ 2024-06-11 5:18 UTC (permalink / raw)
To: shuah; +Cc: linux-kselftest, linux-kernel, aigourensheng
There are extra spaces in the middle of #define. It is recommended
to delete the spaces to make the code look more comfortable.
Signed-off-by: aigourensheng <shechenglong001@gmail.com>
---
tools/testing/selftests/sched/cs_prctl_test.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/testing/selftests/sched/cs_prctl_test.c b/tools/testing/selftests/sched/cs_prctl_test.c
index 62fba7356af2..52d97fae4dbd 100644
--- a/tools/testing/selftests/sched/cs_prctl_test.c
+++ b/tools/testing/selftests/sched/cs_prctl_test.c
@@ -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
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests/sched: fix code format issues
2024-06-11 5:18 [PATCH] selftests/sched: fix code format issues aigourensheng
@ 2024-06-11 20:48 ` Shuah Khan
0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2024-06-11 20:48 UTC (permalink / raw)
To: aigourensheng, shuah; +Cc: linux-kselftest, linux-kernel, Shuah Khan
On 6/10/24 23:18, aigourensheng wrote:
> There are extra spaces in the middle of #define. It is recommended
> to delete the spaces to make the code look more comfortable.
>
> Signed-off-by: aigourensheng <shechenglong001@gmail.com>
> ---
> tools/testing/selftests/sched/cs_prctl_test.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/tools/testing/selftests/sched/cs_prctl_test.c b/tools/testing/selftests/sched/cs_prctl_test.c
> index 62fba7356af2..52d97fae4dbd 100644
> --- a/tools/testing/selftests/sched/cs_prctl_test.c
> +++ b/tools/testing/selftests/sched/cs_prctl_test.c
> @@ -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
Applied to linux-ksleftest next for Linux 6.11-rc1
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-11 20:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11 5:18 [PATCH] selftests/sched: fix code format issues aigourensheng
2024-06-11 20:48 ` Shuah Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox