Skip to contentSkip to conversation

cleanup twice included headers

PATCH In review Danny Al-Gaaf 2 participants 12 messages Feb 4, 2013 Arm STM32

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 4153417..0dd3f1b 100644
@@ -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
#2 lore raw

PATCH 2/10 small_io_bench*.cc: remove twice included <iostream>

In reply to Danny Al-Gaaf

Cleanup 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
index 3fc0eff..2b20027 100644
@@ -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
index 46bdd0f..6d79fdd 100644
@@ -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
index 6ce1394..4a3adc9 100644
@@ -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
index 3f148eb..4c56ffd 100644
@@ -11,7 +11,6 @@
 #include <sstream>
 #include <stdlib.h>
 #include <fstream>
-#include <iostream>
 
 #include "common/Formatter.h"
 
Signature · 1 line
1.8.1.2
#3 lore raw

PATCH 3/10 tp_bench.cc: remove twice included <iostream>

In reply to Danny Al-Gaaf

Cleanup 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
index daee790..31a4db3 100644
@@ -12,7 +12,6 @@
 #include <sstream>
 #include <stdlib.h>
 #include <fstream>
-#include <iostream>
 
 #include "common/Formatter.h"
 
Signature · 1 line
1.8.1.2
#4 lore raw

PATCH 4/10 test_idempotent.cc: remove twice included "os/FileStore.h"

In reply to Danny Al-Gaaf

Cleanup 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
index f49aded..6c13861 100644
@@ -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
#5 lore raw

PATCH 5/10 workload_generator.cc: remove twice included "common/debug.h"

In reply to Danny Al-Gaaf

Cleanup 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
index f97bc66..5d7b813 100644
@@ -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
#6 lore raw

PATCH 6/10 testxattr.cc: remove twice included <iostream>

In reply to Danny Al-Gaaf

Cleanup includes, remove twice included <iostream>.

---
 src/test/old/testxattr.cc | 1 -
 1 file changed, 1 deletion(-)
src/test/old/testxattr.cc +0 -1
index 65bb4b1..b1ef126 100644
@@ -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
#7 lore raw

PATCH 7/10 perf_counters.cc: remove twice included header files

In reply to Danny Al-Gaaf

Cleanup 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
index e5090d2..d8f04ca 100644
@@ -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
#8 lore raw

PATCH 8/10 testmsgr.cc: remove twice included <sys/stat.h>

In reply to Danny Al-Gaaf

Cleanup includes, remove twice included <sys/stat.h>.

---
 src/testmsgr.cc | 1 -
 1 file changed, 1 deletion(-)
src/testmsgr.cc +0 -1
index eb716b9..4de779b 100644
@@ -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
#9 lore raw

PATCH 9/10 ceph-filestore-dump.cc: remove twice included <iostream>

In reply to Danny Al-Gaaf

Cleanup 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
index 224ef32..2dfa1e5 100644
@@ -24,7 +24,6 @@
 #include <sstream>
 #include <stdlib.h>
 #include <fstream>
-#include <iostream>
 
 #include "common/Formatter.h"
 
Signature · 1 line
1.8.1.2
#10 lore raw

PATCH 10/10 xattr_bench.cc: remove twice included <time.h>

In reply to Danny Al-Gaaf

Cleanup includes, remove twice included <time.h>.

---
 src/test/xattr_bench.cc | 1 -
 1 file changed, 1 deletion(-)
src/test/xattr_bench.cc +0 -1
index 3a4b423..d212f55 100644
@@ -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
#11 lore raw
In reply to Danny Al-Gaaf

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 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