diff options
| author | Will Deacon <[email protected]> | 2018-02-05 14:16:06 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-02-15 00:15:51 +0000 |
| commit | 8fa80c503b484ddc1abbd10c7cb2ab81f3824a50 (patch) | |
| tree | b5b1d8d3cfbb754ca59916900ba1ce50d993a8a2 /arch/x86/platform/atom/punit_atom_debug.c | |
| parent | x86/speculation: Fix up array_index_nospec_mask() asm constraint (diff) | |
| download | kernel-8fa80c503b484ddc1abbd10c7cb2ab81f3824a50.tar.gz kernel-8fa80c503b484ddc1abbd10c7cb2ab81f3824a50.zip | |
nospec: Move array_index_nospec() parameter checking into separate macro
For architectures providing their own implementation of
array_index_mask_nospec() in asm/barrier.h, attempting to use WARN_ONCE() to
complain about out-of-range parameters using WARN_ON() results in a mess
of mutually-dependent include files.
Rather than unpick the dependencies, simply have the core code in nospec.h
perform the checking for us.
Signed-off-by: Will Deacon <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'arch/x86/platform/atom/punit_atom_debug.c')
0 files changed, 0 insertions, 0 deletions
