datapath: Return EFBIG instead of EXFULL when no room in flow table
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / linux / kobject.h
1 #ifndef __LINUX_KOBJECT_WRAPPER_H
2 #define __LINUX_KOBJECT_WRAPPER_H 1
3
4 #include_next <linux/kobject.h>
5
6 #include <linux/version.h>
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
8 #define kobject_init(kobj, ktype) rpl_kobject_init(kobj, ktype)
9 static inline void rpl_kobject_init(struct kobject *kobj, struct kobj_type *ktype)
10 {
11         kobj->ktype = ktype;
12         (kobject_init)(kobj);
13 }
14 #endif
15
16 #endif /* linux/kobject.h wrapper */