* [PATCH] arm64: Move TIF_* documentation to individual definitions
@ 2019-07-31 13:35 Geert Uytterhoeven
2019-07-31 15:01 ` Mark Rutland
2019-07-31 16:14 ` Will Deacon
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2019-07-31 13:35 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon
Cc: Kees Cook, Andy Lutomirski, Will Drewry, linux-arm-kernel,
linux-kernel, Geert Uytterhoeven
Some TIF_* flags are documented in the comment block at the top, some
next to their definitions, some in both places.
Move all documentation to the individual definitions for consistency,
and for easy lookup.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
The alternative is to move all of them to the comment block, and using
linuxdoc style.
arch/arm64/include/asm/thread_info.h | 24 ++++++++----------------
1 file changed, 8 insertions(+), 16 deletions(-)
diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h
index 180b34ec59650a9b..cb3eb1ccccc4116b 100644
--- a/arch/arm64/include/asm/thread_info.h
+++ b/arch/arm64/include/asm/thread_info.h
@@ -60,28 +60,20 @@ void arch_release_task_struct(struct task_struct *tsk);
#endif
/*
- * thread information flags:
- * TIF_SYSCALL_TRACE - syscall trace active
- * TIF_SYSCALL_TRACEPOINT - syscall tracepoint for ftrace
- * TIF_SYSCALL_AUDIT - syscall auditing
- * TIF_SECCOMP - syscall secure computing
- * TIF_SYSCALL_EMU - syscall emulation active
- * TIF_SIGPENDING - signal pending
- * TIF_NEED_RESCHED - rescheduling necessary
- * TIF_NOTIFY_RESUME - callback before returning to user
+ * thread information flags
*/
-#define TIF_SIGPENDING 0
-#define TIF_NEED_RESCHED 1
+#define TIF_SIGPENDING 0 /* signal pending */
+#define TIF_NEED_RESCHED 1 /* rescheduling necessary */
#define TIF_NOTIFY_RESUME 2 /* callback before returning to user */
#define TIF_FOREIGN_FPSTATE 3 /* CPU's FP state is not current's */
#define TIF_UPROBE 4 /* uprobe breakpoint or singlestep */
#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */
#define TIF_NOHZ 7
-#define TIF_SYSCALL_TRACE 8
-#define TIF_SYSCALL_AUDIT 9
-#define TIF_SYSCALL_TRACEPOINT 10
-#define TIF_SECCOMP 11
-#define TIF_SYSCALL_EMU 12
+#define TIF_SYSCALL_TRACE 8 /* syscall trace active */
+#define TIF_SYSCALL_AUDIT 9 /* syscall auditing */
+#define TIF_SYSCALL_TRACEPOINT 10 /* syscall tracepoint for ftrace */
+#define TIF_SECCOMP 11 /* syscall secure computing */
+#define TIF_SYSCALL_EMU 12 /* syscall emulation active */
#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
#define TIF_FREEZE 19
#define TIF_RESTORE_SIGMASK 20
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: Move TIF_* documentation to individual definitions
2019-07-31 13:35 [PATCH] arm64: Move TIF_* documentation to individual definitions Geert Uytterhoeven
@ 2019-07-31 15:01 ` Mark Rutland
2019-07-31 16:14 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Mark Rutland @ 2019-07-31 15:01 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Catalin Marinas, Will Deacon, Kees Cook, Andy Lutomirski,
Will Drewry, linux-arm-kernel, linux-kernel
On Wed, Jul 31, 2019 at 03:35:20PM +0200, Geert Uytterhoeven wrote:
> Some TIF_* flags are documented in the comment block at the top, some
> next to their definitions, some in both places.
>
> Move all documentation to the individual definitions for consistency,
> and for easy lookup.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> The alternative is to move all of them to the comment block, and using
> linuxdoc style.
>
> arch/arm64/include/asm/thread_info.h | 24 ++++++++----------------
> 1 file changed, 8 insertions(+), 16 deletions(-)
>
> diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h
> index 180b34ec59650a9b..cb3eb1ccccc4116b 100644
> --- a/arch/arm64/include/asm/thread_info.h
> +++ b/arch/arm64/include/asm/thread_info.h
> @@ -60,28 +60,20 @@ void arch_release_task_struct(struct task_struct *tsk);
> #endif
>
> /*
> - * thread information flags:
> - * TIF_SYSCALL_TRACE - syscall trace active
> - * TIF_SYSCALL_TRACEPOINT - syscall tracepoint for ftrace
> - * TIF_SYSCALL_AUDIT - syscall auditing
> - * TIF_SECCOMP - syscall secure computing
> - * TIF_SYSCALL_EMU - syscall emulation active
> - * TIF_SIGPENDING - signal pending
> - * TIF_NEED_RESCHED - rescheduling necessary
> - * TIF_NOTIFY_RESUME - callback before returning to user
> + * thread information flags
> */
We can probably just get rid of the this comment block at this point. :)
> -#define TIF_SIGPENDING 0
> -#define TIF_NEED_RESCHED 1
> +#define TIF_SIGPENDING 0 /* signal pending */
> +#define TIF_NEED_RESCHED 1 /* rescheduling necessary */
> #define TIF_NOTIFY_RESUME 2 /* callback before returning to user */
> #define TIF_FOREIGN_FPSTATE 3 /* CPU's FP state is not current's */
> #define TIF_UPROBE 4 /* uprobe breakpoint or singlestep */
> #define TIF_FSCHECK 5 /* Check FS is USER_DS on return */
> #define TIF_NOHZ 7
> -#define TIF_SYSCALL_TRACE 8
> -#define TIF_SYSCALL_AUDIT 9
> -#define TIF_SYSCALL_TRACEPOINT 10
> -#define TIF_SECCOMP 11
> -#define TIF_SYSCALL_EMU 12
> +#define TIF_SYSCALL_TRACE 8 /* syscall trace active */
> +#define TIF_SYSCALL_AUDIT 9 /* syscall auditing */
> +#define TIF_SYSCALL_TRACEPOINT 10 /* syscall tracepoint for ftrace */
> +#define TIF_SECCOMP 11 /* syscall secure computing */
> +#define TIF_SYSCALL_EMU 12 /* syscall emulation active */
> #define TIF_MEMDIE 18 /* is terminating due to OOM killer */
> #define TIF_FREEZE 19
> #define TIF_RESTORE_SIGMASK 20
FWIW this looks sane to me, so:
Acked-by: Mark Rutland <mark.rutland@arm.com>
Mark.
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: Move TIF_* documentation to individual definitions
2019-07-31 13:35 [PATCH] arm64: Move TIF_* documentation to individual definitions Geert Uytterhoeven
2019-07-31 15:01 ` Mark Rutland
@ 2019-07-31 16:14 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2019-07-31 16:14 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Catalin Marinas, Will Drewry, Kees Cook, linux-kernel,
Andy Lutomirski, linux-arm-kernel, mark.rutland
On Wed, Jul 31, 2019 at 03:35:20PM +0200, Geert Uytterhoeven wrote:
> Some TIF_* flags are documented in the comment block at the top, some
> next to their definitions, some in both places.
>
> Move all documentation to the individual definitions for consistency,
> and for easy lookup.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> The alternative is to move all of them to the comment block, and using
> linuxdoc style.
>
> arch/arm64/include/asm/thread_info.h | 24 ++++++++----------------
> 1 file changed, 8 insertions(+), 16 deletions(-)
Queued for 5.4, with Mark's Ack.
Will
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-31 16:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-31 13:35 [PATCH] arm64: Move TIF_* documentation to individual definitions Geert Uytterhoeven
2019-07-31 15:01 ` Mark Rutland
2019-07-31 16:14 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®