diff --git a/net/core/secure_seq.c b/net/core/secure_seq.c
index b02fd16b8942a4cf6b6543d712cefeec2e4e29e6..90e8a825025595c2340ee86af0af67ab6e5bc638 100644
--- a/net/core/secure_seq.c
+++ b/net/core/secure_seq.c
@@ -15,7 +15,7 @@
 
 static u32 net_secret[NET_SECRET_SIZE] ____cacheline_aligned;
 
-static void net_secret_init(void)
+static __always_inline void net_secret_init(void)
 {
 	net_get_random_once(net_secret, sizeof(net_secret));
 }