Index: head/sys/dev/qlnx/qlnxe/qlnx_def.h =================================================================== --- head/sys/dev/qlnx/qlnxe/qlnx_def.h +++ head/sys/dev/qlnx/qlnxe/qlnx_def.h @@ -486,7 +486,7 @@ 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) \ Index: head/sys/dev/qlxgb/qla_def.h =================================================================== --- head/sys/dev/qlxgb/qla_def.h +++ head/sys/dev/qlxgb/qla_def.h @@ -200,7 +200,7 @@ 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) \ Index: head/sys/dev/qlxgbe/ql_def.h =================================================================== --- head/sys/dev/qlxgbe/ql_def.h +++ head/sys/dev/qlxgbe/ql_def.h @@ -263,7 +263,7 @@ 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) Index: head/sys/dev/qlxge/qls_def.h =================================================================== --- head/sys/dev/qlxge/qls_def.h +++ head/sys/dev/qlxge/qls_def.h @@ -361,7 +361,7 @@ 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) \