diff options
author | Will Deacon <[email protected]> | 2018-02-05 14:16:06 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-02-15 01:15:51 +0100 |
commit | 8fa80c503b484ddc1abbd10c7cb2ab81f3824a50 (patch) | |
tree | b5b1d8d3cfbb754ca59916900ba1ce50d993a8a2 /net/unix/sysctl_net_unix.c | |
parent | be3233fbfcb8f5acb6e3bcd0895c3ef9e100d470 (diff) |
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 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions