Re: [PATCH v2 1/4] rust: netlink: add raw netlink abstraction
From: Andrew Lunn
Date: Thu Apr 09 2026 - 17:53:02 EST
> +__rust_helper void rust_helper_genlmsg_cancel(struct sk_buff *skb, void *hdr)
> +{
> + return genlmsg_cancel(skb, hdr);
> +}
> +
> +__rust_helper void rust_helper_genlmsg_end(struct sk_buff *skb, void *hdr)
> +{
> + return genlmsg_end(skb, hdr);
> +}
> +
> +__rust_helper void rust_helper_nlmsg_free(struct sk_buff *skb)
> +{
> + return nlmsg_free(skb);
> +}
It is a bit odd for a void function to call return like this,
especially when the functions they are calling are also void
functions.
Andrew