GIT 8377b739d470496433b159c99a6282a8dc4d8016 git+ssh://master.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git#gccbug commit 8377b739d470496433b159c99a6282a8dc4d8016 Author: Jeff Garzik Date: Fri Apr 27 14:25:50 2007 -0400 arch/i386, sound/pci: kill gcc warnings verified as bogus Signed-off-by: Jeff Garzik commit b125c55de68b3f8ad75415926403f6c96846cefe Author: Jeff Garzik Date: Fri Apr 27 14:25:23 2007 -0400 drives/*: kill gcc warnings verified as bogus Signed-off-by: Jeff Garzik commit d707ec67e9da4a6dfe87e4d6548276671fc00894 Author: Jeff Garzik Date: Fri Apr 27 14:24:42 2007 -0400 fs/*: kill gcc warnings verified as bogus Signed-off-by: Jeff Garzik commit bb4e9b71870c24f99b5dcb0e848ec9afc8c1bf08 Author: Jeff Garzik Date: Fri Apr 27 12:48:00 2007 -0400 kernel/*, ipc/*: kill gcc warnings verified as bogus Signed-off-by: Jeff Garzik Signed-off-by: Andrew Morton --- arch/i386/kernel/efi.c | 2 ++ drivers/atm/zatm.c | 4 +++- drivers/infiniband/hw/mthca/mthca_qp.c | 4 ++-- drivers/md/dm-exception-store.c | 2 +- drivers/net/r8169.c | 2 +- drivers/net/tokenring/smctr.c | 2 +- drivers/net/wan/sbni.c | 2 +- drivers/usb/misc/auerswald.c | 2 +- drivers/video/matrox/matroxfb_maven.c | 4 ++-- drivers/video/riva/riva_hw.c | 2 +- fs/udf/balloc.c | 2 ++ fs/udf/super.c | 2 ++ ipc/msg.c | 2 ++ ipc/sem.c | 2 ++ kernel/auditfilter.c | 2 +- pci/pcxhr/pcxhr.c | 0 arch/i386/kernel/efi.c | 2 ++ drivers/atm/zatm.c | 4 +++- drivers/infiniband/hw/mthca/mthca_qp.c | 4 ++-- drivers/md/dm-exception-store.c | 2 +- drivers/net/r8169.c | 2 +- drivers/net/tokenring/smctr.c | 2 +- drivers/net/wan/sbni.c | 2 +- drivers/usb/misc/auerswald.c | 2 +- drivers/video/matrox/matroxfb_maven.c | 4 ++-- drivers/video/riva/riva_hw.c | 2 +- fs/udf/balloc.c | 2 ++ fs/udf/super.c | 2 ++ ipc/msg.c | 2 ++ ipc/sem.c | 2 ++ kernel/auditfilter.c | 2 +- 15 files changed, 24 insertions(+), 12 deletions(-) Index: linux-2.6.21/arch/i386/kernel/efi.c =================================================================== --- linux-2.6.21.orig/arch/i386/kernel/efi.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/arch/i386/kernel/efi.c 2007-05-14 17:16:10.000000000 +0100 @@ -283,6 +283,8 @@ void efi_memmap_walk(efi_freemem_callbac unsigned long start, end; void *p; + prev.start = prev.end = 0; + for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) { md = p; Index: linux-2.6.21/drivers/atm/zatm.c =================================================================== --- linux-2.6.21.orig/drivers/atm/zatm.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/atm/zatm.c 2007-05-14 17:16:10.000000000 +0100 @@ -915,7 +915,7 @@ static int open_tx_first(struct atm_vcc unsigned long flags; u32 *loop; unsigned short chan; - int pcr,unlimited; + int unlimited; DPRINTK("open_tx_first\n"); zatm_dev = ZATM_DEV(vcc->dev); @@ -936,6 +936,8 @@ static int open_tx_first(struct atm_vcc vcc->qos.txtp.max_pcr >= ATM_OC3_PCR); if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr; else { + int pcr = 0; + if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU; if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,unlimited)) Index: linux-2.6.21/drivers/infiniband/hw/mthca/mthca_qp.c =================================================================== --- linux-2.6.21.orig/drivers/infiniband/hw/mthca/mthca_qp.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/infiniband/hw/mthca/mthca_qp.c 2007-05-14 17:16:10.000000000 +0100 @@ -1552,7 +1552,7 @@ int mthca_tavor_post_send(struct ib_qp * int i; int size; int size0 = 0; - u32 f0; + u32 f0 = 0; int ind; u8 op0 = 0; @@ -1906,7 +1906,7 @@ int mthca_arbel_post_send(struct ib_qp * int i; int size; int size0 = 0; - u32 f0; + u32 f0 = 0; int ind; u8 op0 = 0; Index: linux-2.6.21/drivers/md/dm-exception-store.c =================================================================== --- linux-2.6.21.orig/drivers/md/dm-exception-store.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/md/dm-exception-store.c 2007-05-14 17:16:10.000000000 +0100 @@ -417,7 +417,7 @@ static void persistent_destroy(struct ex static int persistent_read_metadata(struct exception_store *store) { - int r, new_snapshot; + int r, new_snapshot = 0; struct pstore *ps = get_info(store); /* Index: linux-2.6.21/drivers/net/r8169.c =================================================================== --- linux-2.6.21.orig/drivers/net/r8169.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/net/r8169.c 2007-05-14 17:16:10.000000000 +0100 @@ -2242,7 +2242,7 @@ static int rtl8169_xmit_frags(struct rtl { struct skb_shared_info *info = skb_shinfo(skb); unsigned int cur_frag, entry; - struct TxDesc *txd; + struct TxDesc *txd = NULL; entry = tp->cur_tx; for (cur_frag = 0; cur_frag < info->nr_frags; cur_frag++) { Index: linux-2.6.21/drivers/net/tokenring/smctr.c =================================================================== --- linux-2.6.21.orig/drivers/net/tokenring/smctr.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/net/tokenring/smctr.c 2007-05-14 17:16:10.000000000 +0100 @@ -3692,7 +3692,7 @@ static int smctr_process_rx_packet(MAC_H __u16 rcode, correlator; int err = 0; __u8 xframe = 1; - __u16 tx_fstatus; + __u16 tx_fstatus = 0; rmf->vl = SWAP_BYTES(rmf->vl); if(rx_status & FCB_RX_STATUS_DA_MATCHED) Index: linux-2.6.21/drivers/net/wan/sbni.c =================================================================== --- linux-2.6.21.orig/drivers/net/wan/sbni.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/net/wan/sbni.c 2007-05-14 17:16:10.000000000 +0100 @@ -595,7 +595,7 @@ recv_frame( struct net_device *dev ) u32 crc = CRC32_INITIAL; - unsigned framelen, frameno, ack; + unsigned framelen = 0, frameno, ack; unsigned is_first, frame_ok; if( check_fhdr( ioaddr, &framelen, &frameno, &ack, &is_first, &crc ) ) { Index: linux-2.6.21/drivers/usb/misc/auerswald.c =================================================================== --- linux-2.6.21.orig/drivers/usb/misc/auerswald.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/usb/misc/auerswald.c 2007-05-14 17:16:11.000000000 +0100 @@ -664,7 +664,7 @@ static int auerchain_control_msg (pauerc int ret; struct usb_ctrlrequest *dr; struct urb *urb; - int length; + int length = 0; dbg ("auerchain_control_msg"); dr = kmalloc (sizeof (struct usb_ctrlrequest), GFP_KERNEL); Index: linux-2.6.21/drivers/video/matrox/matroxfb_maven.c =================================================================== --- linux-2.6.21.orig/drivers/video/matrox/matroxfb_maven.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/video/matrox/matroxfb_maven.c 2007-05-14 17:16:11.000000000 +0100 @@ -284,7 +284,7 @@ static unsigned int matroxfb_mavenclock( unsigned int* in, unsigned int* feed, unsigned int* post, unsigned int* htotal2) { unsigned int fvco; - unsigned int p; + unsigned int p = 0; fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); if (!fvco) @@ -715,7 +715,7 @@ static int maven_find_exact_clocks(unsig m->regs[0x82] = 0x81; for (x = 0; x < 8; x++) { - unsigned int a, b, c, h2; + unsigned int a = 0, b = 0, c, h2 = 0; unsigned int h = ht + 2 + x; if (!matroxfb_mavenclock((m->mode == MATROXFB_OUTPUT_MODE_PAL) ? &maven_PAL : &maven_NTSC, h, vt, &a, &b, &c, &h2)) { Index: linux-2.6.21/drivers/video/riva/riva_hw.c =================================================================== --- linux-2.6.21.orig/drivers/video/riva/riva_hw.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/drivers/video/riva/riva_hw.c 2007-05-14 17:16:11.000000000 +0100 @@ -1240,7 +1240,7 @@ int CalcStateExt int dotClock ) { - int pixelDepth, VClk, m, n, p; + int pixelDepth, VClk = 0, m = 0, n = 0, p = 0; /* * Save mode parameters. */ Index: linux-2.6.21/fs/udf/balloc.c =================================================================== --- linux-2.6.21.orig/fs/udf/balloc.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/fs/udf/balloc.c 2007-05-14 17:16:11.000000000 +0100 @@ -750,6 +750,8 @@ static int udf_table_new_block(struct su *err = -ENOSPC; + memset(&goal_eloc, 0, sizeof(goal_eloc)); + if (UDF_I_ALLOCTYPE(table) == ICBTAG_FLAG_AD_SHORT) adsize = sizeof(short_ad); else if (UDF_I_ALLOCTYPE(table) == ICBTAG_FLAG_AD_LONG) Index: linux-2.6.21/fs/udf/super.c =================================================================== --- linux-2.6.21.orig/fs/udf/super.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/fs/udf/super.c 2007-05-14 17:16:11.000000000 +0100 @@ -1360,6 +1360,8 @@ udf_load_partition(struct super_block *s { kernel_lb_addr ino; + memset(&ino, 0, sizeof(ino)); + if (!UDF_SB_LASTBLOCK(sb)) { UDF_SB_LASTBLOCK(sb) = udf_get_last_block(sb); Index: linux-2.6.21/ipc/msg.c =================================================================== --- linux-2.6.21.orig/ipc/msg.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/ipc/msg.c 2007-05-14 17:16:11.000000000 +0100 @@ -395,6 +395,8 @@ asmlinkage long sys_msgctl(int msqid, in if (msqid < 0 || cmd < 0) return -EINVAL; + memset(&setbuf, 0, sizeof(setbuf)); + version = ipc_parse_version(&cmd); ns = current->nsproxy->ipc_ns; Index: linux-2.6.21/ipc/sem.c =================================================================== --- linux-2.6.21.orig/ipc/sem.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/ipc/sem.c 2007-05-14 17:16:11.000000000 +0100 @@ -861,6 +861,8 @@ static int semctl_down(struct ipc_namesp struct sem_setbuf setbuf; struct kern_ipc_perm *ipcp; + memset(&setbuf, 0, sizeof(setbuf)); + if(cmd == IPC_SET) { if(copy_semid_from_user (&setbuf, arg.buf, version)) return -EFAULT; Index: linux-2.6.21/kernel/auditfilter.c =================================================================== --- linux-2.6.21.orig/kernel/auditfilter.c 2007-05-13 19:09:36.000000000 +0100 +++ linux-2.6.21/kernel/auditfilter.c 2007-05-14 17:16:11.000000000 +0100 @@ -1168,7 +1168,7 @@ static inline int audit_add_rule(struct struct audit_entry *e; struct audit_field *inode_f = entry->rule.inode_f; struct audit_watch *watch = entry->rule.watch; - struct nameidata *ndp, *ndw; + struct nameidata *ndp = NULL, *ndw = NULL; int h, err, putnd_needed = 0; #ifdef CONFIG_AUDITSYSCALL int dont_count = 0;