Re: [PATCH net-next] audit: pass int* to nlmsg_next

From: David Miller
Date: Thu Mar 28 2013 - 17:40:52 EST


From: Alexandru Copot <alex.mihai.c@xxxxxxxxx>
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@xxxxxxxxx>

Applied, thanks.
N?§²ζμrΈ?yϊθ?Ψb²X¬ΆΗ§vΨ^?)ήΊ{.nΗ+?·??{±?κηzX§Ά?ʽά¨}©?²Ζ zΪ&j:+v?¨Ύ«?κηzZ+?Κ+zf£ʼ·h??§~?­?Ϋi?ϋΰzΉ?w?ʼΈ??¨θ­Ϊ&ʼ)ίʼf?ω^jΗ«y§m?α@A«aΆΪ? 0Άμh?ε?i