In file included from ../include/net/rtnetlink.h:7, from ../include/net/neighbour.h:31, from ../include/net/dst.h:20, from ../include/net/sock.h:66, from ../include/linux/tcp.h:19, from ../include/linux/ipv6.h:103, from ../drivers/net/wireguard/allowedips.h:11, from ../drivers/net/wireguard/device.h:10, from ../drivers/net/wireguard/netlink.c:7: ../drivers/net/wireguard/netlink.c:30:67: error: ‘peer_policy’ undeclared here (not in a function) 30 | [WGDEVICE_A_PEERS] = NLA_POLICY_NESTED_ARRAY(peer_policy), | ^~~~~~~~~~~ ../include/net/netlink.h:395:54: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~ ../drivers/net/wireguard/netlink.c:30:43: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 30 | [WGDEVICE_A_PEERS] = NLA_POLICY_NESTED_ARRAY(peer_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/compiler.h:197:82: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/net/netlink.h:395:69: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~~ ../include/linux/compiler.h:202:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../include/net/netlink.h:399:34: note: in expansion of macro ‘ARRAY_SIZE’ 399 | _NLA_POLICY_NESTED_ARRAY(ARRAY_SIZE(policy) - 1, policy) | ^~~~~~~~~~ ../drivers/net/wireguard/netlink.c:30:43: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 30 | [WGDEVICE_A_PEERS] = NLA_POLICY_NESTED_ARRAY(peer_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/wireguard/netlink.c:42:83: error: ‘allowedip_policy’ undeclared here (not in a function) 42 | [WGPEER_A_ALLOWEDIPS] = NLA_POLICY_NESTED_ARRAY(allowedip_policy), | ^~~~~~~~~~~~~~~~ ../include/net/netlink.h:395:54: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~ ../drivers/net/wireguard/netlink.c:42:59: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 42 | [WGPEER_A_ALLOWEDIPS] = NLA_POLICY_NESTED_ARRAY(allowedip_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/compiler.h:197:82: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/net/netlink.h:395:69: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~~ ../include/linux/compiler.h:202:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../include/net/netlink.h:399:34: note: in expansion of macro ‘ARRAY_SIZE’ 399 | _NLA_POLICY_NESTED_ARRAY(ARRAY_SIZE(policy) - 1, policy) | ^~~~~~~~~~ ../drivers/net/wireguard/netlink.c:42:59: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 42 | [WGPEER_A_ALLOWEDIPS] = NLA_POLICY_NESTED_ARRAY(allowedip_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ make[6]: *** [../scripts/Makefile.build:287: drivers/net/wireguard/netlink.o] Error 1 make[5]: *** [../scripts/Makefile.build:556: drivers/net/wireguard] Error 2 make[4]: *** [../scripts/Makefile.build:556: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:556: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 In file included from ../include/net/rtnetlink.h:7, from ../include/net/neighbour.h:31, from ../include/net/dst.h:20, from ../include/net/sock.h:66, from ../include/linux/tcp.h:19, from ../include/linux/ipv6.h:103, from ../drivers/net/wireguard/allowedips.h:11, from ../drivers/net/wireguard/device.h:10, from ../drivers/net/wireguard/netlink.c:7: ../drivers/net/wireguard/netlink.c:30:67: error: ‘peer_policy’ undeclared here (not in a function) 30 | [WGDEVICE_A_PEERS] = NLA_POLICY_NESTED_ARRAY(peer_policy), | ^~~~~~~~~~~ ../include/net/netlink.h:395:54: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~ ../drivers/net/wireguard/netlink.c:30:43: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 30 | [WGDEVICE_A_PEERS] = NLA_POLICY_NESTED_ARRAY(peer_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/compiler.h:197:82: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/net/netlink.h:395:69: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~~ ../include/linux/compiler.h:202:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../include/net/netlink.h:399:34: note: in expansion of macro ‘ARRAY_SIZE’ 399 | _NLA_POLICY_NESTED_ARRAY(ARRAY_SIZE(policy) - 1, policy) | ^~~~~~~~~~ ../drivers/net/wireguard/netlink.c:30:43: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 30 | [WGDEVICE_A_PEERS] = NLA_POLICY_NESTED_ARRAY(peer_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/wireguard/netlink.c:42:83: error: ‘allowedip_policy’ undeclared here (not in a function) 42 | [WGPEER_A_ALLOWEDIPS] = NLA_POLICY_NESTED_ARRAY(allowedip_policy), | ^~~~~~~~~~~~~~~~ ../include/net/netlink.h:395:54: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~ ../drivers/net/wireguard/netlink.c:42:59: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 42 | [WGPEER_A_ALLOWEDIPS] = NLA_POLICY_NESTED_ARRAY(allowedip_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/compiler.h:197:82: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/net/netlink.h:395:69: note: in definition of macro ‘_NLA_POLICY_NESTED_ARRAY’ 395 | { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr } | ^~~~~~~ ../include/linux/compiler.h:202:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../include/net/netlink.h:399:34: note: in expansion of macro ‘ARRAY_SIZE’ 399 | _NLA_POLICY_NESTED_ARRAY(ARRAY_SIZE(policy) - 1, policy) | ^~~~~~~~~~ ../drivers/net/wireguard/netlink.c:42:59: note: in expansion of macro ‘NLA_POLICY_NESTED_ARRAY’ 42 | [WGPEER_A_ALLOWEDIPS] = NLA_POLICY_NESTED_ARRAY(allowedip_policy), | ^~~~~~~~~~~~~~~~~~~~~~~ make[6]: *** [../scripts/Makefile.build:287: drivers/net/wireguard/netlink.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [../scripts/Makefile.build:556: drivers/net/wireguard] Error 2 make[4]: *** [../scripts/Makefile.build:556: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:556: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2