Re: warning: `cpu_data' redefined

Michael Elizabeth Chastain (mec@shout.net)
Wed, 28 Jan 1998 21:15:23 -0600


Hi James,

linux-kernel has had this discussion recently so this is all I'm going
to say about this in public. I'll be glad to engage in private
correspondence though.

james> Having CONFIG_SMP (as a "real" config option) would fix this (I think)
james> -- sigh!

No, I don't think so. The key part here is 'failing to run make dep'.
Changing __SMP__ in the Makefile, or changing CONFIG_SMP in the
configuration process, would give the same result.

mec> I have no patch for this one. I would very much like to have a brand
mec> new CONFIG_MODVERSIONS facility before 2.2.0 though. Communicating
mec> type signatures via .ver files is fucked up from the word go.

james> And how would you do it? (From a "vauge plan" standpoint, not from a
james> "patches that acatually work prefered" stadnpoint <G>.)

Vague plan #1: build the .ver files explicitly at 'make dep' time,
as they are built now, but do not ever rebuild them during
'make vmlinux'. This doesn't solve this problem but at least it
gets rid of a lot of useless hairball dependencies which are supposed
to solve problems like this but DON'T.

Vague plan #2: separate compilation. No more .ver files. When foo.o
is compiled, its external symbols get type tags from type information
in foo.c and the files that foo.c includes, not from bar.c which is
over in some other directory!

Regards,

Michael Chastain
<mailto:mec@shout.net>
"love without fear"