Fixes to compile pcmcia-cs under Linux 2.5.x

Pavel Roskin proski at
Tue Apr 15 18:41:50 BST 2003

Hi, Dominik!

I posted my patch for ds.h to the list only, but probably I should have
copied to you.

I'm testing your patches now, and our patches slightly intersect.
Both linux/device.h and linux/mod_devicetable.h (added by your patch)
should only be included if __KERNEL__ is defined.  Otherwise, cardmgr
cannot be compiled.

That's what is should be:

#ifdef __KERNEL__
#include <linux/device.h>
#include <linux/mod_devicetable.h>
#include <pcmcia/bulkmem.h>
#include <pcmcia/cs_types.h>

Please fix your patch.  Also it would be nice to see the
pci_remove_behind_bridge() in your patch set.

Pavel Roskin

More information about the linux-pcmcia mailing list