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

#if LINUX_VERSION_IS_GEQ(4,15,2) || \
    LINUX_VERSION_IN_RANGE(4,14,18, 4,15,0) || \
    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 */