pdcraid.o compile warnings + patch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I was compiling pdcraid.o as part of 2.4.12-ac6 and I got the following
warnings:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.12-ac6/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.12-ac6/include/linux/modversions.h   -c -o pdcraid.o
pdcraid.c
pdcraid.c: In function `pdcraid_ioctl':
pdcraid.c:103: warning: unused variable `larg'
pdcraid.c: In function `pdcraid0_make_request':
pdcraid.c:288: warning: label `outerr' defined but not used
pdcraid.c: In function `pdcraid_init_one':
pdcraid.c:554: warning: unused variable `q'
pdcraid.c: In function `pdcraid_init':
pdcraid.c:586: warning: unused variable `i'  

The following patch seems to get rid of most of the warnings:

--- /usr/src/linux-2.4.12-ac6/drivers/ide/pdcraid.c     Wed Oct 24
09:15:22 2001
+++ /tmp/pdcraid.c      Tue Oct 30 02:32:39 2001
@@ -100,7 +100,7 @@
 static int pdcraid_ioctl(struct inode *inode, struct file *file,
unsigned int c
md, unsigned long arg)
 {
        unsigned int minor;
-       unsigned long sectors,*larg;
+       unsigned long sectors;
 
        
 
@@ -551,7 +551,6 @@
                           
 static __init int pdcraid_init_one(int device,int raidlevel)
 {
-       request_queue_t *q;
        int i,count;
 
        for (i=0; i<14; i++)
@@ -583,7 +582,7 @@
 
 static __init int pdcraid_init(void)
 {
-       int i,retval,device,count=0;
+       int retval,device,count=0;
 
        do {
        





[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux