summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-09-02 19:00:33 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-28 20:24:13 +0000
commitb73d1e91c583b877bdf9a1ead48a45bc4b7cd7bc (patch)
treed41bb225c4b804a7a35886182ea22acac1fee8e8 /src/vlib
parente1204e50495075912e96d897ce5962319ac02323 (diff)
ipsec ip tcp l2: multiarch nodes cannot be declared as static
Credits to ray.kinsella@intel.com who spotted the issue and identified root cause. Type: fix Change-Id: I4afe74c47769484309f6aebca2de56ad32c8041f Signed-off-by: Damjan Marion <damarion@cisco.com> (cherry picked from commit d770cfc96257f9bd9e0c96c8ebe50e4531dc1bc5)
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/node.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/node.h b/src/vlib/node.h
index 40d0165f402..2db31c68d7f 100644
--- a/src/vlib/node.h
+++ b/src/vlib/node.h
@@ -187,6 +187,7 @@ static void __vlib_rm_node_registration_##x (void) \
__VA_ARGS__ vlib_node_registration_t x
#else
#define VLIB_REGISTER_NODE(x,...) \
+STATIC_ASSERT (sizeof(# __VA_ARGS__) != 7,"node " #x " must not be declared as static"); \
static __clib_unused vlib_node_registration_t __clib_unused_##x
#endif