Skip to contentSkip to conversation

Remove compile warnings from 2.4.0-prerelease1-ac1

PATCH New Rich Baum 1 participant 1 message Jan 1, 2001

Subsystems (5)
Networking SCSI ACPI IPv4/IPv6 +1 more subsystems
lore
Share & tools
lore

Rich Baum

author
#0 lore raw

PATCH 1/1 Remove compile warnings from 2.4.0-prerelease1-ac1

Here is a patch that removes warnings about depecrated use of labels at the end of compound statements and warnings about extra tokens at the end of #undef directives when using the 20001225 gcc snapshot. Could you please look this over for possible inclusion in 2.4.0 or 2.4.0-prerelease1-ac2? Some warnings I had with prerelease1 were fixed in ac1 so I did similar fixes for the warnings I still had.

Thanks.
Rich

drivers/acpi/hardware/hwcpu32.c +1 -1
diff -urN linux/drivers/acpi/hardware/hwcpu32.c rb/drivers/acpi/hardware/hwcpu32.c
@@ -708,4 +708,4 @@
 	return;
 }
 
- 
\ No newline at end of file
+
drivers/acpi/namespace/nsxfobj.c +2 -1
diff -urN linux/drivers/acpi/namespace/nsxfobj.c rb/drivers/acpi/namespace/nsxfobj.c
@@ -694,4 +694,5 @@
 	acpi_cm_release_mutex (ACPI_MTX_NAMESPACE);
 
 	return (status);
-}
\ No newline at end of file
+}
+
drivers/scsi/sym53c8xx.c +5 -5
diff -urN linux/drivers/scsi/sym53c8xx.c rb/drivers/scsi/sym53c8xx.c
@@ -11862,7 +11862,7 @@
 out_clrack:
 	OUTL (nc_dsp, NCB_SCRIPT_PHYS (np, clrack));
 	return;
-out_stuck:
+out_stuck:;
 }
 
 
@@ -14830,10 +14830,10 @@
 	return retv;
 }
 
-#undef SET_BIT 0
-#undef CLR_BIT 1
-#undef SET_CLK 2
-#undef CLR_CLK 3
+#undef SET_BIT /* 0 */
+#undef CLR_BIT /* 1 */
+#undef SET_CLK /* 2 */
+#undef CLR_CLK /* 3 */
 
 /*
  *  Try reading Symbios NVRAM.
drivers/sound/mpu401.c +2 -2
diff -urN linux/drivers/sound/mpu401.c rb/drivers/sound/mpu401.c
@@ -1449,7 +1449,7 @@
 			}
 			break;
 
-		default:
+		default:;
 	}
 	return TIMER_NOT_ARMED;
 }
@@ -1559,7 +1559,7 @@
 			setup_metronome(midi_dev);
 			return 0;
 
-		default:
+		default:;
 	}
 	return -EINVAL;
 }
drivers/sound/sb_ess.c +1 -1
diff -urN linux/drivers/sound/sb_ess.c rb/drivers/sound/sb_ess.c
@@ -770,7 +770,7 @@
 		case IMODE_INIT:
 			break;
 
-		default:
+		default:;
 			/* printk(KERN_WARN "ESS: Unexpected interrupt\n"); */
 	}
 }
drivers/sound/sequencer.c +5 -5
diff -urN linux/drivers/sound/sequencer.c rb/drivers/sound/sequencer.c
@@ -511,7 +511,7 @@
 			synth_devs[dev]->aftertouch(dev, voice, parm);
 			break;
 
-		default:
+		default:;
 	}
 #undef dev
 #undef cmd
@@ -614,7 +614,7 @@
 				synth_devs[dev]->bender(dev, chn, w14);
 			break;
 
-		default:
+		default:;
 	}
 }
 
@@ -684,7 +684,7 @@
 			}
 			break;
 
-		default:
+		default:;
 	}
 
 	return TIMER_NOT_ARMED;
@@ -701,7 +701,7 @@
 			DMAbuf_start_devices(parm);
 			break;
 
-		default:
+		default:;
 	}
 }
 
@@ -859,7 +859,7 @@
 			seq_sysex_message(q);
 			break;
 
-		default:
+		default:;
 	}
 	return 0;
 }
drivers/sound/sound_timer.c +1 -1
diff -urN linux/drivers/sound/sound_timer.c rb/drivers/sound/sound_timer.c
@@ -165,7 +165,7 @@
 			seq_copy_to_input(event, 8);
 			break;
 
-		default:
+		default:;
 	}
 	return TIMER_NOT_ARMED;
 }
fs/isofs/inode.c +1 -1
diff -urN linux/fs/isofs/inode.c rb/fs/isofs/inode.c
@@ -1264,7 +1264,7 @@
 	    (volume_seq_no != 0) && (volume_seq_no != 1)) {
 		printk(KERN_WARNING "Multi-volume CD somehow got mounted.\n");
 	} else
-#endif IGNORE_WRONG_MULTI_VOLUME_SPECS
+#endif /*IGNORE_WRONG_MULTI_VOLUME_SPECS */
 	{
 		if (S_ISREG(inode->i_mode)) {
 			inode->i_fop = &generic_ro_fops;
net/ipv4/arp.c +1 -1
diff -urN linux/net/ipv4/arp.c rb/net/ipv4/arp.c
@@ -292,7 +292,7 @@
 			neigh->output = neigh->ops->output;
 			return 0;
 #endif
-		}
+		;}
 #endif
 		if (neigh->type == RTN_MULTICAST) {
 			neigh->nud_state = NUD_NOARP;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/