* Ingo Molnar <[email protected]> wrote: > > > drivers/scsi/scsi_lib.c:708: warning: 'index' may be used uninitialized in this function > > > drivers/scsi/scsi_lib.c:708: note: 'index' was declared here > > > > > > not sure it matters. > > > > Hmm, I don't see them here (gcc 4.2.1). Must be the BUG(), does it go > > away if you add a index = -1 in the default: case? Just to be > > absolutely sure... > > well if i initialize the variable then of course the warning goes away > :) > > NOTE: i get the same warning even without the BUG_ON() patch, and > without your other fix patch as well. I'm using gcc 4.2.2. (Do you get > the warning if you pick up the config i sent you earlier today?) btw., i changed the initialization to -1 and the crash still occurs (as expected). Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- References:
- Re: [bug] block subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] block subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] block subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] block subsystem related crash with latest -git
- From: Ingo Molnar <[email protected]>
- [bug] ata subsystem related crash with latest -git
- From: Ingo Molnar <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Ingo Molnar <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Ingo Molnar <[email protected]>
- Re: [bug] block subsystem related crash with latest -git
- Prev by Date: Re: [RESEND] file operations: release can race with read/write?
- Next by Date: mmc_spi stopped working
- Previous by thread: Re: [bug] ata subsystem related crash with latest -git
- Next by thread: Re: [bug] ata subsystem related crash with latest -git
- Index(es):