Attached is a patch to linux/drivers/block/floppy.c that fixes an
'unused variable' warning for systems without 'fd_chose_dma_mode'
defined in floppy_ready().
Jeff
--------------F3FE608FE5FDF99481663988
Content-Type: text/plain; charset=us-ascii;
name="floppy-warning-fix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="floppy-warning-fix.patch"
--- /usr/local/home/jgarzik/tmp/l22/linux/drivers/block/floppy.c Fri Mar 26 16:29:14 1999
+++ floppy.c Wed Jun 9 02:24:19 1999
@@ -1924,8 +1924,6 @@
static void floppy_ready(void)
{
- unsigned long flags;
-
CHECK_RESET;
if (start_motor(floppy_ready)) return;
if (fdc_dtr()) return;
@@ -1945,7 +1943,7 @@
if ((raw_cmd->flags & FD_RAW_READ) ||
(raw_cmd->flags & FD_RAW_WRITE))
{
- flags=claim_dma_lock();
+ unsigned long flags = claim_dma_lock();
fd_chose_dma_mode(raw_cmd->kernel_data,
raw_cmd->length);
release_dma_lock(flags);
--------------F3FE608FE5FDF99481663988--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/