diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2017-01-25 23:36:34 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-27 09:40:56 +0100 |
| commit | 74e3bb75315ce62a4567f2871276bab32802e8b4 (patch) | |
| tree | b5db398f4d1de7a1169551ee02873db4d994da8f /tools/perf/scripts/python/bin | |
| parent | staging: most: hdm-usb: fix symbolic permissions warning (diff) | |
| download | linux-74e3bb75315ce62a4567f2871276bab32802e8b4.tar.gz linux-74e3bb75315ce62a4567f2871276bab32802e8b4.zip | |
staging: lustre: ptlrpc: avoid warning on missing return
The newly added function triggers a harmless warning:
drivers/staging/lustre/lustre/ptlrpc/pack_generic.c: In function 'lustre_shrink_msg':
drivers/staging/lustre/lustre/ptlrpc/pack_generic.c:472:1: error: control reaches end of non-void function [-Werror=return-type]
This probably happens because LASSERTF() contains an 'unlikely()' that
sometimes prevents gcc from analysing the control flow correctly.
Adding a return statement here seems harmless and lets us keep that
unlikely().
Fixes: 96049bd1ecd0 ("staging: lustre: ptlrpc: embed highest XID in each request")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
