]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[CONNECTOR]: fix sparse gfp nocast warnings
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 5 Oct 2005 05:41:16 +0000 (22:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2005 05:41:16 +0000 (22:41 -0700)
Fix implicit nocast warnings in connector code:
drivers/connector/connector.c:102:24: warning: implicit cast to nocast type
drivers/connector/connector.c:114:45: warning: implicit cast to nocast type

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/connector.c
include/linux/connector.h

index bb0b3a8de14bde88adf870f4bea29e5c6e90f6bd..1422285d537c59e20df6d1fe8273c3b1e5afc960 100644 (file)
@@ -69,7 +69,8 @@ int cn_already_initialized = 0;
  * a new message.
  *
  */
-int cn_netlink_send(struct cn_msg *msg, u32 __group, int gfp_mask)
+int cn_netlink_send(struct cn_msg *msg, u32 __group,
+                   unsigned int __nocast gfp_mask)
 {
        struct cn_callback_entry *__cbq;
        unsigned int size;
index 86d4b0a81713733bb1cbb137d6dd2861ddd58623..96582c9911ac225e8523aba9dc9cc4e205c4f1b7 100644 (file)
@@ -149,7 +149,7 @@ struct cn_dev {
 
 int cn_add_callback(struct cb_id *, char *, void (*callback) (void *));
 void cn_del_callback(struct cb_id *);
-int cn_netlink_send(struct cn_msg *, u32, int);
+int cn_netlink_send(struct cn_msg *, u32, unsigned int __nocast);
 
 int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(void *));
 void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id);