2002-01-23 01:49:39

by Miles Lane

[permalink] [raw]
Subject: 2.5.3-pre3 (resending with .config info) -- pcilynx.c:638: In function `mem_open': invalid operands to binary &

Oops. Forgot to include the relevant .config info last time.
Here it is.

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)
make[2]: *** [pcilynx.o] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/ieee1394'

CONFIG_IEEE1394=m
CONFIG_IEEE1394_PCILYNX=m
CONFIG_IEEE1394_PCILYNX_LOCALRAM=y
CONFIG_IEEE1394_PCILYNX_PORTS=y



2002-01-23 04:10:14

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: 2.5.3-pre3 (resending with .config info) -- pcilynx.c:638: In function `mem_open': invalid operands to binary &

On 22 Jan 2002 17:48:17 -0800
Miles Lane <[email protected]> wrote:

> Oops. Forgot to include the relevant .config info last time.
> Here it is.
>
> 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)
> make[2]: *** [pcilynx.o] Error 1
> make[2]: Leaving directory `/usr/src/linux/drivers/ieee1394'
>
> CONFIG_IEEE1394=m
> CONFIG_IEEE1394_PCILYNX=m
> CONFIG_IEEE1394_PCILYNX_LOCALRAM=y
> CONFIG_IEEE1394_PCILYNX_PORTS=y

Try this patch, but it is given WITHOUT ANY WARRANTY.
I even cann't test to compile it.
And there is not ieee card here.
So, it was wrote with luck and common sense.
I hope it will help you.

P.S. Here is also patch for video1394 and remap_page_range.

P.P.S. If this is full bullshit... then i apologize and go learning Linux
kernel again...

Evgeniy Polyakov ( s0mbre ).


Attachments:
ieee1394_video1394.patch (1.25 kB)
ieee1394_pcilynx.patch (802.00 B)
Download all attachments

2002-01-23 04:33:50

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: 2.5.3-pre3 (resending with .config info) -- pcilynx.c:638: In function `mem_open': invalid operands to binary &

BTW, it is against 2.5.2-pre11...
But this errors( except binary &) are there too.

And in 2.4.17 it seems not to be broken.

Evgeniy Polyakov ( s0mbre ).