[PATCH] fix PREEMPT_RT compile error on NUMA-Q

From: Paul E. McKenney (paulmck_at_us.ibm.com)
Date: 09/30/05

  • Next message: Martin J. Bligh: "Re: [PATCH] earlier allocation of order 0 pages from pcp in __alloc_pages"
    Date:	Thu, 29 Sep 2005 18:26:22 -0700
    To: linux-kernel@vger.kernel.org
    
    

    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: <paulmck@us.ibm.com>

    ---
     slab.c |    2 +-
     1 files changed, 1 insertion(+), 1 deletion(-)
    diff -urpNa -X dontdiff linux-2.6.14-rc2-rt7/mm/slab.c linux-2.6.14-rc2-rt7-NUMA/mm/slab.c
    --- linux-2.6.14-rc2-rt7/mm/slab.c	2005-09-29 13:57:16.000000000 -0700
    +++ linux-2.6.14-rc2-rt7-NUMA/mm/slab.c	2005-09-29 17:40:28.000000000 -0700
    @@ -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;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Martin J. Bligh: "Re: [PATCH] earlier allocation of order 0 pages from pcp in __alloc_pages"

    Relevant Pages

    • [PATCH] minor clean up and update to tlclk.c for 2.6.15-rc2-git2
      ... All sysfs interfaces are integers in hex format, i.e echo 99> refalign ... unsigned long flags; ... sscanf(buf, "%lX", &tmp); ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: Race condition in ptrace
      ... could be the minimal fix for 2.6.11. ... rq = task_rq_lock(p, &flags); /* Must be off runqueue entirely, not preempted. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [PATCH] Stop mprotect() changing MAP_SHARED and other cleanup
      ... Uses that function in mprotect() the same as mmap. ... -calc_vm_flags(unsigned long prot, unsigned long flags) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Mem: and Swap: lines in /proc/meminfo
      ... Yeah. ... > ready to be used but just needs some flags updated? ... > possibly useful data, ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH -mm 2/10] unshare system call -v5 : system call handler function
      ... clone system call, checks constraints on each of the flags and invokes ... corresponding unshare functions to disassociate respective process ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)