projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8bd38
)
block: use FIELD_SIZEOF to calculate size of a field
author
Maninder Singh
<maninder1.s@samsung.com>
Tue, 7 Jul 2015 07:11:07 +0000
(12:41 +0530)
committer
Jens Axboe
<axboe@fb.com>
Tue, 7 Jul 2015 13:47:37 +0000
(07:47 -0600)
use FIELD_SIZEOF instead of open coding
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-core.c
b/block/blk-core.c
index 82819e68f58b10c59edaa32c65b5a783306c99ae..627ed0c593fb4c05dd46e1da9eb75ddf2e6c1269 100644
(file)
--- a/
block/blk-core.c
+++ b/
block/blk-core.c
@@
-3370,7
+3370,7
@@
EXPORT_SYMBOL(blk_post_runtime_resume);
int __init blk_dev_init(void)
{
BUILD_BUG_ON(__REQ_NR_BITS > 8 *
-
sizeof(((struct request *)0)->
cmd_flags));
+
FIELD_SIZEOF(struct request,
cmd_flags));
/* used for unplugging and affects IO latency/throughput - HIGHPRI */
kblockd_workqueue = alloc_workqueue("kblockd",