]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xtables: make XT_ALIGN() usable in exported headers by exporting __ALIGN_K...
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 13 Apr 2010 09:21:46 +0000 (11:21 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 13 Apr 2010 09:21:46 +0000 (11:21 +0200)
commit73c8569c12631f70614824dd99e7c1b49e4cfd69
tree56a67498300927fa0f23bcb3771808b960b4c125
parent9dc33606eb90b6facee094a9de1e37330e7bfa73
netfilter: xtables: make XT_ALIGN() usable in exported headers by exporting __ALIGN_KERNEL()

XT_ALIGN() was rewritten through ALIGN() by commit 01e565be520beb004b251432c9db1f1c1fb55e04
"netfilter: xtables: symmetric COMPAT_XT_ALIGN definition".
ALIGN() is not exported in userspace headers, which created compile problem for tc(8)
and will create problem for iptables(8).

We can't export generic looking name ALIGN() but we can export less generic
__ALIGN_KERNEL() (suggested by Ben Hutchings).
Google knows nothing about __ALIGN_KERNEL().

COMPAT_XT_ALIGN() changed for symmetry.

Reported-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/kernel.h
include/linux/netfilter/x_tables.h