projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
riscv: add compile-time test into is_compat_task()
[linux-2.6-microblaze.git]
/
arch
/
riscv
/
include
/
asm
/
compat.h
diff --git
a/arch/riscv/include/asm/compat.h
b/arch/riscv/include/asm/compat.h
index
2ac955b
..
91517b5
100644
(file)
--- a/
arch/riscv/include/asm/compat.h
+++ b/
arch/riscv/include/asm/compat.h
@@
-14,6
+14,9
@@
static inline int is_compat_task(void)
{
+ if (!IS_ENABLED(CONFIG_COMPAT))
+ return 0;
+
return test_thread_flag(TIF_32BIT);
}