Skip to contentSkip to conversation

fix gfp_t annotations for slub

PATCH In review Al Viro 2 participants 2 messages Jul 20, 2007 – Jul 23, 2007

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 fix gfp_t annotations for slub

Since we have use like ~SLUB_DMA, we ought to have the type
set right in both cases.

---

include/linux/slub_def.h +1 -1
index 07f7e4c..124270d 100644
@@ -160,7 +160,7 @@ static inline struct kmem_cache *kmalloc_slab(size_t size)
 #define SLUB_DMA __GFP_DMA
 #else
 /* Disable DMA functionality */
-#define SLUB_DMA 0
+#define SLUB_DMA (__force gfp_t)0
 #endif
 
 void *kmem_cache_alloc(struct kmem_cache *, gfp_t);