Error compiling ieee1394/pcilynx.c (2.5.54)

From: Tariq Shureih (tariq@linux.co.intel.com)
Date: Wed Jan 15 2003 - 19:11:10 EST


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!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:56 EST