2002-01-25 04:19:56

by Miles Lane

[permalink] [raw]
Subject: 2.5.3-pre5 -- "pcilynx.c:638: invalid operands to binary &" and "pcilynx.c:650: `cards' undeclared"


ld -m elf_i386 -r -o ieee1394.o ieee1394_core.o ieee1394_transactions.o
hosts.o highlevel.o csr.o nodemgr.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -c -o
pcilynx.o pcilynx.c
pcilynx.c: In function `mem_open':
pcilynx.c:638: invalid operands to binary &
pcilynx.c:650: `num_of_cards' undeclared (first use in this function)
pcilynx.c:650: (Each undeclared identifier is reported only once
pcilynx.c:650: for each function it appears in.)
pcilynx.c:650: `cards' undeclared (first use in this function)
pcilynx.c: In function `aux_poll':
pcilynx.c:721: `cards' undeclared (first use in this function)



2002-01-25 09:37:51

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: 2.5.3-pre5 -- "pcilynx.c:638: invalid operands to binary &" and "pcilynx.c:650: `cards' undeclared"

On 24 Jan 2002 20:18:26 -0800
Miles Lane <[email protected]> wrote:

>
> ld -m elf_i386 -r -o ieee1394.o ieee1394_core.o ieee1394_transactions.o
> hosts.o highlevel.o csr.o nodemgr.o
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -c -o
> pcilynx.o pcilynx.c
> pcilynx.c: In function `mem_open':
> pcilynx.c:638: invalid operands to binary &
> pcilynx.c:650: `num_of_cards' undeclared (first use in this function)
> pcilynx.c:650: (Each undeclared identifier is reported only once
> pcilynx.c:650: for each function it appears in.)
> pcilynx.c:650: `cards' undeclared (first use in this function)
> pcilynx.c: In function `aux_poll':
> pcilynx.c:721: `cards' undeclared (first use in this function)

Have you tried this patch?
Please apply and check if errors occure again.
And of course tell us about process.
Thanks.

btw, Dave Jones has fixed it in his tree, try to look into it.


Evgeniy Polyakov ( s0mbre ).


Attachments:
ieee1394_pcilynx.patch (802.00 B)

2002-01-25 17:32:18

by Miles Lane

[permalink] [raw]
Subject: Re: 2.5.3-pre5 -- "pcilynx.c:638: invalid operands to binary &" and "pcilynx.c:650: `cards' undeclared"

Hi Evgeniy,

I get this error with the patch applied:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -c -o
pcilynx.o pcilynx.c
pcilynx.c: In function `mem_open':
pcilynx.c:644: invalid operands to binary &
pcilynx.c: In function `add_card':
pcilynx.c:1520: incompatible types in assignment
make[2]: *** [pcilynx.o] Error 1

Thanks,
Miles


2002-01-26 01:21:27

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: 2.5.3-pre5 -- "pcilynx.c:638: invalid operands to binary &" and "pcilynx.c:650: `cards' undeclared"

On 25 Jan 2002 09:30:50 -0800
Miles Lane <[email protected]> wrote:

> Hi Evgeniy,
>
> I get this error with the patch applied:
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -c -o
> pcilynx.o pcilynx.c
> pcilynx.c: In function `mem_open':
> pcilynx.c:644: invalid operands to binary &
> pcilynx.c: In function `add_card':
> pcilynx.c:1520: incompatible types in assignment
> make[2]: *** [pcilynx.o] Error 1

I hope this patch will hel you.
Please apply and send feedback.
Good luck.
BTW, it probably won't work in 644 string, and if it will happen, than
Dave Jones tree is also broken.

P.S. It will not probably be applied, so enter
./drivers/ieee1394/pcilynx.c by hands. Sorry.

>
> Thanks,
> Miles
>

Evgeniy Polyakov ( s0mbre ).

2002-01-26 01:26:37

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: 2.5.3-pre5 -- "pcilynx.c:638: invalid operands to binary &" and "pcilynx.c:650: `cards' undeclared"


Ooops, forgot to attach apatch, sorry.

> I hope this patch will hel you.
> Please apply and send feedback.
> Good luck.
> BTW, it probably won't work in 644 string, and if it will happen, than
> Dave Jones tree is also broken.
>
> P.S. It will not probably be applied, so enter
> ./drivers/ieee1394/pcilynx.c by hands. Sorry.

> > Thanks,
> > Miles

Evgeniy Polyakov ( s0mbre ).


Attachments:
ieee1394_pcilynx.patch (613.00 B)