Thread (14 messages) flat view 14 messages, 3 authors, 2015-05-06
STALE4118d

[RFC PATCH net-next 7/8] skbuff: Convert skb_push to return void *

From: Joe Perches <joe@perches.com>
Date: 2015-05-04 20:06:23
Subsystem: networking [general], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

There are many casts that could be removed by this conversion.
Start it.

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/linux/skbuff.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 5941fde..1530487 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1689,7 +1689,7 @@ static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len)
 	return tmp;
 }
 
-unsigned char *skb_push(struct sk_buff *skb, unsigned int len);
+void *skb_push(struct sk_buff *skb, unsigned int len);
 void *skb_push_uchar(struct sk_buff *skb, unsigned char uc);
 static inline unsigned char *__skb_push(struct sk_buff *skb, unsigned int len)
 {
-- 
2.1.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help