|
@@ -2743,8 +2743,9 @@ __wsum __skb_checksum(const struct sk_buff *skb, int offset, int len,
|
|
|
__wsum skb_checksum(const struct sk_buff *skb, int offset, int len,
|
|
|
__wsum csum);
|
|
|
|
|
|
-static inline void *__skb_header_pointer(const struct sk_buff *skb, int offset,
|
|
|
- int len, void *data, int hlen, void *buffer)
|
|
|
+static inline void * __must_check
|
|
|
+__skb_header_pointer(const struct sk_buff *skb, int offset,
|
|
|
+ int len, void *data, int hlen, void *buffer)
|
|
|
{
|
|
|
if (hlen - offset >= len)
|
|
|
return data + offset;
|
|
@@ -2756,8 +2757,8 @@ static inline void *__skb_header_pointer(const struct sk_buff *skb, int offset,
|
|
|
return buffer;
|
|
|
}
|
|
|
|
|
|
-static inline void *skb_header_pointer(const struct sk_buff *skb, int offset,
|
|
|
- int len, void *buffer)
|
|
|
+static inline void * __must_check
|
|
|
+skb_header_pointer(const struct sk_buff *skb, int offset, int len, void *buffer)
|
|
|
{
|
|
|
return __skb_header_pointer(skb, offset, len, skb->data,
|
|
|
skb_headlen(skb), buffer);
|