[cpia] Need Help

root mmm9948@ksu.edu
Mon, 11 Jun 2001 14:53:27 -0500


This is a multi-part message in MIME format.
--------------38CD8290B729A1DCA65ED6B2
Content-Type: multipart/alternative;
 boundary="------------896EE003AD07C101A62F85A4"


--------------896EE003AD07C101A62F85A4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I am getting errors when trying to complie the cpia-1.2 code.

errors at cpia.c

line 631 - warning: 'val' might be used uninitialized in this function
line 3885 - warning: initialization from incompatible poienter type
and keeps on going with errors

The Makefile has been attached to this message since it is the only file
that was changed

Thanks for any help you can provide

--
Mazen Mikha
Graduate Research Assistant
Dept. Electrical/Computer Eng.
Kansas State University



--------------896EE003AD07C101A62F85A4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
I am getting errors when trying to complie the cpia-1.2 code.

errors at cpia.c

line 631 - warning: 'val' might be used uninitialized in this function
line 3885 - warning: initialization from incompatible poienter type
and keeps on going with errors

The Makefile has been attached to this message since it is the only file that was changed

Thanks for any help you can provide

-- 
Mazen Mikha
Graduate Research Assistant
Dept. Electrical/Computer Eng.
Kansas State University
  --------------896EE003AD07C101A62F85A4-- --------------38CD8290B729A1DCA65ED6B2 Content-Type: text/plain; charset=us-ascii; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile" # # Possible settings: # _CPIA_DEBUG_ will make the driver _verbose_ (via syslog KERN_DEBUG) , # please let this switched on until we have version 1.0, we need the # output in case of troubles # CONFIG_VIDEO_CPIA_PP_DMA will enable dma code, see README for further info # __SMP__ if you have compiled your kernel with SMP support (more than # one CPU) # CC = gcc DEBUG = -D_CPIA_DEBUG_ WARN = -Wall -Wstrict-prototypes OPTIMIZE = -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 CODESTYL = -fomit-frame-pointer -fno-strength-reduce INCLUDES = -I. -I/usr/src/linux/include DEFINES = -D__KERNEL__ -DMODULE -DCONFIG_VIDEO_CPIA_MODULE -DCONFIG_VIDEO_CPIA_USB_MODULE -DCONFIG_VIDEO_CPIA_PP_DMA CFLAGS = $(DEBUG) $(WARN) $(OPTIMIZE) $(CODESTYL) $(INCLUDES) $(DEFINES) LIBS = LFLAGS = OBJS = cpia.o cpia_usb.o SRCS = $(OBJS:.o=.c) all: .depend $(OBJS) .c.o: $(CC) -c $(CFLAGS) $< kernel: cp *.[ch] /usr/src/linux/drivers/char patch -p0 -d/usr/src < kernel.patch kernel-2.3: cp *.[ch] /usr/src/linux/drivers/char patch -p0 -d/usr/src < kernel-2.3.patch unkernel: rm /usr/src/linux/drivers/char/cpia* patch -R -p0 -d/usr/src < kernel.patch unkernel-2.3: rm /usr/src/linux/drivers/char/cpia* patch -R -p0 -d/usr/src < kernel-2.3.patch install: $(OBJS) install -m 644 -o root -g root $(OBJS) /lib/modules/`uname -r`/misc /sbin/depmod -a clean: rm -f *.o *~ core .depend dep: rm -f .depend make .depend .depend: echo '# Program dependencies' >.depend gcc -M $(CFLAGS) ${SRCS} >>.depend # # include a dependency file if one exists # ifeq (.depend,$(wildcard .depend)) include .depend endif --------------38CD8290B729A1DCA65ED6B2--