net: replace uses of __constant_{endian}
Base versions handle constant folding now. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ee437770c4
commit
09640e6365
@@ -100,8 +100,8 @@
|
||||
#define CONF_NAMESERVERS_MAX 3 /* Maximum number of nameservers
|
||||
- '3' from resolv.h */
|
||||
|
||||
#define NONE __constant_htonl(INADDR_NONE)
|
||||
#define ANY __constant_htonl(INADDR_ANY)
|
||||
#define NONE cpu_to_be32(INADDR_NONE)
|
||||
#define ANY cpu_to_be32(INADDR_ANY)
|
||||
|
||||
/*
|
||||
* Public IP configuration
|
||||
@@ -406,7 +406,7 @@ static int __init ic_defaults(void)
|
||||
static int ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev);
|
||||
|
||||
static struct packet_type rarp_packet_type __initdata = {
|
||||
.type = __constant_htons(ETH_P_RARP),
|
||||
.type = cpu_to_be16(ETH_P_RARP),
|
||||
.func = ic_rarp_recv,
|
||||
};
|
||||
|
||||
@@ -568,7 +568,7 @@ struct bootp_pkt { /* BOOTP packet format */
|
||||
static int ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev);
|
||||
|
||||
static struct packet_type bootp_packet_type __initdata = {
|
||||
.type = __constant_htons(ETH_P_IP),
|
||||
.type = cpu_to_be16(ETH_P_IP),
|
||||
.func = ic_bootp_recv,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user