Re: 2.3.38 breaks isapnp as module

From: Martin Mares (mj@suse.cz)
Date: Sun Jan 09 2000 - 17:12:40 EST


Hello,

> quirks.c doesn't include any code to be compiled as module.
> result is:
>
> # insmod quirks
> Using /lib/modules/2.3.38/misc/quirks.o
> /lib/modules/2.3.38/misc/quirks.o: couldn't find the kernel version the module was compiled for

   pre-2.3.39-2 together with this patch should fix it:

--- drivers/pnp/isapnp.c.mj Sun Jan 9 11:05:25 2000
+++ drivers/pnp/isapnp.c Sun Jan 9 11:05:25 2000
@@ -982,11 +982,11 @@
                 card->device = (header[3] << 8) | header[2];
                 card->serial = (header[7] << 24) | (header[6] << 16) | (header[5] << 8) | header[4];
                 isapnp_checksum_value = 0x00;
+ INIT_LIST_HEAD(&card->devices);
                 isapnp_parse_resource_map(card);
                 if (isapnp_checksum_value != 0x00)
                         printk("isapnp: checksum for device %i is not valid (0x%x)\n", csn, isapnp_checksum_value);
                 card->checksum = isapnp_checksum_value;
- INIT_LIST_HEAD(&card->devices);
 
                 list_add_tail(&card->node, &isapnp_cards);
         }

                                Have a nice fortnight

-- 
Martin `MJ' Mares <mj@ucw.cz> <mj@suse.cz> http://atrey.karlin.mff.cuni.cz/~mj/
"Who is General Failure and why is he reading my disk?"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:15 EST