lkml.org 
[lkml]   [2001]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.4.12 warning cleanups
Here's a patch that cleans up some compiler warnings I get during compile. It
doesn't touch the (mild) assembly warnings and it doesn't fix the ones under
arch, but I figure that it's a start.

I actually got the warnings when compiling 2.4.12-ac1-preempt, but the patch
is against 2.4.12 proper.

--
Ignacio Vazquez-Abrams <ignacio@openservices.net>
diff -Naur linux.orig/drivers/ide/pdc202xx.c linux/drivers/ide/pdc202xx.c
--- linux.orig/drivers/ide/pdc202xx.c Fri Sep 7 12:28:38 2001
+++ linux/drivers/ide/pdc202xx.c Fri Oct 12 21:17:18 2001
@@ -526,7 +526,7 @@
byte unit = (drive->select.b.unit & 0x01);

unsigned int drive_conf;
- byte drive_pci;
+ byte drive_pci=0;
byte test1, test2, speed = -1;
byte AP;
unsigned short EP;
diff -Naur linux.orig/drivers/net/tokenring/olympic.c linux/drivers/net/tokenring/olympic.c
--- linux.orig/drivers/net/tokenring/olympic.c Thu Sep 13 19:04:43 2001
+++ linux/drivers/net/tokenring/olympic.c Fri Oct 12 21:24:13 2001
@@ -1722,4 +1722,4 @@
module_init(olympic_pci_init) ;
module_exit(olympic_pci_cleanup) ;

-MODULE_LICENSE("GPL");
\ No newline at end of file
+MODULE_LICENSE("GPL");
diff -Naur linux.orig/drivers/scsi/advansys.c linux/drivers/scsi/advansys.c
--- linux.orig/drivers/scsi/advansys.c Sun Sep 30 15:26:07 2001
+++ linux/drivers/scsi/advansys.c Fri Oct 12 21:25:05 2001
@@ -5552,7 +5552,7 @@
}
} else {
ADV_CARR_T *carrp;
- int req_cnt;
+ int req_cnt=0;
adv_req_t *reqp = NULL;
int sg_cnt = 0;

diff -Naur linux.orig/drivers/scsi/eata_dma.c linux/drivers/scsi/eata_dma.c
--- linux.orig/drivers/scsi/eata_dma.c Sun Sep 30 15:26:07 2001
+++ linux/drivers/scsi/eata_dma.c Fri Oct 12 21:30:52 2001
@@ -1067,7 +1067,7 @@
char *buff = 0;
unchar bugs = 0;
struct Scsi_Host *sh;
- hostdata *hd;
+ hostdata *hd=NULL;
int x;


diff -Naur linux.orig/drivers/scsi/sym53c8xx.c linux/drivers/scsi/sym53c8xx.c
--- linux.orig/drivers/scsi/sym53c8xx.c Sun Sep 30 15:26:08 2001
+++ linux/drivers/scsi/sym53c8xx.c Fri Oct 12 21:29:22 2001
@@ -6989,7 +6989,7 @@

static void ncr_soft_reset(ncb_p np)
{
- u_char istat;
+ u_char istat=0;
int i;

if (!(np->features & FE_ISTAT1) || !(INB (nc_istat1) & SRUN))
diff -Naur linux.orig/fs/super.c linux/fs/super.c
--- linux.orig/fs/super.c Wed Oct 10 18:39:04 2001
+++ linux/fs/super.c Fri Oct 12 21:18:28 2001
@@ -1050,7 +1050,9 @@
vfsmnt->mnt_root = dget(sb->s_root);
bdput(bdev); /* sb holds a reference */

+#ifdef CONFIG_ROOT_NFS
attach_it:
+#endif
root_nd.mnt = root_vfsmnt;
root_nd.dentry = root_vfsmnt->mnt_sb->s_root;
graft_tree(vfsmnt, &root_nd);
\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.023 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site