]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER] x_tables: Make XT_ALIGN align as strictly as necessary.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 20 Jan 2006 00:58:37 +0000 (16:58 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 20 Jan 2006 00:58:37 +0000 (16:58 -0800)
Or else we break on ppc32 and other 32-bit platforms.

Based upon a patch from Harald Welte.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/x_tables.h

index 472f04834809e9a9ec8f28a6038725fa9e50e4b3..59ff6c430cf6eb1e8609acf7abecfd347c54e512 100644 (file)
@@ -19,7 +19,7 @@ struct xt_get_revision
 /* For standard target */
 #define XT_RETURN (-NF_REPEAT - 1)
 
-#define XT_ALIGN(s) (((s) + (__alignof__(void *)-1)) & ~(__alignof__(void *)-1))
+#define XT_ALIGN(s) (((s) + (__alignof__(u_int64_t)-1)) & ~(__alignof__(u_int64_t)-1))
 
 /* Standard return verdict, or do jump. */
 #define XT_STANDARD_TARGET ""