Re: [PATCH net-next v6 1/2] net: introduce abstraction for network memory

From: Jakub Kicinski
Date: Tue Jan 30 2024 - 19:48:20 EST


On Tue, 30 Jan 2024 10:59:53 +0100 Paolo Abeni wrote:
> > + * netmem_ref - a nonexistent type marking a reference to generic network
>
> Minor nit: here you need to prepend 'struct' to avoid a kdoc warning:
>
> include/net/netmem.h:20: warning: cannot understand function prototype: 'typedef unsigned long __bitwise netmem_ref; '
>
> Should be:
>
> * struct netmem_ref - a nonexistent type marking a reference to generic network

s/struct/typedef/

/**
* typedef netmem_ref - ....
*/

Somewhat surprisingly kdoc understands the typedef keyword just fine :)