]> git.neil.brown.name Git - history.git/commit
[PATCH] asm-generic/div64.h breakage
authorBernardo Innocenti <bernie@develer.com>
Sat, 12 Jul 2003 02:35:48 +0000 (19:35 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 12 Jul 2003 02:35:48 +0000 (19:35 -0700)
commited08e6dfc28d810101c7665a72c73117888bc4a0
treee5dc521e13e0d4118c650968975418b958a0f2d0
parent963436f3a5a06c2be3cbb5e8a33e355fbec2216b
[PATCH] asm-generic/div64.h breakage

 - __div64_32(): remove __attribute_pure__ qualifier from the prototype
   since this function obviously clobbers memory through &(n);

 - do_div(): add a check to ensure (n) is type-compatible with uint64_t;

 - as_update_iohist(): Use sector_div() instead of do_div().
   (Whether the result of the addition should always be stored in 64bits
   regardless of CONFIG_LBD is still being discussed, therefore it's
   unadderessed here);

 - Fix all places where do_div() was being called with a bad divisor argument.
drivers/block/as-iosched.c
include/asm-generic/div64.h
lib/vsprintf.c
mm/vmscan.c