netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] audit: pass int* to nlmsg_next
@ 2013-03-28 21:31 Alexandru Copot
  2013-03-28 21:40 ` David Miller
  2013-03-29 14:54 ` Sergei Shtylyov
  0 siblings, 2 replies; 3+ messages in thread
From: Alexandru Copot @ 2013-03-28 21:31 UTC (permalink / raw)
  To: linux-kernel, netdev, davem; +Cc: honkiko, tgraf, Alexandru Copot

Commit 941912133025926307c7a65b203fa38403b1063a replaced the macros
NLMSG_NEXT with calls to nlmsg_next which produces this warning:

kernel/audit.c: In function ‘audit_receive_skb’:
kernel/audit.c:928:3: warning: passing argument 2 of ‘nlmsg_next’ makes pointer from integer without a cast
In file included from include/net/rtnetlink.h:5:0,
                 from include/net/neighbour.h:28,
                 from include/net/dst.h:17,
                 from include/net/sock.h:68,
                 from kernel/audit.c:55:
include/net/netlink.h:359:1: note: expected ‘int *’ but argument is of type ‘int’

Fix this by sending the intended pointer.

Signed-off-by: Alexandru Copot <alex.mihai.c@gmail.com>
---
 kernel/audit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/audit.c b/kernel/audit.c
index 4dbb047..488f85f 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -925,7 +925,7 @@ static void audit_receive_skb(struct sk_buff *skb)
 		if (err || (nlh->nlmsg_flags & NLM_F_ACK))
 			netlink_ack(skb, nlh, err);
 
-		nlh = nlmsg_next(nlh, len);
+		nlh = nlmsg_next(nlh, &len);
 	}
 }
 
-- 
1.8.2

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

* Re: [PATCH net-next] audit: pass int* to nlmsg_next
  2013-03-28 21:31 [PATCH net-next] audit: pass int* to nlmsg_next Alexandru Copot
@ 2013-03-28 21:40 ` David Miller
  2013-03-29 14:54 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2013-03-28 21:40 UTC (permalink / raw)
  To: alex.mihai.c; +Cc: linux-kernel, netdev, honkiko, tgraf

From: Alexandru Copot <alex.mihai.c@gmail.com>
Date: Thu, 28 Mar 2013 23:31:29 +0200

> Commit 941912133025926307c7a65b203fa38403b1063a replaced the macros
> NLMSG_NEXT with calls to nlmsg_next which produces this warning:
> 
> kernel/audit.c: In function ‘audit_receive_skb’:
> kernel/audit.c:928:3: warning: passing argument 2 of ‘nlmsg_next’ makes pointer from integer without a cast
> In file included from include/net/rtnetlink.h:5:0,
>                  from include/net/neighbour.h:28,
>                  from include/net/dst.h:17,
>                  from include/net/sock.h:68,
>                  from kernel/audit.c:55:
> include/net/netlink.h:359:1: note: expected ‘int *’ but argument is of type ‘int’
> 
> Fix this by sending the intended pointer.
> 
> Signed-off-by: Alexandru Copot <alex.mihai.c@gmail.com>

Applied, thanks.

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

* Re: [PATCH net-next] audit: pass int* to nlmsg_next
  2013-03-28 21:31 [PATCH net-next] audit: pass int* to nlmsg_next Alexandru Copot
  2013-03-28 21:40 ` David Miller
@ 2013-03-29 14:54 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2013-03-29 14:54 UTC (permalink / raw)
  To: Alexandru Copot; +Cc: linux-kernel, netdev, davem, honkiko, tgraf

Hello.

On 29-03-2013 1:31, Alexandru Copot wrote:

> Commit 941912133025926307c7a65b203fa38403b1063a

    Please also specify the summary line of that commit in parens (or however 
you like).
    With that, you can add my:

Acked-by: Sergei Shtylyov <segei.shtylyov@cogentembedded.com>

> replaced the macros
> NLMSG_NEXT with calls to nlmsg_next which produces this warning:

> kernel/audit.c: In function ‘audit_receive_skb’:
> kernel/audit.c:928:3: warning: passing argument 2 of ‘nlmsg_next’ makes pointer from integer without a cast
> In file included from include/net/rtnetlink.h:5:0,
>                   from include/net/neighbour.h:28,
>                   from include/net/dst.h:17,
>                   from include/net/sock.h:68,
>                   from kernel/audit.c:55:
> include/net/netlink.h:359:1: note: expected ‘int *’ but argument is of type ‘int’

> Fix this by sending the intended pointer.

> Signed-off-by: Alexandru Copot <alex.mihai.c@gmail.com>

WBR, Sergei

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

end of thread, other threads:[~2013-03-29 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 21:31 [PATCH net-next] audit: pass int* to nlmsg_next Alexandru Copot
2013-03-28 21:40 ` David Miller
2013-03-29 14:54 ` Sergei Shtylyov

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).