* 2.4.0-Prerelease :smp_num_cpus undefined while compiling without smp for Athlon
@ 2001-01-04 4:04 François Isabelle
0 siblings, 0 replies; 2+ messages in thread
From: François Isabelle @ 2001-01-04 4:04 UTC (permalink / raw)
To: linux-kernel
in smp.h macro
#define smp_num_cpus
etc...
have no effect on the kernel_stat.h file .
if might be undefined or declared elsewhere as an int or such...I added
#define smp_test_num_cpus
and replaced the occurence in kernel_stat.h and it worked ok
and tried to find where the smp_num_cpus define was getting screwed...
no success.
this have the effect of unbuildable kernel with options: smp off and
athlon on, i don't know about other problematic configurations.
I have gcc version 2.96
and make 3.78.1
-
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.4.0-Prerelease :smp_num_cpus undefined while compiling without smp for Athlon
@ 2001-01-04 10:37 Manfred
0 siblings, 0 replies; 2+ messages in thread
From: Manfred @ 2001-01-04 10:37 UTC (permalink / raw)
To: isabellf, linux-kernel
Look at include/linux/smp.h: on SMP, it includes <asm/smp.h>, on UP it
contains a
#define smp_num_cpus 1
I assume that someone directly includes <asm/smp.h>.
Try to add a
#ifndef __LINUX_SMP_H
#error Found it!
#endif
to the beginning of <asm-alpha/smp.h>
--
Manfred
-
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-04 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-04 4:04 2.4.0-Prerelease :smp_num_cpus undefined while compiling without smp for Athlon François Isabelle
2001-01-04 10:37 Manfred
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome