diff options
| author | Helge Deller <deller@gmx.de> | 2026-04-08 01:03:41 +0300 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-04-17 16:46:45 +0300 |
| commit | b5d5faba0f774f3216d8d699e130b01021e79f6c (patch) | |
| tree | a94ef72c718049bd5a2e36d9f3ee35e099a57948 | |
| parent | 97bfda452054ae0c20ab5318337e9b95ed32f616 (diff) | |
| download | linux-b5d5faba0f774f3216d8d699e130b01021e79f6c.tar.xz | |
parisc: is_compat_task() shall return false for COMPAT=n
Signed-off-by: Helge Deller <deller@gmx.de>
| -rw-r--r-- | arch/parisc/include/asm/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/compat.h b/arch/parisc/include/asm/compat.h index 339d1b833fa7..13a5a55dec65 100644 --- a/arch/parisc/include/asm/compat.h +++ b/arch/parisc/include/asm/compat.h @@ -130,7 +130,7 @@ typedef compat_ulong_t compat_elf_gregset_t[COMPAT_ELF_NGREG]; static inline int __is_compat_task(struct task_struct *t) { - return test_tsk_thread_flag(t, TIF_32BIT); + return IS_ENABLED(CONFIG_COMPAT) && test_tsk_thread_flag(t, TIF_32BIT); } static inline int is_compat_task(void) |
