diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kernel.h | 12 | ||||
-rw-r--r-- | include/linux/netpoll.h | 2 | ||||
-rw-r--r-- | include/linux/skbuff.h | 1 |
3 files changed, 2 insertions, 13 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 914918abfdd1..f81d80f47dcb 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -379,18 +379,6 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
379 | ((unsigned char *)&addr)[3] | 379 | ((unsigned char *)&addr)[3] |
380 | #define NIPQUAD_FMT "%u.%u.%u.%u" | 380 | #define NIPQUAD_FMT "%u.%u.%u.%u" |
381 | 381 | ||
382 | #if defined(__LITTLE_ENDIAN) | ||
383 | #define HIPQUAD(addr) \ | ||
384 | ((unsigned char *)&addr)[3], \ | ||
385 | ((unsigned char *)&addr)[2], \ | ||
386 | ((unsigned char *)&addr)[1], \ | ||
387 | ((unsigned char *)&addr)[0] | ||
388 | #elif defined(__BIG_ENDIAN) | ||
389 | #define HIPQUAD NIPQUAD | ||
390 | #else | ||
391 | #error "Please fix asm/byteorder.h" | ||
392 | #endif /* __LITTLE_ENDIAN */ | ||
393 | |||
394 | /* | 382 | /* |
395 | * min()/max()/clamp() macros that also do | 383 | * min()/max()/clamp() macros that also do |
396 | * strict type-checking.. See the | 384 | * strict type-checking.. See the |
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index de99025f2c5d..2524267210d3 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -18,7 +18,7 @@ struct netpoll { | |||
18 | const char *name; | 18 | const char *name; |
19 | void (*rx_hook)(struct netpoll *, int, char *, int); | 19 | void (*rx_hook)(struct netpoll *, int, char *, int); |
20 | 20 | ||
21 | u32 local_ip, remote_ip; | 21 | __be32 local_ip, remote_ip; |
22 | u16 local_port, remote_port; | 22 | u16 local_port, remote_port; |
23 | u8 remote_mac[ETH_ALEN]; | 23 | u8 remote_mac[ETH_ALEN]; |
24 | }; | 24 | }; |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 55d67300fa10..5fd389162f01 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -168,6 +168,7 @@ struct skb_shared_hwtstamps { | |||
168 | * @software: generate software time stamp | 168 | * @software: generate software time stamp |
169 | * @in_progress: device driver is going to provide | 169 | * @in_progress: device driver is going to provide |
170 | * hardware time stamp | 170 | * hardware time stamp |
171 | * @flags: all shared_tx flags | ||
171 | * | 172 | * |
172 | * These flags are attached to packets as part of the | 173 | * These flags are attached to packets as part of the |
173 | * &skb_shared_info. Use skb_tx() to get a pointer. | 174 | * &skb_shared_info. Use skb_tx() to get a pointer. |