* [PATCH] netlink: Align NLA_ALIGNTO with the other ALIGNTO macros
@ 2019-12-17 14:50 Roy Marples
0 siblings, 0 replies; only message in thread
From: Roy Marples @ 2019-12-17 14:50 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm, trivial
This avoids sign conversion errors.
Signed-off-by: Roy Marples <roy@marples.name>
diff --git a/include/uapi/linux/netlink.h b/include/uapi/linux/netlink.h
index 0a4d73317759..c9ed05f14005 100644
--- a/include/uapi/linux/netlink.h
+++ b/include/uapi/linux/netlink.h
@@ -227,7 +227,7 @@ struct nlattr {
#define NLA_F_NET_BYTEORDER (1 << 14)
#define NLA_TYPE_MASK ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER)
-#define NLA_ALIGNTO 4
+#define NLA_ALIGNTO 4U
#define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))
#define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-17 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-17 14:50 [PATCH] netlink: Align NLA_ALIGNTO with the other ALIGNTO macros Roy Marples
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®