On Dienstag, 20. September 2016 14:12:44 CEST Linus Lüssing wrote: [...]
+/**
- batadv_tvlv_ogm_unpack_ctx - unpack context received with a TVLV handler call
- @orig_node: An orig_node to pack
- This unpacks the context received within an OGM TVLV handler, here the
- orig_node the packet came from.
- Return: The orig_node the packet came from.
- */
+struct batadv_orig_node *batadv_tvlv_ogm_unpack_ctx(void *ctx) +{
- return (struct batadv_orig_node *)ctx;
+}
The function doesn't have a parameter orig_node but it is documented in the kernel-doc block. Instead the ctx should be documented.
[...]
/**
- batadv_tvlv_handler_unregister2 - unregister a tvlv handler
- @bat_priv: the bat priv with all the soft interface information
- @tvlv_type: packet type to unregistered for
- @tvlv_type: tvlv handler type to be unregistered
tvlv_type is documented twice - and differently.
Kind regards, Sven