Re: Prism2-2002-05-19 Compilation Errors (unknown fields)


From: Pavel Roskin (proski_at_gnu.org)
Date: 2002-06-05 18:58:07 UTC



Hello!

> I'm having problems installing the PLX drivers for my RedHat systems
> running kernel 2.4.2-2. I've also tried on a different RedHat system
> running kernel 2.4.9-31 with no luck. The same compilation errors occur
> in both instances. They are as follows:

Everything is fine with modern kernels (2.4.19-preX). Unfortunately, PCI support has changed significantly during the "stable" 2.4.x series.

> driver/modules/hostap_plx.c:327: warning: implicit declaration of
> function `pci_disable_device'

Perhars that function didn't exist back then.

> driver/modules/hostap_plx.c: At top level:
> driver/modules/hostap_plx.c:360: unknown field `save_state' specified
in initializer

I remember the flames in the kernel list when it was added. Perhaps the best solution would be to put an ifdef with kernel version around those fields.

> [root_at_obsession Prism2-2002-05-16]# depmod -e
> depmod: *** Unresolved symbols in /lib/modules/2.4.2-2/net/hostap_plx.o
> depmod: pci_disable_device

Remove all calls to pci_disable_device. Try loading and unloading the driver to make sure it won't crash on unload when you don't expect it.

-- 
Regards,
Pavel Roskin


This archive was generated by hypermail 2.1.4.