lkml.org 
[lkml]   [2002]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: 2.5.22 fails to compile, constants.c
    From
    Date
    On Mon, 2002-06-17 at 14:06, Dominik Geisel wrote:

    > with gcc-3.1.1, kernel 2.5.22 fails to compile with the following output:
    > [...]
    > constants.c: In function `print_sense_internal':
    > constants.c:997: `i' undeclared (first use in this function)
    > constants.c:997: (Each undeclared identifier is reported only once
    > constants.c:997: for each function it appears in.)

    Hm, not my code but looks simple enough.

    Attached patch is against 2.5.22 and fixes the problem ...

    Robert Love

    diff -urN linux-2.5.22/drivers/scsi/constants.c linux/drivers/scsi/constants.c
    --- linux-2.5.22/drivers/scsi/constants.c Sun Jun 16 19:31:34 2002
    +++ linux/drivers/scsi/constants.c Mon Jun 17 14:25:02 2002
    @@ -993,10 +993,14 @@
    }

    #if !(CONSTANTS & CONST_SENSE)
    - printk("Raw sense data:");
    - for (i = 0; i < s; ++i)
    - printk("0x%02x ", sense_buffer[i]);
    - printk("\n");
    + {
    + int i;
    +
    + printk("Raw sense data:");
    + for (i = 0; i < s; ++i)
    + printk("0x%02x ", sense_buffer[i]);
    + printk("\n");
    + }
    #endif
    }

    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:26    [W:2.700 / U:0.228 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site