ql*_def.h: fix QL_ALIGN parenthesization
QL_ALIGN is a set of copies of roundup2, but it was missing an outer set of parentheses, which began to matter with r324538. Now, fully copy the parenthesization of roundup2. Reviewed by: davidcs Differential Revision: https://reviews.freebsd.org/D12673
This commit is contained in:
parent
4e1847781b
commit
dd00a8cd29
@ -486,7 +486,7 @@ struct qlnx_host {
|
||||
typedef struct qlnx_host qlnx_host_t;
|
||||
|
||||
/* note that align has to be a power of 2 */
|
||||
#define QL_ALIGN(size, align) (size + (align - 1)) & ~(align - 1);
|
||||
#define QL_ALIGN(size, align) (((size) + ((align) - 1)) & (~((align) - 1)))
|
||||
#define QL_MIN(x, y) ((x < y) ? x : y)
|
||||
|
||||
#define QL_RUNNING(ifp) \
|
||||
|
@ -200,7 +200,7 @@ struct qla_host {
|
||||
typedef struct qla_host qla_host_t;
|
||||
|
||||
/* note that align has to be a power of 2 */
|
||||
#define QL_ALIGN(size, align) (size + (align - 1)) & ~(align - 1);
|
||||
#define QL_ALIGN(size, align) (((size) + ((align) - 1)) & (~((align) - 1)))
|
||||
#define QL_MIN(x, y) ((x < y) ? x : y)
|
||||
|
||||
#define QL_RUNNING(ifp) \
|
||||
|
@ -263,7 +263,7 @@ struct qla_host {
|
||||
typedef struct qla_host qla_host_t;
|
||||
|
||||
/* note that align has to be a power of 2 */
|
||||
#define QL_ALIGN(size, align) (size + (align - 1)) & ~(align - 1);
|
||||
#define QL_ALIGN(size, align) (((size) + ((align) - 1)) & (~((align) - 1)))
|
||||
#define QL_MIN(x, y) ((x < y) ? x : y)
|
||||
|
||||
#define QL_RUNNING(ifp) (ifp->if_drv_flags & IFF_DRV_RUNNING)
|
||||
|
@ -361,7 +361,7 @@ struct qla_host {
|
||||
typedef struct qla_host qla_host_t;
|
||||
|
||||
/* note that align has to be a power of 2 */
|
||||
#define QL_ALIGN(size, align) (size + (align - 1)) & ~(align - 1);
|
||||
#define QL_ALIGN(size, align) (((size) + ((align) - 1)) & (~((align) - 1)))
|
||||
#define QL_MIN(x, y) ((x < y) ? x : y)
|
||||
|
||||
#define QL_RUNNING(ifp) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user