From: Gilles Espinasse <g.esp@free.fr>
To: netdev@vger.kernel.org, shemminger@linux-foundation.org
Cc: Gilles Espinasse <g.esp@free.fr>
Subject: [PATCH] iproute2: fix implicit declaration of function '__ALIGN_KERNEL'
Date: Sun, 10 Jul 2011 17:46:20 +0200 [thread overview]
Message-ID: <1310312780-2323-1-git-send-email-g.esp@free.fr> (raw)
Warning seen with 2.6.32 kernel headers
m_xt.c:85: warning: implicit declaration of function '__ALIGN_KERNEL'
Declaration lines borrowed from iptables-1.4.11.1
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
---
include/linux/netfilter/x_tables.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index 4120970..a6614b0 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -96,6 +96,8 @@ struct _xt_align {
__u64 u64;
};
+#define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
+#define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
#define XT_ALIGN(s) __ALIGN_KERNEL((s), __alignof__(struct _xt_align))
/* Standard return verdict, or do jump. */
--
1.5.6.5
next reply other threads:[~2011-07-10 15:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-10 15:46 Gilles Espinasse [this message]
2011-08-31 17:59 ` [PATCH] iproute2: fix implicit declaration of function '__ALIGN_KERNEL' Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1310312780-2323-1-git-send-email-g.esp@free.fr \
--to=g.esp@free.fr \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).