From d770cfc96257f9bd9e0c96c8ebe50e4531dc1bc5 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 2 Sep 2019 19:00:33 +0200 Subject: 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 --- src/vlib/node.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vlib') 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 -- cgit 1.2.3-korg