Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8444637 authored by Arad, Ronen's avatar Arad, Ronen Committed by David S. Miller
Browse files

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: default avatarRonen Arad <ronen.arad@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9ef2e965
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -160,7 +160,7 @@ struct rtattr {


/* Macros to handle rtattributes */
/* Macros to handle rtattributes */


#define RTA_ALIGNTO	4
#define RTA_ALIGNTO	4U
#define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) )
#define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) )
#define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
#define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
			 (rta)->rta_len >= sizeof(struct rtattr) && \
			 (rta)->rta_len >= sizeof(struct rtattr) && \