--- zzzz-none-000/linux-4.9.279/include/net/netlink.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/net/netlink.h 2023-02-08 11:43:43.000000000 +0000 @@ -580,17 +580,22 @@ return err; } +/* AVM: work around extra gfp_t argument added by Intel, JZ-36233 */ +#define nlmsg_unicast(sk, skb, portid, ...) \ + nlmsg_unicast_intel(sk, skb, portid, \ + (MAYBE_UNUSED_VALUE(0), ##__VA_ARGS__)) /** * nlmsg_unicast - unicast a netlink message * @sk: netlink socket to spread message to * @skb: netlink message as socket buffer * @portid: netlink portid of the destination socket */ -static inline int nlmsg_unicast(struct sock *sk, struct sk_buff *skb, u32 portid) +static inline int nlmsg_unicast_intel(struct sock *sk, struct sk_buff *skb, + u32 portid, gfp_t allocation) { int err; - err = netlink_unicast(sk, skb, portid, MSG_DONTWAIT); + err = netlink_unicast(sk, skb, portid, MSG_DONTWAIT, allocation); if (err > 0) err = 0;