[NET]: netdevice.h: be'ify packet_type
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 23 May 2005 20:09:19 +0000 (13:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2005 20:09:19 +0000 (13:09 -0700)
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 <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index ac11d73be4ce87d163f3bf0aedf0438e30f89f1c..b25bd02720d3010cbdd692cc9720ddb8faf3022d 100644 (file)
@@ -503,7 +503,7 @@ static inline void *netdev_priv(struct net_device *dev)
 #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 *);