2.6.x kernels & PCI-to-PCMCIA bridges [again]
Jar
jar at pcuf.fi
Sat Jun 19 06:14:07 EDT 2004
> I did, and I've been over it a few times last week end, but then got
> distracted, sorry.
>
> Essentially, I've:
> - corrected the formatting
> - removed extraneous white space
> - removed useless "card_state" variable (it was only ever set to 1 and
> 3, and only ever tested to be 0. IOW, the test could never be true.)
Excellent !
But this code doesn't compile well. The Komuro's 31.5.2004 version
compiles without errors/warnings.
[root at gw1 pd6729.final]# make
Copying files: cirrus.h,i82365.h from /usr/src/linux/drivers/pcmcia/
make -C /usr/src/linux SUBDIRS=/u1/src/pd6729.final/module modules \
MODVERDIR=/u1/src/pd6729.final/module modules
make[1]: Entering directory `/usr/src/linux-2.6.6-1.435'
LD /u1/src/pd6729.final/module/built-in.o
CC [M] /u1/src/pd6729.final/module/pd6729.o
/u1/src/pd6729.final/module/pd6729.c: In function `indirect_read16':
/u1/src/pd6729.final/module/pd6729.c:66: error: `reg' undeclared (first
use in this function)
/u1/src/pd6729.final/module/pd6729.c:66: error: (Each undeclared
identifier is reported only once
/u1/src/pd6729.final/module/pd6729.c:66: error: for each function it
appears in.)
/u1/src/pd6729.final/module/pd6729.c: In function `pd6729_get_socket':
/u1/src/pd6729.final/module/pd6729.c:322: error: structure has no member
named `dev'
/u1/src/pd6729.final/module/pd6729.c: At top level:
/u1/src/pd6729.final/module/pd6729.c:611: warning: type defaults to `int'
in declaration of `structpci_device_id'
/u1/src/pd6729.final/module/pd6729.c:611: error: syntax error before '*'
token
/u1/src/pd6729.final/module/pd6729.c:612: warning: function declaration
isn't a prototype
/u1/src/pd6729.final/module/pd6729.c: In function `pd6729_pci_probe':
/u1/src/pd6729.final/module/pd6729.c:633: error: `dev' undeclared (first
use in this function)
make[2]: *** [/u1/src/pd6729.final/module/pd6729.o] Error 1
make[1]: *** [_module_/u1/src/pd6729.final/module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.6-1.435'
make: *** [pd6729.o] Error 2
--
Best Regards, Jar
More information about the linux-pcmcia
mailing list