diff options
| author | Will Deacon <will.deacon@arm.com> | 2018-02-05 14:16:06 +0000 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-02 16:45:47 +0200 |
| commit | f363b884f0bd15e7aa9451d5801195b735b1b461 (patch) | |
| tree | 1eb8971be8bd3141a3bac55d921b561938cc4728 /include/linux/timerfd.h | |
| parent | a6928f1a0c9af55340ecd1050cb8b0a41a5b2324 (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.
Change-Id: I36857abc8226fcdfd9c9014e3ffee17f9dc2cbca
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1517840166-15399-1-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/timerfd.h')
0 files changed, 0 insertions, 0 deletions
