netdevice.h: be'ify packet_type
Subsystems (2)
PATCH 1/1 netdevice.h: be'ify packet_type
Everybody does
struct packet_type foo_packet_type = {
.type = __constant_htons(ETH_P_FOO);
};5 introduced warnings will be properly fixed later.
Signed-off-by Alexey Dobriyan <[email protected]>
include/linux/netdevice.h +1 -1
@@ -503,7 +503,7 @@ static inline void *netdev_priv(struct n#define SET_NETDEV_DEV (net, pdev) ((net)->class_dev.dev = (pdev))struct packet_type { -unsigned short type;/* This is really htons(ether_type). */ +__be16 type;/* This is really htons(ether_type). */ struct net_device *dev;/* NULL is wildcarded here */ int (*func) (struct sk_buff *,struct net_device *,struct packet_type *);
David S. Miller
maintainerFrom: Alexey Dobriyan <[email protected]>
Date: Sat, 21 May 2005 19:40:59 +0400
Quoted 9 lines
Everybody does
struct packet_type foo_packet_type = { .type = __constant_htons(ETH_P_FOO); };5 introduced warnings will be properly fixed later.
Signed-off-by Alexey Dobriyan <[email protected]>
Looks great, patch applied.
Thanks.