forked from open-mesh-mirror/batman-adv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompat.h
38 lines (24 loc) · 923 Bytes
/
compat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) B.A.T.M.A.N. contributors:
*
* Marek Lindner, Simon Wunderlich
*/
#ifndef _NET_BATMAN_ADV_COMPAT_H_
#define _NET_BATMAN_ADV_COMPAT_H_
#ifdef __KERNEL__
#include <linux/version.h> /* LINUX_VERSION_CODE */
#include <linux/kconfig.h>
#include <generated/autoconf.h>
#include "compat-autoconf.h"
#if LINUX_VERSION_IS_LESS(4, 13, 0)
#define batadv_softif_validate(__tb, __data, __extack) \
batadv_softif_validate(__tb, __data)
#define batadv_softif_newlink(__src_net, __dev, __tb, __data, __extack) \
batadv_softif_newlink(__src_net, __dev, __tb, __data)
#endif /* LINUX_VERSION_IS_LESS(4, 13, 0) */
#if LINUX_VERSION_IS_LESS(4, 15, 0)
#define batadv_softif_slave_add(__dev, __slave_dev, __extack) \
batadv_softif_slave_add(__dev, __slave_dev)
#endif /* LINUX_VERSION_IS_LESS(4, 15, 0) */
#endif /* __KERNEL__ */
#endif /* _NET_BATMAN_ADV_COMPAT_H_ */