Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fix gfp_t annotations for slub

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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Al Viro and committed by
Linus Torvalds
d046943c 8d4bc5b6

+1 -1
+1 -1
include/linux/slub_def.h
··· 160 160 #define SLUB_DMA __GFP_DMA 161 161 #else 162 162 /* Disable DMA functionality */ 163 - #define SLUB_DMA 0 163 + #define SLUB_DMA (__force gfp_t)0 164 164 #endif 165 165 166 166 void *kmem_cache_alloc(struct kmem_cache *, gfp_t);