rbd: add parentheses to object request iterator macros
authorAlex Elder <elder@inktank.com>
Fri, 8 Feb 2013 15:55:48 +0000 (09:55 -0600)
committerAlex Elder <elder@inktank.com>
Wed, 20 Feb 2013 01:14:02 +0000 (19:14 -0600)
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>
drivers/block/rbd.c

index 13ee789..ff9e925 100644 (file)
@@ -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;