[2.6 patch] fix NCR53C9x.c compile warning

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 12/20/03

  • Next message: Adrian Bunk: "2.6: modular scsi/mca_53c9x doesn't work"
    Date:	Sat, 20 Dec 2003 00:13:21 +0100
    To: James.Bottomley@SteelEye.com, linux-scsi@vger.kernel.org
    
    

    I got the following compile warning in 2.6.0-test11-mm1:

    <-- snip -->

    ...
      CC [M] drivers/scsi/NCR53C9x.o
    drivers/scsi/NCR53C9x.c: In function `esp_do_data':
    drivers/scsi/NCR53C9x.c:1838: warning: unused variable `flags'
    ...

    <-- snip -->

    The following patch fixes this warning:

    --- linux-2.6.0-test11-mm1-modular-no-smp/drivers/scsi/NCR53C9x.c.old 2003-12-19 23:26:15.000000000 +0100
    +++ linux-2.6.0-test11-mm1-modular-no-smp/drivers/scsi/NCR53C9x.c 2003-12-19 23:27:10.000000000 +0100
    @@ -1835,7 +1835,10 @@
                     /* loop */
                     while (hmuch) {
                             int j, fifo_stuck = 0, newphase;
    - unsigned long flags, timeout;
    + unsigned long timeout;
    +#if 0
    + unsigned long flags;
    +#endif
     #if 0
                             if ( i % 10 )
                                     ESPDATA(("\r"));

    Please apply
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    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: Adrian Bunk: "2.6: modular scsi/mca_53c9x doesn't work"

    Relevant Pages

    • 2.6.9-mm1: timer_event multiple definition
      ... : multiple definition of `timer_event' ... ld: Warning: size of symbol `timer_event' changed from 157 in ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6.13-rc6-rt9: compile errors
      ... : multiple definition of `pi_init' ... ld: Warning: type of symbol `pi_init' changed from 1 to 2 in drivers/built-in.o ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.1-rc1-mm2: warning in drivers/net/sk98lin/skge.c
      ... I thought I sent Jeff a fix for that. ... This warning is still present in 2.6.2-mm1 and 2.6.3-rc1. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6.11-rc4-mm1: infiniband/core/user_mad.c warning
      ... Reverting this patch fixes the warning (but I don't know about the ... underlying issues). ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Devon Thunder
      ... and the severe weather warning has been lifted. ... that you'd had 2 claps of thunder and 2 spots of rain. ...
      (uk.sci.weather)