compile error 2.4.19 linux/arch/kernel/traps.c

Kermit Tensmeyer (kermit.tensmeyer.nospam@verizon.net)
Mon, 11 Nov 2002 22:54:22 -0600


I found a compile time error, not a bug per se

2.4.19 source as delivered in suse 8.1

inside the code is an ifdef'ed section that depends on
either DPROBES_CORE being defined or KDB being defined.

Somehow the first time, I had KDB as undefined, and DPROBES_CORE
set. The make process generated a compile error because the function
'kdb' had not been defined.
It may well be the case that there is a simple fix (but I am unaware of
other consequences) that the logical 'or' of the two conditions should
be replaced by a logical 'and' of the conditions.

The lines under consideration are in the range of 640-650.

After I fixed the configuration (make xconfig), it was a 'clean' compile.
I was able to recreate the configuration error by selecting the last
menu from the main menu form and set the first menu line to 'Y'
and not setting any other option. I checked the config file and
in fact CONFIG_KDB was undef and CONFIG_DPROBES_CORE
was set to '1'. In the presentation menu, the DPROBES_CORE entry
had been 'grayed' out, but the code set the value anyway.

I checked the code, and when the entire option page had
been deselected all the configuration options including KDB
and DPROBES_CORE had been undefined.

as an aside, I thought I read that (at an IBM site for the
DPROBES_CORE project), that code had been intended
for architectures other than i386.
These set of modification did not exist (that I saw) (i could be
wrong about this..) in the traps.c code in the 2.4.17 code
set. This appears to have been a recent change, and may
not have been the subject of a code walk thru...

-
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/