Skip to contentSkip to conversation

bluetooth.h: fix sparse warnings (__nocast type)

PATCH New [email protected] 1 participant 1 message Jul 7, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 bluetooth.h: fix sparse warnings (__nocast type)

From: Victor Fusco <[email protected]>

Fix the sparse warning "implicit cast to nocast type"

File/Subsystem: include/net/bluetooth/bluetooth.h

---
 bluetooth.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
include/net/bluetooth/bluetooth.h +2 -1
Index: quilt/include/net/bluetooth/bluetooth.h
===================================================================
@@ -141,7 +141,8 @@ struct bt_skb_cb {
 };
 #define bt_cb(skb) ((struct bt_skb_cb *)(skb->cb)) 
 
-static inline struct sk_buff *bt_skb_alloc(unsigned int len, int how)
+static inline struct sk_buff *bt_skb_alloc(unsigned int len,
+                                           unsigned int __nocast how)
 {
 	struct sk_buff *skb;
 

--