X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=sidebyside;f=block%2Fblk-settings.c;h=f5ed5a1187ba8564527b70f682328b31eea4549a;hb=cdf5f61ed1d64d50eb9cf10071ab40836f5f9f91;hp=d9a9db5f0a2bddfbdd6e5dbfe8a8c0c7a73b24b0;hpb=c25f7cf2032aaac9bd50d6eee982719878538082;p=karo-tx-linux.git diff --git a/block/blk-settings.c b/block/blk-settings.c index d9a9db5f0a2b..f5ed5a1187ba 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -8,6 +8,7 @@ #include #include /* for max_pfn/max_low_pfn */ #include +#include #include #include @@ -462,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)