linux/include
Arnd Bergmann 0384892c2d libceph: fix clang warning for CEPH_DEFINE_OID_ONSTACK
clang complains about assigning a variable to itself during the
declaration:

fs/ceph/ioctl.c:187:26: error: variable 'oid' is uninitialized when used within its own initialization [-Werror,-Wuninitialized]
        CEPH_DEFINE_OID_ONSTACK(oid);
                                ^~~
include/linux/ceph/osdmap.h:122:52: note: expanded from macro 'CEPH_DEFINE_OID_ONSTACK'
        struct ceph_object_id oid = CEPH_OID_INIT_ONSTACK(oid)
                              ~~~                         ^~~
include/linux/ceph/osdmap.h:120:29: note: expanded from macro 'CEPH_OID_INIT_ONSTACK'
    ({ ceph_oid_init(&oid); oid; })
                            ^~~

We use this trick in other places, but it is completely unnecessary
here, as we can just use a regular struct initializer.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-05-07 19:22:37 +02:00
..
acpi
asm-generic
clocksource
crypto
drm drm/ttm: fix re-init of global structures 2019-04-19 11:11:20 -05:00
dt-bindings
keys
kvm
linux libceph: fix clang warning for CEPH_DEFINE_OID_ONSTACK 2019-05-07 19:22:37 +02:00
math-emu
media
memory
misc
net sctp: avoid running the sctp state machine recursively 2019-05-01 09:18:57 -04:00
pcmcia
ras
rdma
scsi
soc
sound
target
trace
uapi 5.1 Third RC pull request 2019-04-28 10:00:45 -07:00
video
xen