summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/nospec.h
blob: 50cf46737cbb9aa3cb9492cff10fb7071880d808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _BACKPORT_LINUX_NOSPEC_H
#define _BACKPORT_LINUX_NOSPEC_H

#if LINUX_VERSION_IS_GEQ(4,14,18) || \
    LINUX_VERSION_IN_RANGE(4,9,81, 4,10,0) || \
    LINUX_VERSION_IN_RANGE(4,4,118, 4,5,0)
#include_next <linux/nospec.h>
#else
#define array_index_nospec(index, size)	(index)
#endif

#endif /* _BACKPORT_LINUX_NOSPEC_H */