Skip to content

Commit

Permalink
rbd: add parentheses to object request iterator macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Elder committed Feb 20, 2013
1 parent f44246e commit ef06f4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef06f4d

Please sign in to comment.