Skip to contentSkip to conversation

fix PREEMPT_RT compile error on NUMA-Q

PATCH New Paul E. McKenney 1 participant 1 message Sep 30, 2005 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix PREEMPT_RT compile error on NUMA-Q

The following patch fixes a fatal compile-time error on NUMA-Q, and probably on any other NUMA machine, involving kmem_cache_alloc_node()'s "flags" argument.

Signed-off-by <[email protected]>

---

 slab.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
mm/slab.c +1 -1
diff -urpNa -X dontdiff linux-2.6.14-rc2-rt7/mm/slab.c linux-2.6.14-rc2-rt7-NUMA/mm/slab.c
@@ -2400,7 +2400,7 @@ out:
  * and can sleep. And it will allocate memory on the given node, which
  * can improve the performance for cpu bound structures.
  */
-void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid)
+void *kmem_cache_alloc_node(kmem_cache_t *cachep, unsigned int __nocast flags, int nodeid)
 {
 	int loop;
 	void *objp;