Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81970956
D12673.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12673.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12673: ql*_def.h: fix QL_ALIGN parenthesization
Attached
Detach File
Event Timeline
Log In to Comment