Re: [PATCH net-next] pktgen: remove one sparse error

2015-05-25 Thread David Miller
From: Eric Dumazet Date: Mon, 25 May 2015 16:06:37 -0700 > From: Eric Dumazet > > net/core/pktgen.c:2672:43: warning: incorrect type in assignment (different > base types) > net/core/pktgen.c:2672:43:expected unsigned short [unsigned] [short] > [usertype] > net/core/pktgen.c:2672:43:

[PATCH net-next] pktgen: remove one sparse error

2015-05-25 Thread Eric Dumazet
From: Eric Dumazet net/core/pktgen.c:2672:43: warning: incorrect type in assignment (different base types) net/core/pktgen.c:2672:43:expected unsigned short [unsigned] [short] [usertype] net/core/pktgen.c:2672:43:got restricted __be16 [usertype] protocol Let's use proper struct ethhdr