Skip to contentSkip to conversation

reiserfs: fix gfp flags type

PATCH New Randy.Dunlap 1 participant 1 message Oct 5, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reiserfs: fix gfp flags type

From: Randy Dunlap <[email protected]>

Fix nocast sparse warnings in reiserfs:
fs/reiserfs/fix_node.c:2030:21: warning: implicit cast to nocast type

---

 fs/reiserfs/fix_node.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
fs/reiserfs/fix_node.c renamed from fs/reiserfs/fix_node.c~reiser_gfpmask +2 -1
diff -Naurp linux-2614-rc2-git6/fs/reiserfs/fix_node.c~reiser_gfpmask linux-2614-rc2-git6/fs/reiserfs/fix_node.c
@@ -2022,7 +2022,8 @@ static int get_neighbors(struct tree_bal
 }
 
 #ifdef CONFIG_REISERFS_CHECK
-void *reiserfs_kmalloc(size_t size, int flags, struct super_block *s)
+void *reiserfs_kmalloc(size_t size, unsigned int __nocast flags,
+			struct super_block *s)
 {
 	void *vp;
 	static size_t malloced;

---

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