* [net-2.6.24][XFRM][patch 1/1] fix xfrm audit export symbol for allmodconfig
2007-09-12 15:27 [net-2.6.24][XFRM][patch 0/1] fix allmodconfig dlezcano
@ 2007-09-12 15:27 ` dlezcano
2007-09-13 6:51 ` [net-2.6.24][XFRM][patch 0/1] fix allmodconfig David Miller
1 sibling, 0 replies; 3+ messages in thread
From: dlezcano @ 2007-09-12 15:27 UTC (permalink / raw)
To: davem; +Cc: netdev, Joy Latten
[-- Attachment #1: net-fix-xfrm-audit-syscall-export-symbol.patch --]
[-- Type: text/plain, Size: 1685 bytes --]
From: Daniel Lezcano <dlezcano@fr.ibm.com>
This patch fixes export symbol for:
xfrm_audit_policy_add
xfrm_audit_policy_delete
xfrm_audit_state_add
xfrm_audit_state_delete
That allows xfrm_user and af_key to be compiled as module
I didn't used EXPORT_SYMBOL_GPL to be consistent with the rest
of the code.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
---
net/xfrm/xfrm_policy.c | 2 ++
net/xfrm/xfrm_state.c | 3 +++
2 files changed, 5 insertions(+)
Index: net-2.6.24/net/xfrm/xfrm_policy.c
===================================================================
--- net-2.6.24.orig/net/xfrm/xfrm_policy.c
+++ net-2.6.24/net/xfrm/xfrm_policy.c
@@ -2341,6 +2341,7 @@
xfrm_audit_common_policyinfo(xp, audit_buf);
audit_log_end(audit_buf);
}
+EXPORT_SYMBOL(xfrm_audit_policy_add);
void
xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, u32 auid, u32 sid)
@@ -2357,6 +2358,7 @@
xfrm_audit_common_policyinfo(xp, audit_buf);
audit_log_end(audit_buf);
}
+EXPORT_SYMBOL(xfrm_audit_policy_delete);
#endif
#ifdef CONFIG_XFRM_MIGRATE
Index: net-2.6.24/net/xfrm/xfrm_state.c
===================================================================
--- net-2.6.24.orig/net/xfrm/xfrm_state.c
+++ net-2.6.24/net/xfrm/xfrm_state.c
@@ -1865,6 +1865,7 @@
(unsigned long)x->id.spi, (unsigned long)x->id.spi);
audit_log_end(audit_buf);
}
+EXPORT_SYMBOL(xfrm_audit_state_add);
void
xfrm_audit_state_delete(struct xfrm_state *x, int result, u32 auid, u32 sid)
@@ -1883,4 +1884,6 @@
(unsigned long)x->id.spi, (unsigned long)x->id.spi);
audit_log_end(audit_buf);
}
+EXPORT_SYMBOL(xfrm_audit_state_delete);
+
#endif /* CONFIG_AUDITSYSCALL */
--
^ permalink raw reply [flat|nested] 3+ messages in thread