smp_num_cpus undeclared compile error in 2.4.0-test8

From: Hao Xu (xuhao@cs.pdx.edu)
Date: Sat Sep 16 2000 - 22:03:48 EDT

  • Next message: Daniel Stone: "[BUG] That bloody /usr/local busy back again"

    Hi,

    I found a bug on the 2.4.0-test8 release:

    I was not able to build linux-2.4.0-test8 on my dual PIII box if I did NOT choose the "smp support".

    Here is the compile error message:

    /usr/src/linux/include/linux/kernel_stat.h:48: `smp_num_cpus' undeclared (first use in this function)
    /usr/src/linux/include/linux/kernel_stat.h:48: (Each undeclared identifier is reported only once
    /usr/src/linux/include/linux/kernel_stat.h:48: for each function it appears in.)

    I think the simple fix is to check "#ifdef CONFIG_SMP" in this kstat_irq(int) routine.

    I could compile the code just fine if I choose the "smp support".

    Best regards,

    Hao Xu
    ---------------------------------------------
    Email: xuhao@cs.pdx.edu
    Xu Hao homepage: http://www.cs.pdx.edu/~xuhao
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Sep 16 2000 - 22:06:08 EDT