--- zzzz-none-000/linux-4.9.279/include/linux/netlink.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/linux/netlink.h 2023-02-08 11:43:43.000000000 +0000 @@ -69,7 +69,17 @@ extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); extern int netlink_has_listeners(struct sock *sk, unsigned int group); -extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock); +/* Overload of netlink_unicast() with the help of the preprocessor and the + * comma operator, due to Intel's Puma 7 SDK adding an extra gfp_t argument + * (AVM, JZ-36233). + */ +#define netlink_unicast(ssk, skb, portid, nonblock, ...) \ + netlink_unicast_intel(ssk, skb, portid, nonblock, \ + (MAYBE_UNUSED_VALUE(0), ##__VA_ARGS__)) +extern int netlink_unicast_intel(struct sock *ssk, struct sk_buff *skb, + __u32 portid, int nonblock, + gfp_t allocation); + extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid, __u32 group, gfp_t allocation); extern int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb,