Commit 205902ecc7bcb2a007ed27bb3518e8f70e5d113e

Authored by Alexey Dobriyan
Committed by David S. Miller
1 parent d8659255c5

[NET]: 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 <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/linux/netdevice.h
... ... @@ -503,7 +503,7 @@
503 503 #define SET_NETDEV_DEV(net, pdev) ((net)->class_dev.dev = (pdev))
504 504  
505 505 struct packet_type {
506   - unsigned short type; /* This is really htons(ether_type). */
  506 + __be16 type; /* This is really htons(ether_type). */
507 507 struct net_device *dev; /* NULL is wildcarded here */
508 508 int (*func) (struct sk_buff *, struct net_device *,
509 509 struct packet_type *);