[2.6 patch] fix aztcd.c compile warning

From: maximilian attems (janitor_at_sternwelten.at)
Date: 09/09/03

  • Next message: Rob Landley: "Re: Scaling noise"
    Date:	Tue, 9 Sep 2003 16:53:09 +0200
    To: linux-kernel@vger.kernel.org
    
    

    this patch tries to fix the following compile warning:
    -- snipp
    drivers/cdrom/aztcd.c:379: warning: `pa_ok' defined but not used

    --
    with belows patch drivers/cdrom/aztcd.c compiles without warning
    the patch also removes a comment section where pa_ok _was_ used
    the warning shows off on each single compile statistics by cherry.
    i hope this helps :)
    a++ maks
    --- linux-2.6.0-test5/drivers/cdrom/aztcd.c	Mon Sep  8 21:50:28 2003
    +++ linux/drivers/cdrom/aztcd.c	Tue Sep  9 15:53:09 2003
    @@ -373,21 +373,6 @@
     	} while (aztIndatum != AFL_OP_OK);
     }
     
    -/* Wait for PA_OK = drive answers with AFL_PA_OK after receiving parameters*/
    -# define PA_OK pa_ok()
    -static void pa_ok(void)
    -{
    -	aztTimeOutCount = 0;
    -	do {
    -		aztIndatum = inb(DATA_PORT);
    -		aztTimeOutCount++;
    -		if (aztTimeOutCount >= AZT_TIMEOUT) {
    -			printk("aztcd: Error Wait PA_OK\n");
    -			break;
    -		}
    -	} while (aztIndatum != AFL_PA_OK);
    -}
    -
     /* Wait for STEN=Low = handshake signal 'AFL_.._OK available or command executed*/
     # define STEN_LOW  sten_low()
     static void sten_low(void)
    @@ -2077,11 +2062,6 @@
     				return;
     			}
     
    -/*	  if (aztSendCmd(ACMD_SET_MODE)) RETURN("azt_poll 3");
    -	  outb(0x01, DATA_PORT);
    -	  PA_OK;
    -	  STEN_LOW;
    -*/
     			if (aztSendCmd(ACMD_GET_STATUS))
     				RETURN("azt_poll 4");
     			STEN_LOW;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Rob Landley: "Re: Scaling noise"

    Relevant Pages

    • Re: Possible dcache BUG
      ... During the compile, the above line output this warning: ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Is there a patch to make nvnet work ?
      ... I know this driver is closed-source and not supported, but with older kernel ... I started it and try to compile nvnet against it. ... But when I try to compile it with the last patch, ... nvnet.h:107: warning: data definition has no type or storage class ...
      (Linux-Kernel)
    • Re: [GIT PATCH] SCSI merge for 2.6.13
      ... Btw, I see the patch that is supposed to fix it, but I'm in no position to ... introduces this bogus "assume a patch that wasn't merged" (commit ID ... place since it was known to not even compile. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: keep in sync with -mm tree?
      ... It also allows comments like "EDAC is known to not compile ... I'll take a look at uploading a nightly rollup as well. ... > apply's then a part of the patch which was entirely rejected, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 2/2] new valid_signal function - convert code that currently tests _NSIG directly to use the
      ... warning in fs/fcntl.c, during the discussion Matthew Wilcox noted that ... Below is the second patch that puts the valid_signalfunction to actual ... int disallow_signal ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)