* [PATCH] fix gfp_t annotations for slub
@ 2007-07-20 15:18 Al Viro
2007-07-23 21:07 ` Christoph Lameter
0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2007-07-20 15:18 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, clameter
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>
---
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index 07f7e4c..124270d 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix gfp_t annotations for slub
2007-07-20 15:18 [PATCH] fix gfp_t annotations for slub Al Viro
@ 2007-07-23 21:07 ` Christoph Lameter
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2007-07-23 21:07 UTC (permalink / raw)
To: Al Viro; +Cc: Linus Torvalds, linux-kernel
On Fri, 20 Jul 2007 16:18:06 +0100
Al Viro <viro@ftp.linux.org.uk> wrote:
> Since we have use like ~SLUB_DMA, we ought to have the type
> set right in both cases.
Acked-by: Christoph Lameter <clameter@sgi.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-23 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20 15:18 [PATCH] fix gfp_t annotations for slub Al Viro
2007-07-23 21:07 ` Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox