[LinuxPPS] 21 Oct 20:35 - [PATCH] cciss: Fix warnings (and bug on
1TB discs)
linuxpps, Matthew Wilcox <>
webmaster at enneenne.com
Tue Oct 24 11:11:08 CEST 2006
[PATCH] cciss: Fix warnings (and bug on 1TB discs)
CCISS was producing warnings about shifts being greater than the size of
the type and pointers being of incompatible type. Turns out this is
because it's calling do_div on a 32-bit quantity. Upon further
investigation, the sector_t total_size is being assigned to an int, and
then we're calling do_div on that int. Obviously, sector_div is called for
here, and I took the chance to refactor the code a little.
Signed-off-by: Matthew Wilcox
Acked-by: Mike Miller
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
drivers/block/cciss.c
URL: http://gitweb.enneenne.com/?p=linuxpps;a=commit;h=3f7705eab6722ad1a346d748c4aad55755d6c241
More information about the LinuxPPS
mailing list