Re: [PATCH] mmc: fix card block compile warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 23, 2012 at 6:46 AM, Rabin Vincent <rabin@xxxxxx> wrote:
> On Thu, Mar 22, 2012 at 23:32, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:
>> By reading the code you can easily see that the variables aren't
>> actually used uninitialized, it's juts GCC that is unable to
>> follow the code path and determine that they are initialized in
>> all paths.
>
> If the mmc_switch(..SANITIZE_START..) returns -EIO and mmc_blk_reset()
> returns 0, then the variables _are_ used uninitialized.

Argh! You're right. (As usual.)

But that makes me wonder if the code flow is even correct
for sanitize.

I'll have a closer look and come up with something better!

Thanks,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux