Page MenuHomeFreeBSD

D12673.diff
No OneTemporary

D12673.diff

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) \

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 15, 10:42 PM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9092056
Default Alt Text
D12673.diff (1 KB)

Event Timeline