linux-uconsole/include/linux/ceph
Arnd Bergmann 13ef90e1bb libceph: use BUG() instead of BUG_ON(1)
commit d24cdcd3e4 upstream.

I ran into this compile warning, which is the result of BUG_ON(1)
not always leading to the compiler treating the code path as
unreachable:

    include/linux/ceph/osdmap.h: In function 'ceph_can_shift_osds':
    include/linux/ceph/osdmap.h:62:1: error: control reaches end of non-void function [-Werror=return-type]

Using BUG() here avoids the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-15 09:57:15 +08:00
..
auth.h
buffer.h
ceph_debug.h
ceph_features.h
ceph_frag.h
ceph_fs.h
ceph_hash.h
debugfs.h
decode.h
libceph.h
mdsmap.h
messenger.h
mon_client.h
msgpool.h
msgr.h
osd_client.h
osdmap.h libceph: use BUG() instead of BUG_ON(1) 2017-03-15 09:57:15 +08:00
pagelist.h
rados.h
types.h