Skip to contentSkip to conversation

kobject: fix gfp flags type

PATCH New Randy.Dunlap 1 participant 1 message Oct 3, 2005

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

PATCH 8/13 kobject: fix gfp flags type

From: Randy Dunlap <[email protected]>

Fix implicit nocast warnings in kobject_uevent code:
lib/kobject_uevent.c:78:37: warning: implicit cast to nocast type lib/kobject_uevent.c:97:51: warning: implicit cast to nocast type lib/kobject_uevent.c:120:27: warning: implicit cast to nocast type

---

 lib/kobject_uevent.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
lib/kobject_uevent.c renamed from lib/kobject_uevent.c~kobject_gfpmask +3 -3
diff -Naurp linux-2614-rc2-git6/lib/kobject_uevent.c~kobject_gfpmask linux-2614-rc2-git6/lib/kobject_uevent.c
@@ -62,7 +62,7 @@ static struct sock *uevent_sock;
  * @gfp_mask:
  */
 static int send_uevent(const char *signal, const char *obj,
-		       char **envp, int gfp_mask)
+		       char **envp, unsigned int gfp_mask)
 {
 	struct sk_buff *skb;
 	char *pos;
@@ -98,7 +98,7 @@ static int send_uevent(const char *signa
 }
 
 static int do_kobject_uevent(struct kobject *kobj, enum kobject_action action, 
-			     struct attribute *attr, int gfp_mask)
+			     struct attribute *attr, unsigned int gfp_mask)
 {
 	char *path;
 	char *attrpath;
@@ -170,7 +170,7 @@ postcore_initcall(kobject_uevent_init);
 
 #else
 static inline int send_uevent(const char *signal, const char *obj,
-			      char **envp, int gfp_mask)
+			      char **envp, unsigned int gfp_mask)
 {
 	return 0;
 }

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors