Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: Remove redundant includes #15003

Merged
merged 1 commit into from May 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion src/ceph_ver.c
@@ -1,5 +1,4 @@

#include "acconfig.h"
#include "ceph_ver.h"

#define CONCAT_VER_SYMBOL(x) ceph_ver__##x
Expand Down
1 change: 0 additions & 1 deletion src/common/BackTrace.cc
Expand Up @@ -7,7 +7,6 @@
#include "BackTrace.h"

#include "common/version.h"
#include "acconfig.h"

#define _STR(x) #x
#define STRINGIFY(x) _STR(x)
Expand Down
2 changes: 1 addition & 1 deletion src/common/LogEntry.cc
@@ -1,7 +1,7 @@

#include <syslog.h>

#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/predicate.hpp>

#include "LogEntry.h"
#include "Formatter.h"
Expand Down
1 change: 0 additions & 1 deletion src/common/PrebufferedStreambuf.h
@@ -1,7 +1,6 @@
#ifndef CEPH_COMMON_PREBUFFEREDSTREAMBUF_H
#define CEPH_COMMON_PREBUFFEREDSTREAMBUF_H

#include <iosfwd>
#include <string>
#include <streambuf>

Expand Down
11 changes: 6 additions & 5 deletions src/common/bloom_filter.cc
@@ -1,8 +1,9 @@
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab

#include "include/types.h"
#include "common/bloom_filter.hpp"
#include "common/Formatter.h"
#include "include/buffer.h"

MEMPOOL_DEFINE_FACTORY(unsigned char, byte, bloom_filter);

Expand Down Expand Up @@ -66,7 +67,7 @@ void bloom_filter::dump(Formatter *f) const
f->close_section();
}

void bloom_filter::generate_test_instances(list<bloom_filter*>& ls)
void bloom_filter::generate_test_instances(std::list<bloom_filter*>& ls)
{
ls.push_back(new bloom_filter(10, .5, 1));
ls.push_back(new bloom_filter(10, .5, 1));
Expand All @@ -88,7 +89,7 @@ void compressible_bloom_filter::encode(bufferlist& bl) const

uint32_t s = size_list.size();
::encode(s, bl);
for (vector<size_t>::const_iterator p = size_list.begin();
for (std::vector<size_t>::const_iterator p = size_list.begin();
p != size_list.end(); ++p)
::encode((uint64_t)*p, bl);

Expand Down Expand Up @@ -117,13 +118,13 @@ void compressible_bloom_filter::dump(Formatter *f) const
bloom_filter::dump(f);

f->open_array_section("table_sizes");
for (vector<size_t>::const_iterator p = size_list.begin();
for (std::vector<size_t>::const_iterator p = size_list.begin();
p != size_list.end(); ++p)
f->dump_unsigned("size", (uint64_t)*p);
f->close_section();
}

void compressible_bloom_filter::generate_test_instances(list<compressible_bloom_filter*>& ls)
void compressible_bloom_filter::generate_test_instances(std::list<compressible_bloom_filter*>& ls)
{
ls.push_back(new compressible_bloom_filter(10, .5, 1));
ls.push_back(new compressible_bloom_filter(10, .5, 1));
Expand Down
1 change: 0 additions & 1 deletion src/common/bloom_filter.hpp
Expand Up @@ -32,7 +32,6 @@

#include "include/mempool.h"
#include "include/encoding.h"
#include "common/Formatter.h"

static const std::size_t bits_per_char = 0x08; // 8 bits in 1 char(unsigned)
static const unsigned char bit_mask[bits_per_char] = {
Expand Down
2 changes: 0 additions & 2 deletions src/common/io_priority.cc
Expand Up @@ -12,15 +12,13 @@
*
*/

#include <sys/types.h>
#include <unistd.h>
#ifdef __linux__
#include <sys/syscall.h> /* For SYS_xxx definitions */
#endif
#include <algorithm>
#include <errno.h>

#include "common/errno.h"
#include "io_priority.h"

pid_t ceph_gettid(void)
Expand Down
1 change: 0 additions & 1 deletion src/common/perf_histogram.h
Expand Up @@ -17,7 +17,6 @@

#include "common/Formatter.h"
#include "include/atomic.h"
#include "include/int_types.h"

#include <array>
#include <memory>
Expand Down
2 changes: 0 additions & 2 deletions src/common/sctp_crc32.c
Expand Up @@ -43,8 +43,6 @@ __FBSDID("$FreeBSD: src/sys/netinet/sctp_crc32.c,v 1.8 2007/05/08 17:01:10 rrs E

#include <stdint.h>

#include "include/byteorder.h"

#ifndef SCTP_USE_ADLER32


Expand Down
1 change: 0 additions & 1 deletion src/common/utf8.c
Expand Up @@ -13,7 +13,6 @@
*/
#include "common/utf8.h"

#include <stdio.h>
#include <string.h>

static int high_bits_set(int c)
Expand Down
4 changes: 0 additions & 4 deletions src/include/mempool.h
Expand Up @@ -14,19 +14,15 @@

#ifndef _CEPH_INCLUDE_MEMPOOL_H
#define _CEPH_INCLUDE_MEMPOOL_H
#include <iostream>
#include <fstream>

#include <cstddef>
#include <map>
#include <unordered_map>
#include <set>
#include <vector>
#include <assert.h>
#include <list>
#include <mutex>
#include <atomic>
#include <climits>
#include <typeinfo>

#include <common/Formatter.h>
Expand Down
2 changes: 0 additions & 2 deletions src/mount/mount.ceph.c
Expand Up @@ -3,8 +3,6 @@
#include <stdlib.h>
#include <errno.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/wait.h>

#include "common/module.h"
#include "common/secret.h"
Expand Down
1 change: 1 addition & 0 deletions src/tools/rbd_nbd/rbd-nbd.cc
Expand Up @@ -33,6 +33,7 @@
#include <sys/socket.h>

#include <iostream>
#include <fstream>
#include <boost/regex.hpp>

#include "mon/MonClient.h"
Expand Down