]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: Fix gcc warnings about subobject-linkage in ceph_test_rados_io_sequence 67553/head
authorJon Bailey <jonathan.bailey1@ibm.com>
Thu, 26 Feb 2026 17:06:03 +0000 (17:06 +0000)
committerJon Bailey <jonathan.bailey1@ibm.com>
Thu, 26 Feb 2026 17:06:03 +0000 (17:06 +0000)
commit2e4a7e9bd2f4590f193ce1f1d3029d1a27253e47
tree33eabaa728ae4460a6cc154300f550553779f981
parent41512b587ac31ec939a93696840ff225dfe3b853
test: Fix gcc warnings about subobject-linkage in ceph_test_rados_io_sequence

In gcc, you get warnings for subobject-linkage in ceph_test_rados_io_sequence. This is because we have static arrays inside a namespace, which means we are restricting that variable's use to only within the translation unit (internal linkage). The warnings are telling us that we are using these variables in classes we have defined in the header file, which have the possibility of being used outside of the translation unit. This happens because we are using some of these static variables as template parameters that we are passing by reference, and then those templates are being stored by some of our classes for use.

I would like these classes to have the possibility to be usable outside of this translation unit, so the fix here is just to remove the static. These variables are marked as inline, which when static is not present means they are visible outside of the translation unit, which means the warning no longer shows.

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
src/test/osd/ceph_test_rados_io_sequence/ceph_test_rados_io_sequence.h