diff options
author | Jiri Kosina <jkosina@suse.cz> | 2017-05-01 15:49:28 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-05-01 15:49:28 -0400 |
commit | a0841609f658c77f066af9c61a2e13143564fcb4 (patch) | |
tree | 0f0df468b6f852501cd4ed1570701e695b9f5d56 /include/linux/init_task.h | |
parent | 77f8f39a2e463eca89a19b916189d0e4e38f75d8 (diff) | |
parent | e679af627fe875a51d40b9a2b17f08fbde36e0e2 (diff) |
Merge branches 'for-4.12/upstream' and 'for-4.12/klp-hybrid-consistency-model' into for-linus
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 91d9049f0039..5a791055b176 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/sched/autogroup.h> | 15 | #include <linux/sched/autogroup.h> |
16 | #include <net/net_namespace.h> | 16 | #include <net/net_namespace.h> |
17 | #include <linux/sched/rt.h> | 17 | #include <linux/sched/rt.h> |
18 | #include <linux/livepatch.h> | ||
18 | #include <linux/mm_types.h> | 19 | #include <linux/mm_types.h> |
19 | 20 | ||
20 | #include <asm/thread_info.h> | 21 | #include <asm/thread_info.h> |
@@ -202,6 +203,13 @@ extern struct cred init_cred; | |||
202 | # define INIT_KASAN(tsk) | 203 | # define INIT_KASAN(tsk) |
203 | #endif | 204 | #endif |
204 | 205 | ||
206 | #ifdef CONFIG_LIVEPATCH | ||
207 | # define INIT_LIVEPATCH(tsk) \ | ||
208 | .patch_state = KLP_UNDEFINED, | ||
209 | #else | ||
210 | # define INIT_LIVEPATCH(tsk) | ||
211 | #endif | ||
212 | |||
205 | #ifdef CONFIG_THREAD_INFO_IN_TASK | 213 | #ifdef CONFIG_THREAD_INFO_IN_TASK |
206 | # define INIT_TASK_TI(tsk) \ | 214 | # define INIT_TASK_TI(tsk) \ |
207 | .thread_info = INIT_THREAD_INFO(tsk), \ | 215 | .thread_info = INIT_THREAD_INFO(tsk), \ |
@@ -288,6 +296,7 @@ extern struct cred init_cred; | |||
288 | INIT_VTIME(tsk) \ | 296 | INIT_VTIME(tsk) \ |
289 | INIT_NUMA_BALANCING(tsk) \ | 297 | INIT_NUMA_BALANCING(tsk) \ |
290 | INIT_KASAN(tsk) \ | 298 | INIT_KASAN(tsk) \ |
299 | INIT_LIVEPATCH(tsk) \ | ||
291 | } | 300 | } |
292 | 301 | ||
293 | 302 | ||