diff options
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 2c487e0879d5..82be96564266 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> |
@@ -203,6 +204,13 @@ extern struct cred init_cred; | |||
203 | # define INIT_KASAN(tsk) | 204 | # define INIT_KASAN(tsk) |
204 | #endif | 205 | #endif |
205 | 206 | ||
207 | #ifdef CONFIG_LIVEPATCH | ||
208 | # define INIT_LIVEPATCH(tsk) \ | ||
209 | .patch_state = KLP_UNDEFINED, | ||
210 | #else | ||
211 | # define INIT_LIVEPATCH(tsk) | ||
212 | #endif | ||
213 | |||
206 | #ifdef CONFIG_THREAD_INFO_IN_TASK | 214 | #ifdef CONFIG_THREAD_INFO_IN_TASK |
207 | # define INIT_TASK_TI(tsk) \ | 215 | # define INIT_TASK_TI(tsk) \ |
208 | .thread_info = INIT_THREAD_INFO(tsk), \ | 216 | .thread_info = INIT_THREAD_INFO(tsk), \ |
@@ -289,6 +297,7 @@ extern struct cred init_cred; | |||
289 | INIT_VTIME(tsk) \ | 297 | INIT_VTIME(tsk) \ |
290 | INIT_NUMA_BALANCING(tsk) \ | 298 | INIT_NUMA_BALANCING(tsk) \ |
291 | INIT_KASAN(tsk) \ | 299 | INIT_KASAN(tsk) \ |
300 | INIT_LIVEPATCH(tsk) \ | ||
292 | } | 301 | } |
293 | 302 | ||
294 | 303 | ||