[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1403122040360.18314@blackhole.kfki.hu>
Date: Wed, 12 Mar 2014 20:41:34 +0100 (CET)
From: Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>
To: Joe Perches <joe@...ches.com>
cc: netdev@...r.kernel.org, Pablo Neira Ayuso <pablo@...filter.org>,
Patrick McHardy <kaber@...sh.net>,
"David S. Miller" <davem@...emloft.net>,
netfilter-devel@...r.kernel.org, netfilter@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 5/6] netfilter: Convert uses of __constant_<foo>
to <foo>
On Wed, 12 Mar 2014, Joe Perches wrote:
> The use of __constant_<foo> has been unnecessary for quite awhile now.
>
> Make these uses consistent with the rest of the kernel.
>
> Signed-off-by: Joe Perches <joe@...ches.com>
Acked-by: Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>
> ---
> net/netfilter/ipset/pfxlen.c | 4 ++--
> net/netfilter/xt_AUDIT.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/net/netfilter/ipset/pfxlen.c b/net/netfilter/ipset/pfxlen.c
> index 4f29fa9..04d15fd 100644
> --- a/net/netfilter/ipset/pfxlen.c
> +++ b/net/netfilter/ipset/pfxlen.c
> @@ -7,8 +7,8 @@
>
> #define E(a, b, c, d) \
> {.ip6 = { \
> - __constant_htonl(a), __constant_htonl(b), \
> - __constant_htonl(c), __constant_htonl(d), \
> + htonl(a), htonl(b), \
> + htonl(c), htonl(d), \
> } }
>
> /*
> diff --git a/net/netfilter/xt_AUDIT.c b/net/netfilter/xt_AUDIT.c
> index 3228d7f..4973cbd 100644
> --- a/net/netfilter/xt_AUDIT.c
> +++ b/net/netfilter/xt_AUDIT.c
> @@ -146,11 +146,11 @@ audit_tg(struct sk_buff *skb, const struct xt_action_param *par)
>
> if (par->family == NFPROTO_BRIDGE) {
> switch (eth_hdr(skb)->h_proto) {
> - case __constant_htons(ETH_P_IP):
> + case htons(ETH_P_IP):
> audit_ip4(ab, skb);
> break;
>
> - case __constant_htons(ETH_P_IPV6):
> + case htons(ETH_P_IPV6):
> audit_ip6(ab, skb);
> break;
> }
> --
> 1.8.1.2.459.gbcd45b4.dirty
>
-
E-mail : kadlec@...ckhole.kfki.hu, kadlecsik.jozsef@...ner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists