Skip to contentSkip to conversation

compat: fix security_sk_clone dummy backport compile

PATCH In review Felix Fietkau 2 participants 2 messages Dec 2, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat: fix security_sk_clone dummy backport compile

linux/security.h needs to be included before the dummy function overrides it, otherwise the macro that redirects it to the compat version will apply to the kernel function as well, causing multiple conflicting definitions

---
 include/linux/compat-3.1.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/compat-3.1.h +2 -0
index 0832183..5b00ac9 100644
@@ -5,6 +5,8 @@
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
 
+#include <linux/security.h>
+
 #define genl_dump_check_consistent(cb, user_hdr, family)
 
 #define IFF_TX_SKB_SHARING	0x10000	/* The interface supports sharing
Signature · 1 line
1.7.3.2
#1 lore raw
Quoted 5 lines · Felix Fietkau

linux/security.h needs to be included before the dummy function overrides it, otherwise the macro that redirects it to the compat version will apply to the kernel function as well, causing multiple conflicting definitions

Thanks, both patch applied and pushed!

Luis