PnP fix for latest BK Kernel
Subsystems (2)
PATCH 1/1 PnP fix for latest BK Kernel
Hi.
I need the following to avoid the following errors when trying to build the latest BK-Kernel ...
drivers/built-in.o(.init.text+0x2dfb): In function `isapnp_init':
: undefined reference to isapnp_card_protocol' drivers/built-in.o(.init.text+0x2e04): In function isapnp_init':
: undefined reference to isapnp_card_protocol' drivers/built-in.o(.init.text+0x2e76): In function isapnp_init':
: undefined reference to `isapnp_card_protocol'
The "isapnp_card_protocol" structure was removed in revision 1.25 of core.c, but it's usage was readded in revision 1.27. The command
"bk revtool drivers/pnp/isapnp/core.c"
will show this.
There is also difference between rev 1.25.1.1 and 1.28 with using subsys_initcall() -vs- device_initcall(). I don't know which should be used.
Art Haas
===== drivers/pnp/isapnp/core.c 1.28 vs edited =====
drivers/pnp/isapnp/core.c +1 -1
@@ -1125,7 +1125,7 @@isapnp_build_device_list (); cards =0 ; -protocol_for_each_card (&isapnp_card_protocol,card) { +protocol_for_each_card (&isapnp_protocol,card) { cards++;if (isapnp_verbose) {printk (KERN_INFO "isapnp: Card '%s'\n" , card->name[0 ]?card->name:"Unknown" );
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, Historical Review of Pennsylvania, 1759