netlink: Avoid "cast increases required alignment of target type" on RISC.
authorBen Pfaff <blp@nicira.com>
Tue, 24 May 2011 17:55:26 +0000 (10:55 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 26 May 2011 16:01:29 +0000 (09:01 -0700)
commit08c4a39ef8417de8f48874296f07ad58de46eefc
treec2a6942c78026ccd00989fb5202c98fe0a919e3e
parent48e1b7fb9b2e0f6c7cf3f54eda9679ec0130e737
netlink: Avoid "cast increases required alignment of target type" on RISC.

This warning doesn't indicate a genuine problem, since 'nla' must be
aligned properly and NLA_ALIGN ensures that the offset is aligned properly
too.  Casting via void * suppresses the warning.
lib/netlink.h