]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tracing: Fix C type errors in librados tracing
authorFlorian Weimer <fweimer@redhat.com>
Wed, 20 Dec 2023 13:16:19 +0000 (14:16 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 8 Jan 2024 11:02:38 +0000 (12:02 +0100)
commitf9aea9105b6c1a8d7bff0ec0675f84f2ffb1db6f
tree9cc9167b1f94f8f4f6303a936d9ee060aca49c9e
parente33ea91ef1d6f84610bd80a5359e3578e4c4baee
tracing: Fix C type errors in librados tracing

This fixes type errors like this:

In file included from /usr/include/lttng/tracepoint-event.h:69,
                 from …-build/include/tracing/librados.h:4143,
                 from …/src/tracing/librados.c:6
:
…-build/include/tracing/librados.h:
 In function ‘lttng_ust__event_probe__librados___rados_mon_command_exit’:
…-build/include/tracing/librados.h:477:9: error: initialization of ‘size_t’ {aka ‘long unsigned int’} from ‘size_t *’ {aka ‘long unsigned int *’} makes integer from pointer without a cast
  477 |         ceph_ctf_integerp(size_t, outslen, outslen)
      |         ^~~~~~~~~~~~~~~~~

GCC 14 will likely treat these type mismatches as an error
and fail the build.

Signed-off-by: Florian Weimer <fweimer@redhat.com>
src/tracing/librados.tp
src/tracing/tracing-common.h