cleanup twice included headers
cover cleanup twice included headers
This patch series cleanup twice included header files.
Danny Al-Gaaf (10):
MDS.cc: remove twice included common/errno.h small_io_bench*.cc: remove twice included <iostream> tp_bench.cc: remove twice included <iostream> test_idempotent.cc: remove twice included "os/FileStore.h" workload_generator.cc: remove twice included "common/debug.h" testxattr.cc: remove twice included <iostream> perf_counters.cc: remove twice included header files testmsgr.cc: remove twice included <sys/stat.h> ceph-filestore-dump.cc: remove twice included <iostream> xattr_bench.cc: remove twice included <time.h>
src/mds/MDS.cc | 1 - src/test/bench/small_io_bench.cc | 1 - src/test/bench/small_io_bench_dumb.cc | 1 - src/test/bench/small_io_bench_fs.cc | 1 - src/test/bench/small_io_bench_rbd.cc | 1 - src/test/bench/tp_bench.cc | 1 - src/test/filestore/test_idempotent.cc | 1 - src/test/filestore/workload_generator.cc | 1 - src/test/old/testxattr.cc | 1 - src/test/perf_counters.cc | 2 -- src/test/xattr_bench.cc | 1 - src/testmsgr.cc | 1 - src/tools/ceph-filestore-dump.cc | 1 - 13 files changed, 14 deletions(-)
Signature · 1 line
1.8.1.2
PATCH 1/10 MDS.cc: remove twice included common/errno.h
Cleanup includes, remove twice included common/errno.h.
--- src/mds/MDS.cc | 1 - 1 file changed, 1 deletion(-)
src/mds/MDS.cc +0 -1
@@ -73,7 +73,6 @@ #include "auth/KeyRing.h" #include "common/config.h" -#include "common/errno.h" #include "perfglue/cpu_profiler.h" #include "perfglue/heap_profiler.h"
Signature · 1 line
1.8.1.2
PATCH 2/10 small_io_bench*.cc: remove twice included <iostream>
In reply to Danny Al-GaafCleanup includes, remove twice included <iostream>.
--- src/test/bench/small_io_bench.cc | 1 - src/test/bench/small_io_bench_dumb.cc | 1 - src/test/bench/small_io_bench_fs.cc | 1 - src/test/bench/small_io_bench_rbd.cc | 1 - 4 files changed, 4 deletions(-)
src/test/bench/small_io_bench.cc +0 -1
@@ -12,7 +12,6 @@ #include <sstream> #include <stdlib.h> #include <fstream> -#include <iostream> #include "common/Formatter.h"
src/test/bench/small_io_bench_dumb.cc +0 -1
@@ -12,7 +12,6 @@ #include <sstream> #include <stdlib.h> #include <fstream> -#include <iostream> #include "common/Formatter.h"
src/test/bench/small_io_bench_fs.cc +0 -1
@@ -12,7 +12,6 @@ #include <sstream> #include <stdlib.h> #include <fstream> -#include <iostream> #include "common/Formatter.h"
src/test/bench/small_io_bench_rbd.cc +0 -1
@@ -11,7 +11,6 @@ #include <sstream> #include <stdlib.h> #include <fstream> -#include <iostream> #include "common/Formatter.h"
Signature · 1 line
1.8.1.2
PATCH 3/10 tp_bench.cc: remove twice included <iostream>
In reply to Danny Al-GaafCleanup includes, remove twice included <iostream>.
--- src/test/bench/tp_bench.cc | 1 - 1 file changed, 1 deletion(-)
src/test/bench/tp_bench.cc +0 -1
@@ -12,7 +12,6 @@ #include <sstream> #include <stdlib.h> #include <fstream> -#include <iostream> #include "common/Formatter.h"
Signature · 1 line
1.8.1.2
PATCH 4/10 test_idempotent.cc: remove twice included "os/FileStore.h"
In reply to Danny Al-GaafCleanup includes, remove twice included "os/FileStore.h".
--- src/test/filestore/test_idempotent.cc | 1 - 1 file changed, 1 deletion(-)
src/test/filestore/test_idempotent.cc +0 -1
@@ -24,7 +24,6 @@ #include "os/LevelDBStore.h" #include "os/KeyValueDB.h" #include "os/ObjectStore.h" -#include "os/FileStore.h" void usage(const string &name) { std::cerr << "Usage: " << name << " [new|continue] store_path store_journal db_path"
Signature · 1 line
1.8.1.2
PATCH 5/10 workload_generator.cc: remove twice included "common/debug.h"
In reply to Danny Al-GaafCleanup includes, remove twice included "common/debug.h"
--- src/test/filestore/workload_generator.cc | 1 - 1 file changed, 1 deletion(-)
src/test/filestore/workload_generator.cc +0 -1
@@ -27,7 +27,6 @@ #include <boost/scoped_ptr.hpp> #include <boost/lexical_cast.hpp> #include "workload_generator.h" -#include "common/debug.h" #include "include/assert.h" #include "TestFileStoreState.h"
Signature · 1 line
1.8.1.2
PATCH 6/10 testxattr.cc: remove twice included <iostream>
In reply to Danny Al-GaafCleanup includes, remove twice included <iostream>.
--- src/test/old/testxattr.cc | 1 - 1 file changed, 1 deletion(-)
src/test/old/testxattr.cc +0 -1
@@ -9,7 +9,6 @@ using namespace std; #include <sys/stat.h> #include <fcntl.h> #include <sys/file.h> -#include <iostream> #include <errno.h> #include <dirent.h> #include <sys/xattr.h>
Signature · 1 line
1.8.1.2
PATCH 7/10 perf_counters.cc: remove twice included header files
In reply to Danny Al-GaafCleanup includes, remove twice included "global/global_init.h" and "common/ceph_context.h".
--- src/test/perf_counters.cc | 2 -- 1 file changed, 2 deletions(-)
src/test/perf_counters.cc +0 -2
@@ -43,9 +43,7 @@ #include <time.h> #include <unistd.h> -#include "global/global_init.h" #include "common/common_init.h" -#include "common/ceph_context.h" int main(int argc, char **argv) { std::vector<const char *> preargs;
Signature · 1 line
1.8.1.2
PATCH 8/10 testmsgr.cc: remove twice included <sys/stat.h>
In reply to Danny Al-GaafCleanup includes, remove twice included <sys/stat.h>.
--- src/testmsgr.cc | 1 - 1 file changed, 1 deletion(-)
src/testmsgr.cc +0 -1
@@ -33,7 +33,6 @@ using namespace std; #endif // DARWIN #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #define dout_subsys ceph_subsys_ms
Signature · 1 line
1.8.1.2
PATCH 9/10 ceph-filestore-dump.cc: remove twice included <iostream>
In reply to Danny Al-GaafCleanup includes, remove twice included <iostream>.
--- src/tools/ceph-filestore-dump.cc | 1 - 1 file changed, 1 deletion(-)
src/tools/ceph-filestore-dump.cc +0 -1
@@ -24,7 +24,6 @@ #include <sstream> #include <stdlib.h> #include <fstream> -#include <iostream> #include "common/Formatter.h"
Signature · 1 line
1.8.1.2
PATCH 10/10 xattr_bench.cc: remove twice included <time.h>
In reply to Danny Al-GaafCleanup includes, remove twice included <time.h>.
--- src/test/xattr_bench.cc | 1 - 1 file changed, 1 deletion(-)
src/test/xattr_bench.cc +0 -1
@@ -17,7 +17,6 @@ #include <string.h> #include <iostream> #include <sstream> -#include <time.h> #include "os/FileStore.h" #include "include/Context.h" #include "common/ceph_argparse.h"
Signature · 1 line
1.8.1.2
Gitbuilders came back clean; pushed these to master.
Thanks!
sage
Quoted 33 lines · Danny Al-Gaaf
This patch series cleanup twice included header files.
Danny Al-Gaaf (10):
MDS.cc: remove twice includedcommon/errno.hsmall_io_bench*.cc: remove twice included <iostream> tp_bench.cc: remove twice included <iostream> test_idempotent.cc: remove twice included "os/FileStore.h" workload_generator.cc: remove twice included "common/debug.h" testxattr.cc: remove twice included <iostream> perf_counters.cc: remove twice included header files testmsgr.cc: remove twice included <sys/stat.h> ceph-filestore-dump.cc: remove twice included <iostream> xattr_bench.cc: remove twice included <time.h>src/mds/MDS.cc | 1 - src/test/bench/small_io_bench.cc | 1 - src/test/bench/small_io_bench_dumb.cc | 1 - src/test/bench/small_io_bench_fs.cc | 1 - src/test/bench/small_io_bench_rbd.cc | 1 - src/test/bench/tp_bench.cc | 1 - src/test/filestore/test_idempotent.cc | 1 - src/test/filestore/workload_generator.cc | 1 - src/test/old/testxattr.cc | 1 - src/test/perf_counters.cc | 2 -- src/test/xattr_bench.cc | 1 - src/testmsgr.cc | 1 - src/tools/ceph-filestore-dump.cc | 1 - 13 files changed, 14 deletions(-)Signature · 1 line
1.8.1.2