netlink: fix gcc -Wconversion compilation warning
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 17 Dec 2010 20:03:14 +0000 (12:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Dec 2010 20:03:14 +0000 (12:03 -0800)
commit4b8fe66300acb2fba8b16d62606e0d30204022fc
tree47bd007ac8a3a3dfaa15edb64024b34e7dda8860
parentf4680d3db71f13d2764340a9880745bf54f2469d
netlink: fix gcc -Wconversion compilation warning

$ cat << EOF | gcc -Wconversion -xc -S -o/dev/null -
unsigned f(void) {return NLMSG_HDRLEN;}
EOF
<stdin>: In function 'f':
<stdin>:3:26: warning: negative integer implicitly converted to unsigned type

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h