* [PATCH] parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag()
@ 2021-02-03 5:27 Tiezhu Yang
2021-02-03 14:04 ` Helge Deller
0 siblings, 1 reply; 2+ messages in thread
From: Tiezhu Yang @ 2021-02-03 5:27 UTC (permalink / raw)
To: James.Bottomley, Helge Deller; +Cc: linux-parisc, linux-kernel
Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to
improve readability when the argument type is struct task_struct, it is
similar with commit 5afc78551bf5 ("arm64: Use test_tsk_thread_flag() for
checking TIF_SINGLESTEP").
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
arch/parisc/include/asm/compat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/parisc/include/asm/compat.h b/arch/parisc/include/asm/compat.h
index 8f33085..1a609d3 100644
--- a/arch/parisc/include/asm/compat.h
+++ b/arch/parisc/include/asm/compat.h
@@ -179,7 +179,7 @@ static __inline__ void __user *arch_compat_alloc_user_space(long len)
static inline int __is_compat_task(struct task_struct *t)
{
- return test_ti_thread_flag(task_thread_info(t), TIF_32BIT);
+ return test_tsk_thread_flag(t, TIF_32BIT);
}
static inline int is_compat_task(void)
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag()
2021-02-03 5:27 [PATCH] parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag() Tiezhu Yang
@ 2021-02-03 14:04 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2021-02-03 14:04 UTC (permalink / raw)
To: Tiezhu Yang, James.Bottomley; +Cc: linux-parisc, linux-kernel
On 2/3/21 6:27 AM, Tiezhu Yang wrote:
> Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to
> improve readability when the argument type is struct task_struct, it is
> similar with commit 5afc78551bf5 ("arm64: Use test_tsk_thread_flag() for
> checking TIF_SINGLESTEP").
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Thanks!
Applied to the parisc git tree.
Helge
> ---
> arch/parisc/include/asm/compat.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/parisc/include/asm/compat.h b/arch/parisc/include/asm/compat.h
> index 8f33085..1a609d3 100644
> --- a/arch/parisc/include/asm/compat.h
> +++ b/arch/parisc/include/asm/compat.h
> @@ -179,7 +179,7 @@ static __inline__ void __user *arch_compat_alloc_user_space(long len)
>
> static inline int __is_compat_task(struct task_struct *t)
> {
> - return test_ti_thread_flag(task_thread_info(t), TIF_32BIT);
> + return test_tsk_thread_flag(t, TIF_32BIT);
> }
>
> static inline int is_compat_task(void)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-03 14:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 5:27 [PATCH] parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag() Tiezhu Yang
2021-02-03 14:04 ` Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).