diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 4bd601c964343ce9b2b6f8477cf2f2f613f5f126..001566dcc8ce65b77a0307f4d725547a9182e6ee 100644 --- a/net/ipv6/seg6.c +++ b/net/ipv6/seg6.c @@ -484,6 +484,8 @@ int __init seg6_init(void) #endif #ifdef CONFIG_IPV6_SEG6_LWTUNNEL out_unregister_genl: +#endif +#if IS_ENABLED(CONFIG_IPV6_SEG6_LWTUNNEL) || IS_ENABLED(CONFIG_IPV6_SEG6_HMAC) genl_unregister_family(&seg6_genl_family); #endif out_unregister_pernet: