diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-02-02 14:26:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-02 15:03:04 +0300 |
commit | f440d909085e497540788fecc056dc39ea0471ed (patch) | |
tree | c2100604c07c552f8cbb05a8a60a99f0462d0c31 /tools/perf/scripts/python/syscall-counts.py | |
parent | 757b9bd074312090107bc2582b27c04ea0eb2b88 (diff) | |
download | linux-f440d909085e497540788fecc056dc39ea0471ed.tar.xz |
staging: lustre: remove CLASSERT macro
lustre uses a fake switch() statement as a compile-time assert, but unfortunately
each use of that causes a warning when building with clang:
drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c:2907:2: warning: no case matching constant switch condition '42'
drivers/staging/lustre/lnet/klnds/socklnd/../../../include/linux/libcfs/libcfs_private.h:294:36: note: expanded from macro 'CLASSERT'
#define CLASSERT(cond) do {switch (42) {case (cond): case 0: break; } } while (0)
As Greg suggested, let's just kill off this macro completely instead of
fixing it. This replaces it with BUILD_BUG_ON(), which means we have
to negate all the conditions in the process.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions