diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2010-12-17 21:03:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-17 21:03:14 +0100 |
commit | 4b8fe66300acb2fba8b16d62606e0d30204022fc (patch) | |
tree | 47bd007ac8a3a3dfaa15edb64024b34e7dda8860 | |
parent | asix: add USB ID for Logitec LAN-GTJ U2A (diff) | |
download | linux-4b8fe66300acb2fba8b16d62606e0d30204022fc.tar.xz linux-4b8fe66300acb2fba8b16d62606e0d30204022fc.zip |
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>
-rw-r--r-- | include/linux/netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 123566912d73..e2b9e63afa68 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h @@ -70,7 +70,7 @@ struct nlmsghdr { Check NLM_F_EXCL */ -#define NLMSG_ALIGNTO 4 +#define NLMSG_ALIGNTO 4U #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) |