diff options
Diffstat (limited to 'include/linux/nospec.h')
-rw-r--r-- | include/linux/nospec.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/nospec.h b/include/linux/nospec.h index 700bb8a4e4ea..a908c954484d 100644 --- a/include/linux/nospec.h +++ b/include/linux/nospec.h | |||
@@ -7,6 +7,8 @@ | |||
7 | #define _LINUX_NOSPEC_H | 7 | #define _LINUX_NOSPEC_H |
8 | #include <asm/barrier.h> | 8 | #include <asm/barrier.h> |
9 | 9 | ||
10 | struct task_struct; | ||
11 | |||
10 | /** | 12 | /** |
11 | * array_index_mask_nospec() - generate a ~0 mask when index < size, 0 otherwise | 13 | * array_index_mask_nospec() - generate a ~0 mask when index < size, 0 otherwise |
12 | * @index: array element index | 14 | * @index: array element index |
@@ -57,7 +59,8 @@ static inline unsigned long array_index_mask_nospec(unsigned long index, | |||
57 | }) | 59 | }) |
58 | 60 | ||
59 | /* Speculation control prctl */ | 61 | /* Speculation control prctl */ |
60 | int arch_prctl_spec_ctrl_get(unsigned long which); | 62 | int arch_prctl_spec_ctrl_get(struct task_struct *task, unsigned long which); |
61 | int arch_prctl_spec_ctrl_set(unsigned long which, unsigned long ctrl); | 63 | int arch_prctl_spec_ctrl_set(struct task_struct *task, unsigned long which, |
64 | unsigned long ctrl); | ||
62 | 65 | ||
63 | #endif /* _LINUX_NOSPEC_H */ | 66 | #endif /* _LINUX_NOSPEC_H */ |