mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* unitialized variable in 2.4.7 (sym53c8xx, dmi_scan)
@ 2001-07-25 20:43 richard offer
  2001-07-25 21:25 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: richard offer @ 2001-07-25 20:43 UTC (permalink / raw)
  To: Linux Kernel


Compiling with -Werror to catch my development mistakes gives.

sym53c8xx.c:6994: warning: `istat' might be used uninitialized in this
function

dmi_scan.c:161: warning: `disable_ide_dma' defined but not used

The following fixes these issues.

8<--------------------------------------------------------------
===== arch/i386/kernel/dmi_scan.c 1.3 vs edited =====
--- 1.3/arch/i386/kernel/dmi_scan.c     Wed Jul 18 02:43:27 2001
+++ edited/arch/i386/kernel/dmi_scan.c  Wed Jul 25 13:41:59 2001
@@ -157,6 +157,7 @@
  *     corruption problems
  */ 
  
+#if 0 /* commented out until its used in dmi_blacklist[] */
 static __init int disable_ide_dma(struct dmi_blacklist *d)
 {
 #ifdef CONFIG_BLK_DEV_IDE
@@ -169,6 +170,7 @@
 #endif
        return 0;
 }
+#endif
 
 /* 
  * Some machines require the "reboot=b"  commandline option, this quirk
makes that automatic.
===== drivers/scsi/sym53c8xx.c 1.6 vs edited =====
--- 1.6/drivers/scsi/sym53c8xx.c        Thu Jul  5 04:28:16 2001
+++ edited/drivers/scsi/sym53c8xx.c     Wed Jul 25 13:37:10 2001
@@ -6991,7 +6991,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))
8<--------------------------------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-26 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-25 20:43 unitialized variable in 2.4.7 (sym53c8xx, dmi_scan) richard offer
2001-07-25 21:25 ` Alan Cox
2001-07-25 21:58   ` richard offer
2001-07-26 19:49   ` Gérard Roudier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®