Re: [patch 1/12] misc fixes

David S. Miller (davem@redhat.com)
Fri, 09 Aug 2002 18:24:33 -0700 (PDT)


From: Andrew Morton <akpm@zip.com.au>
Date: Fri, 09 Aug 2002 17:55:24 -0700

- `retval' should not be initialised to "~0UL" because that is
0x00000000ffffffff with 64-bit sector_t.

'0' defaults to 'int' on 32-bit systems so ~0 isn't right either.

What I think you really want is "~(sector_t) 0".
-
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/