Commit Graph

125862 Commits

Author SHA1 Message Date
Radoslaw Zarzynski
0a4034c10f build: switch the make check bot to Clang.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-08-16 14:23:17 +08:00
Kefu Chai
8e064be4b2
Merge pull request #42781 from cyx1231st/wip-seastore-disable-test-intr-future
crimson/onode-staged-tree: force test to work with invalidated transactions

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-08-16 14:21:58 +08:00
Yingxin Cheng
8b6428c4ac crimson/onode-staged-tree: force test work with invalidated transactions
is_then() is failed to interrupt the continuation chain and cause
unit test failure. So add a workaround to make the test pass again.

Fixes: https://tracker.ceph.com/issues/52259

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-08-16 11:27:34 +08:00
Kefu Chai
c6329042c9
Merge pull request #42778 from tchaikov/wip-crimson-cleanup
crimson/os/seastore: do not capture unused variable

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-08-16 11:10:00 +08:00
Kefu Chai
f435859ec4
Merge pull request #42776 from tchaikov/wip-freebsd
msg/async: build without "using namespace std"

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2021-08-14 18:28:37 +08:00
Kefu Chai
a5f690fe28 test: s/INSTANTIATE_TEST_CASE_P/INSTANTIATE_TEST_SUITE_P/
to silence warnings like:

../src/test/osd/TestOSDMap.cc:2076:1: warning: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P
[-Wdeprecated-declarations]
INSTANTIATE_TEST_CASE_P(
^
../src/googletest/googletest/include/gtest/gtest-param-test.h:505:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
                                     ^
../src/googletest/googletest/include/gtest/internal/gtest-internal.h:1298:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
GTEST_INTERNAL_DEPRECATED(
^
../src/googletest/googletest/include/gtest/internal/gtest-port.h:2249:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
                                                          ^
1 warning generated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-14 10:29:41 +08:00
Kefu Chai
59b29381ac crimson/os/seastore: do not capture unused variable
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-14 10:29:41 +08:00
Kefu Chai
499fb72745
Merge pull request #42744 from wjwithagen/wjw-fix-varlength-init
rgw/store: Do not init var-length arrays

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-08-14 10:28:52 +08:00
Kefu Chai
4d0e11176f msg/async: build without "using namespace std"
* add "std::" prefix in headers

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-14 09:51:38 +08:00
Kefu Chai
6e44813168
Merge pull request #42730 from tchaikov/wip-cmake-build-type
cmake: set CMAKE_BUILD_TYPE only if it is not specified

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
2021-08-14 00:14:12 +08:00
Kefu Chai
8713c241a1
Merge pull request #42742 from tchaikov/wip-no-using-namespace-std
src: build without "using namespace std"

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2021-08-14 00:12:06 +08:00
Kefu Chai
0bb2e68a77 include/object.h: do not "using namespace std"
so the identifiers in "std" namespace do not conflict the ones in C code
or the idenfitiers in other namespaces.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 16:56:55 +08:00
Kefu Chai
20552c5e8a dokan: : build without "using namespace std"
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 16:56:55 +08:00
Kefu Chai
b11c205950 java: build without "using namespace std"
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 13:26:17 +08:00
Kefu Chai
8a3a888041 tools/cephfs: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:39 +08:00
Kefu Chai
c2aa30306c tools/rbd_nbd: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:39 +08:00
Kefu Chai
0b35ce68e4 mount.ceph: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:39 +08:00
Kefu Chai
5fbac6d853 crimson/tools: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:39 +08:00
Kefu Chai
f6b157e946 tools/erasure-code: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:39 +08:00
Kefu Chai
ef9682e9e8 cephfs-mirror: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
4361b030be client: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
8c70de4901 ceph_fuse: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
26c0d8fe78 krbd: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
573fd9804c crush: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
19f81c6c57 compressor: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
baab67ca52 auth: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
5fe2c7c14d kv: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
85244605d2 msg: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
423c7d862f neorados: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
156bd1963d libradosstriper: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:38 +08:00
Kefu Chai
15467a5433 libcephfs: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
e096e8c00d blk: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
b3d7cf423d libcephsqlite: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
61219632bd common: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
b668f5c787 osdc: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
4d7214ff45 rbd_replay: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
9bc2e9d253 cls: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
390b47b3de librados: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
8801f97219 os: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:37 +08:00
Kefu Chai
504b6fca9b osd: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:36 +08:00
Kefu Chai
1d1e173876 test: : build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:36 +08:00
Kefu Chai
e311667847 test/erasure-code: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:36 +08:00
Kefu Chai
fdc63bcea5 test/common: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:36 +08:00
Kefu Chai
d7646874db test/objectstore: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:36 +08:00
Kefu Chai
2bf4b7e4b0 mon: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:36 +08:00
Kefu Chai
c63ecb602e mgr: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:36 +08:00
Kefu Chai
6eb14774fe librbd: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:23:35 +08:00
Kefu Chai
8a283f9164 client: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:21:39 +08:00
Kefu Chai
13302a16aa messages: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:21:39 +08:00
Kefu Chai
9b29dc55a3 mds: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-08-13 12:21:39 +08:00