]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: fix gcc -Wconversion warning
authorArad, Ronen <ronen.arad@intel.com>
Fri, 9 Oct 2015 17:35:47 +0000 (10:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:40:30 +0000 (19:40 -0700)
commit96ab9f752d8d63e9344b2505f429066a1a238cc4
treeeefa04382e4447755d9af815e9bca69c453a57a2
parent774c276f0a10c0c8eeeb0f768e7ea737008c1f6a
rtnetlink: fix gcc -Wconversion warning

RTA_ALIGNTO is currently define as 4. It has to be 4U to prevent warning
for RTA_ALIGN and RTA_DATA expansions when -Wconversion gcc option is
enabled.
This follows NLMSG_ALIGNTO definition in <include/uapi/linux/netlink.h>.

Signed-off-by: Ronen Arad <ronen.arad@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h