Commit 935a44d3 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Federico Vaga

trivial: reorder of one macro in zio.h

So the inline that followed is in the right place
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 1e7dd3dc
......@@ -258,14 +258,14 @@ static inline struct zio_channel *__first_enabled_chan(struct zio_cset *cset,
chan++;
}
}
#define SET_OBJECT_NAME(_name) .head = {.name = _name}
#define cset_for_each(cset, cptr) \
for (cptr = cset->chan; \
(cptr = __first_enabled_chan(cset, cptr)); \
cptr++)
/* Use this in defining csets */
#define SET_OBJECT_NAME(_name) .head = {.name = _name}
/*
* Return the number of enabled channel on a cset. Be careful: device
* spinlock must be taken before invoke this function and it can be released
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment