diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-10-12 06:40:38 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-12 06:40:38 -0400 |
commit | 2da96acde0318f121ed3f5993ae9324c856ecfd4 (patch) | |
tree | 020f58a39c5ceb9bd3bca1a63ad22e3a2da98e57 /include/linux/blkdev.h | |
parent | 782e3b3b3804c38d5130c7f21d7ec7bf6709023f (diff) |
[BLOCK] Move sector_div() from blkdev.h to kernel.h
We need it even if CONFIG_BLOCK is disabled, so move it outside of
the block layer include system.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 95be0ac57e76..5ed888b04b29 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -20,20 +20,6 @@ | |||
20 | 20 | ||
21 | #include <asm/scatterlist.h> | 21 | #include <asm/scatterlist.h> |
22 | 22 | ||
23 | #ifdef CONFIG_LBD | ||
24 | # include <asm/div64.h> | ||
25 | # define sector_div(a, b) do_div(a, b) | ||
26 | #else | ||
27 | # define sector_div(n, b)( \ | ||
28 | { \ | ||
29 | int _res; \ | ||
30 | _res = (n) % (b); \ | ||
31 | (n) /= (b); \ | ||
32 | _res; \ | ||
33 | } \ | ||
34 | ) | ||
35 | #endif | ||
36 | |||
37 | struct scsi_ioctl_command; | 23 | struct scsi_ioctl_command; |
38 | 24 | ||
39 | struct request_queue; | 25 | struct request_queue; |