diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-10-04 00:25:36 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-10-04 13:28:50 +0200 |
commit | a39f7ec41766118bf836d266224505741570ada6 (patch) | |
tree | 441cd39d5155d82b43cb83fed15902326d6b5424 /fs/notify/fsnotify.c | |
parent | 23c9deeb3285d34fd243abb3d6b9f07db60c3cf4 (diff) | |
download | linux-a39f7ec41766118bf836d266224505741570ada6.tar.bz2 |
fsnotify: convert runtime BUG_ON() to BUILD_BUG_ON()
The BUG_ON() statements to verify number of bits in ALL_FSNOTIFY_BITS
and ALL_INOTIFY_BITS are converted to build time check of the constant.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify/fsnotify.c')
-rw-r--r-- | fs/notify/fsnotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c index 7391a02bf723..875975504409 100644 --- a/fs/notify/fsnotify.c +++ b/fs/notify/fsnotify.c @@ -395,7 +395,7 @@ static __init int fsnotify_init(void) { int ret; - BUG_ON(hweight32(ALL_FSNOTIFY_BITS) != 23); + BUILD_BUG_ON(HWEIGHT32(ALL_FSNOTIFY_BITS) != 23); ret = init_srcu_struct(&fsnotify_mark_srcu); if (ret) |