summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-02-08 09:55:48 -0600
committerAlex Elder <elder@inktank.com>2013-02-19 19:14:02 -0600
commitef06f4d32ae5b656f17b53ee3f3c43471a11cc73 (patch)
tree06f6e75197bbf775b5d444fe9fb645e400a00cdc /drivers
parentf44246e394eadf0754bd6716f8ba1fabf362a87d (diff)
downloadlinux-3.10-ef06f4d32ae5b656f17b53ee3f3c43471a11cc73.tar.gz
linux-3.10-ef06f4d32ae5b656f17b53ee3f3c43471a11cc73.tar.bz2
linux-3.10-ef06f4d32ae5b656f17b53ee3f3c43471a11cc73.zip
rbd: add parentheses to object request iterator macros
The for_each_obj_request*() macros should parenthesize their uses of the ireq parameter. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/rbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 13ee789f232..ff9e9255745 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -226,11 +226,11 @@ struct rbd_img_request {
};
#define for_each_obj_request(ireq, oreq) \
- list_for_each_entry(oreq, &ireq->obj_requests, links)
+ list_for_each_entry(oreq, &(ireq)->obj_requests, links)
#define for_each_obj_request_from(ireq, oreq) \
- list_for_each_entry_from(oreq, &ireq->obj_requests, links)
+ list_for_each_entry_from(oreq, &(ireq)->obj_requests, links)
#define for_each_obj_request_safe(ireq, oreq, n) \
- list_for_each_entry_safe_reverse(oreq, n, &ireq->obj_requests, links)
+ list_for_each_entry_safe_reverse(oreq, n, &(ireq)->obj_requests, links)
struct rbd_snap {
struct device dev;