[lkml]   [2010]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: BUG at drivers/scsi/scsi_lib.c:1113
    On 07/22/2010 09:37 AM, Neil Brown wrote:
    > I suspect that problem is that "do_sync" and "do_barriers" in
    > drivers/md/raid1.c are still 'bool' and should now be 'unsigned long'.
    > I'm not sure how wide '_Bool' is, but I'm guess it isn't wide enough.

    ANSI says:
    An object declared as type _Bool is large enough to store the values 0
    and 1.

    gcc spec doesn't say anything, but:
    $ gcc -S -x c -o - -
    unsigned long x = sizeof(_Bool);
    .quad 1

    I.e. sizeof(_Bool) = 1 byte.

    > Could you please try changing ever 'bool' in that file to 'unsigned long'
    > and see if that fixes it?

    Will do that.


     \ /
      Last update: 2010-07-22 10:09    [W:0.021 / U:39.804 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site