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
/
ptlrpc
/
nodemap_handler.c
diff --git
a/lustre/ptlrpc/nodemap_handler.c
b/lustre/ptlrpc/nodemap_handler.c
index
0443c3b
..
6cea792
100644
(file)
--- a/
lustre/ptlrpc/nodemap_handler.c
+++ b/
lustre/ptlrpc/nodemap_handler.c
@@
-994,7
+994,7
@@
static int nodemap_validate_sepol(const char *sepol)
unsigned char mode;
unsigned short ver;
-
CLASSERT(sizeof(buf) =
= sizeof(((struct lu_nodemap *)0)->nm_sepol));
+
BUILD_BUG_ON(sizeof(buf) !
= sizeof(((struct lu_nodemap *)0)->nm_sepol));
if (sepol == NULL)
return -EINVAL;