Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-12923 lustre: Replace CLASSERT() with BUILD_BUG_ON()
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_iam_lfix.c
diff --git
a/lustre/osd-ldiskfs/osd_iam_lfix.c
b/lustre/osd-ldiskfs/osd_iam_lfix.c
index
5d44a33
..
ef1906b
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_iam_lfix.c
+++ b/
lustre/osd-ldiskfs/osd_iam_lfix.c
@@
-757,7
+757,7
@@
void iam_lfix_format_init(void)
#define STORE_UNALIGNED(val, dst) \
({ \
typeof(val) __val = (val); \
-
CLASSERT(sizeof(val) == sizeof(*(dst)));
\
+
BUILD_BUG_ON(sizeof(val) != sizeof(*(dst)));
\
memcpy(dst, &__val, sizeof(*(dst))); \
})