Re: [patch 1/12] misc fixes

From: David S. Miller (davem@redhat.com)
Date: Fri Aug 09 2002 - 20:24:33 EST


   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/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:21 EST