lkml.org 
[lkml]   [2004]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    SubjectRe: 2.6.8.1-mm3 (build failture w/ CONFIG_NUMA)
    Date
    I had tried to compile with CONFIG_NUMA and got this error:

    CC kernel/sched.o
    kernel/sched.c: In function `sched_domain_node_span':
    kernel/sched.c:4001: error: invalid lvalue in unary `&'
    make[1]: *** [kernel/sched.o] Error 1
    make: *** [kernel] Error 2

    Below patch fixes this.


    --- linux-2.6.8.1-mm3/kernel/sched.c.orig 2004-08-21 00:32:26.000000000 +0900
    +++ linux-2.6.8.1-mm3/kernel/sched.c 2004-08-21 00:36:41.000000000 +0900
    @@ -3998,7 +3998,10 @@ cpumask_t __init sched_domain_node_span(

    for (i = 0; i < size; i++) {
    int next_node = find_next_best_node(node, used_nodes);
    - cpus_or(span, span, node_to_cpumask(next_node));
    + cpumask_t nodemask;
    +
    + nodemask = node_to_cpumask(next_node);
    + cpus_or(span, span, nodemask);
    }

    return span;
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:05    [W:0.029 / U:0.188 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site