netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: fix skb_page_frag_refill() kerneldoc
@ 2014-09-08 11:00 Eric Dumazet
  2014-09-08 11:04 ` Sergei Shtylyov
  2014-09-08 21:12 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Dumazet @ 2014-09-08 11:00 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

From: Eric Dumazet <edumazet@google.com>

In commit d9b2938aabf7 ("net: attempt a single high order allocation)
I forgot to update kerneldoc, as @prio parameter was renamed to @gfp

Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 net/core/sock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/sock.c b/net/core/sock.c
index d372b4bd3f99..9c3f823e76a9 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1866,7 +1866,7 @@ EXPORT_SYMBOL(sock_alloc_send_skb);
  * skb_page_frag_refill - check that a page_frag contains enough room
  * @sz: minimum size of the fragment we want to get
  * @pfrag: pointer to page_frag
- * @prio: priority for memory allocation
+ * @gfp: priority for memory allocation
  *
  * Note: While this allocator tries to use high order pages, there is
  * no guarantee that allocations succeed. Therefore, @sz MUST be

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: fix skb_page_frag_refill() kerneldoc
  2014-09-08 11:00 [PATCH net] net: fix skb_page_frag_refill() kerneldoc Eric Dumazet
@ 2014-09-08 11:04 ` Sergei Shtylyov
  2014-09-08 11:22   ` Eric Dumazet
  2014-09-08 21:13   ` David Miller
  2014-09-08 21:12 ` David Miller
  1 sibling, 2 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2014-09-08 11:04 UTC (permalink / raw)
  To: Eric Dumazet, David Miller; +Cc: netdev

Hello.

On 9/8/2014 3:00 PM, Eric Dumazet wrote:

> From: Eric Dumazet <edumazet@google.com>

> In commit d9b2938aabf7 ("net: attempt a single high order allocation)
> I forgot to update kerneldoc, as @prio parameter was renamed to @gfp

> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
>   net/core/sock.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

> diff --git a/net/core/sock.c b/net/core/sock.c
> index d372b4bd3f99..9c3f823e76a9 100644
> --- a/net/core/sock.c
> +++ b/net/core/sock.c
> @@ -1866,7 +1866,7 @@ EXPORT_SYMBOL(sock_alloc_send_skb);
>    * skb_page_frag_refill - check that a page_frag contains enough room
>    * @sz: minimum size of the fragment we want to get
>    * @pfrag: pointer to page_frag
> - * @prio: priority for memory allocation
> + * @gfp: priority for memory allocation

    'gfp' is not priority, it's just flags.

WBR, Sergei

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: fix skb_page_frag_refill() kerneldoc
  2014-09-08 11:04 ` Sergei Shtylyov
@ 2014-09-08 11:22   ` Eric Dumazet
  2014-09-08 21:13   ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: Eric Dumazet @ 2014-09-08 11:22 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: David Miller, netdev

On Mon, 2014-09-08 at 15:04 +0400, Sergei Shtylyov wrote:
> Hello.
> 
> On 9/8/2014 3:00 PM, Eric Dumazet wrote:
> 
> > From: Eric Dumazet <edumazet@google.com>
> 
> > In commit d9b2938aabf7 ("net: attempt a single high order allocation)
> > I forgot to update kerneldoc, as @prio parameter was renamed to @gfp
> 
> > Signed-off-by: Eric Dumazet <edumazet@google.com>
> > ---
> >   net/core/sock.c |    2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> > diff --git a/net/core/sock.c b/net/core/sock.c
> > index d372b4bd3f99..9c3f823e76a9 100644
> > --- a/net/core/sock.c
> > +++ b/net/core/sock.c
> > @@ -1866,7 +1866,7 @@ EXPORT_SYMBOL(sock_alloc_send_skb);
> >    * skb_page_frag_refill - check that a page_frag contains enough room
> >    * @sz: minimum size of the fragment we want to get
> >    * @pfrag: pointer to page_frag
> > - * @prio: priority for memory allocation
> > + * @gfp: priority for memory allocation
> 
>     'gfp' is not priority, it's just flags.

This is the usual wording for this in net/core

I changed the name of the argument, not its meaning.

$ scripts/kernel-doc net/core/sock.c >/dev/null
Warning(net/core/sock.c:1874): No description found for parameter 'gfp'
Warning(net/core/sock.c:1874): Excess function parameter 'prio'
description in 'skb_page_frag_refill'

Feel free to submit a net-next patch to change net/core occurrences.

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: fix skb_page_frag_refill() kerneldoc
  2014-09-08 11:00 [PATCH net] net: fix skb_page_frag_refill() kerneldoc Eric Dumazet
  2014-09-08 11:04 ` Sergei Shtylyov
@ 2014-09-08 21:12 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2014-09-08 21:12 UTC (permalink / raw)
  To: eric.dumazet; +Cc: netdev

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Mon, 08 Sep 2014 04:00:00 -0700

> From: Eric Dumazet <edumazet@google.com>
> 
> In commit d9b2938aabf7 ("net: attempt a single high order allocation)
> I forgot to update kerneldoc, as @prio parameter was renamed to @gfp
> 
> Signed-off-by: Eric Dumazet <edumazet@google.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: fix skb_page_frag_refill() kerneldoc
  2014-09-08 11:04 ` Sergei Shtylyov
  2014-09-08 11:22   ` Eric Dumazet
@ 2014-09-08 21:13   ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2014-09-08 21:13 UTC (permalink / raw)
  To: sergei.shtylyov; +Cc: eric.dumazet, netdev

From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Date: Mon, 08 Sep 2014 15:04:28 +0400

>> - * @prio: priority for memory allocation
>> + * @gfp: priority for memory allocation
> 
>    'gfp' is not priority, it's just flags.

It is an allocation priority, and I've seen that terminology used for
2 decades.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-08 21:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08 11:00 [PATCH net] net: fix skb_page_frag_refill() kerneldoc Eric Dumazet
2014-09-08 11:04 ` Sergei Shtylyov
2014-09-08 11:22   ` Eric Dumazet
2014-09-08 21:13   ` David Miller
2014-09-08 21:12 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).