X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=block%2Fblk-settings.c;h=f5ed5a1187ba8564527b70f682328b31eea4549a;hb=4a1032faac94ebbf647460ae3e06fc21146eb280;hp=31e7a9375c1333cc35ab40d565c5c1ed4e8703e7;hpb=915a0b575fdb2376135ed9334b3ccb1eb51db622;p=linux-2.6-block.git diff --git a/block/blk-settings.c b/block/blk-settings.c index 31e7a9375c13..f5ed5a1187ba 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -8,7 +8,9 @@ #include #include /* for max_pfn/max_low_pfn */ #include +#include #include +#include #include "blk.h" @@ -461,16 +463,6 @@ void blk_queue_stack_limits(struct request_queue *t, struct request_queue *b) } EXPORT_SYMBOL(blk_queue_stack_limits); -static unsigned int lcm(unsigned int a, unsigned int b) -{ - if (a && b) - return (a * b) / gcd(a, b); - else if (b) - return b; - - return a; -} - /** * blk_stack_limits - adjust queue_limits for stacked devices * @t: the stacking driver limits (top device)