* Error compiling ieee1394/pcilynx.c (2.5.54)
@ 2003-01-16 0:11 Tariq Shureih
2003-01-16 1:57 ` Adrian Bunk
0 siblings, 1 reply; 2+ messages in thread
From: Tariq Shureih @ 2003-01-16 0:11 UTC (permalink / raw)
To: linux-kernel
As part of my work on the Kernel-Janitor project, I am looking at the
use of panic() in driver (char for now).
The pcilynx.c driver will not compile giving the following error.
I enabled I2C bit-bangin options as required by the driver.
Seems that the driver requires porting to 2.5.x since the i2c structures
and implementation has changed in 2.5.x.
Anyone working on this? I can't proceed with my work not having this
compile.
Thanx
-------------
gcc -Wp,-MD,drivers/ieee1394/.iso.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=pentium4
-Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include -DMODULE
-DKBUILD_BASENAME=iso -DKBUILD_MODNAME=ieee1394 -c -o
drivers/ieee1394/iso.o drivers/ieee1394/iso.c
ld -m elf_i386 -r -o drivers/ieee1394/ieee1394.ko
drivers/ieee1394/ieee1394_core.o
drivers/ieee1394/ieee1394_transactions.o drivers/ieee1394/hosts.o
drivers/ieee1394/highlevel.o drivers/ieee1394/csr.o
drivers/ieee1394/nodemgr.o drivers/ieee1394/oui.o drivers/ieee1394/dma.o
drivers/ieee1394/iso.o
gcc -Wp,-MD,drivers/ieee1394/.pcilynx.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=pentium4
-Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include -DMODULE
-DKBUILD_BASENAME=pcilynx -DKBUILD_MODNAME=pcilynx -c -o
drivers/ieee1394/pcilynx.o drivers/ieee1394/pcilynx.c
drivers/ieee1394/pcilynx.c:139: warning: initialization from
incompatible pointer type
drivers/ieee1394/pcilynx.c:140: warning: missing braces around
initializer drivers/ieee1394/pcilynx.c:140: warning: (near
initialization for
`bit_ops.name')
drivers/ieee1394/pcilynx.c:141: warning: initialization makes integer
from pointer without a cast
drivers/ieee1394/pcilynx.c:142: warning: initialization makes integer
from pointer without a cast
drivers/ieee1394/pcilynx.c:143: warning: initialization makes integer
from pointer without a cast
drivers/ieee1394/pcilynx.c:144: warning: initialization makes integer
from pointer without a cast
drivers/ieee1394/pcilynx.c:145: warning: initialization makes integer
from pointer without a cast
drivers/ieee1394/pcilynx.c:145: initializer element is not computable at
load time
drivers/ieee1394/pcilynx.c:145: (near initialization for
`bit_ops.name[5]') drivers/ieee1394/pcilynx.c:146: warning:
initialization makes integer from pointer without a cast
drivers/ieee1394/pcilynx.c:146: initializer element is not computable at
load time
drivers/ieee1394/pcilynx.c:146: (near initialization for
`bit_ops.name[6]') drivers/ieee1394/pcilynx.c:147: initializer element
is not constant drivers/ieee1394/pcilynx.c:147: (near initialization for
`bit_ops.name') drivers/ieee1394/pcilynx.c: In function `lynx_devctl':
drivers/ieee1394/pcilynx.c:763: warning: `_MOD_INC_USE_COUNT' is
deprecated (declared at include/linux/module.h:346)
drivers/ieee1394/pcilynx.c:765: warning: `__MOD_DEC_USE_COUNT' is
deprecated (declared at include/linux/module.h:321)
make[2]: *** [drivers/ieee1394/pcilynx.o] Error 1
make[1]: *** [drivers/ieee1394] Error 2
make: *** [drivers] Error 2
--
The greatest enemy to knowledge is not ignorance. It's the illusion of
knowledge. Thus the devil's greatest achievement was making people
believe he didn't exist!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error compiling ieee1394/pcilynx.c (2.5.54)
2003-01-16 0:11 Error compiling ieee1394/pcilynx.c (2.5.54) Tariq Shureih
@ 2003-01-16 1:57 ` Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2003-01-16 1:57 UTC (permalink / raw)
To: tariq.shureih; +Cc: linux-kernel
On Wed, Jan 15, 2003 at 04:11:10PM -0800, Tariq Shureih wrote:
>...
> The pcilynx.c driver will not compile giving the following error.
> I enabled I2C bit-bangin options as required by the driver.
>
> Seems that the driver requires porting to 2.5.x since the i2c structures
> and implementation has changed in 2.5.x.
>
> Anyone working on this? I can't proceed with my work not having this
> compile.
Below is the fix (already sent to Ben Collins).
> Thanx
cu
Adrian
--- linux-2.5.54/drivers/ieee1394/pcilynx.c.old 2003-01-03 06:58:52.000000000 +0100
+++ linux-2.5.54/drivers/ieee1394/pcilynx.c 2003-01-03 07:02:47.000000000 +0100
@@ -127,23 +127,20 @@
}
static struct i2c_algo_bit_data bit_data = {
- NULL,
- bit_setsda,
- bit_setscl,
- bit_getsda,
- bit_getscl,
- 5, 5, 100, /* waits, timeout */
+ .setsda = bit_setsda,
+ .setscl = bit_setscl,
+ .getsda = bit_getsda,
+ .getscl = bit_getscl,
+ .udelay = 5,
+ .mdelay = 5,
+ .timeout = 100,
};
static struct i2c_adapter bit_ops = {
- "PCILynx I2C adapter",
- 0xAA, //FIXME: probably we should get an id in i2c-id.h
- NULL,
- NULL,
- NULL,
- NULL,
- bit_reg,
- bit_unreg,
+ .name = "PCILynx I2C adapter",
+ .id = 0xAA, //FIXME: probably we should get an id in i2c-id.h
+ .client_register = bit_reg,
+ .client_unregister = bit_unreg,
};
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-16 1:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-16 0:11 Error compiling ieee1394/pcilynx.c (2.5.54) Tariq Shureih
2003-01-16 1:57 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox