Skip to content

Commit 1654716

Browse files
Merge pull request ceph#64977 from MaxKellermann/includes3
Add missing includes to many subsystems Reviewed-by: Adam Emerson <[email protected]> Reviewed-by: Ilya Dryomov <[email protected]>
2 parents 0e5e1aa + 94d414a commit 1654716

File tree

217 files changed

+482
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+482
-28
lines changed

src/auth/AuthMethodList.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <algorithm>
1616
#include "common/debug.h"
17+
#include "include/ceph_fs.h" // for CEPH_AUTH_*
1718
#include "include/str_list.h"
1819

1920
#include "AuthMethodList.h"

src/auth/cephx/CephxKeyServer.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@
1515
#ifndef CEPH_KEYSSERVER_H
1616
#define CEPH_KEYSSERVER_H
1717

18+
#include <cstdint>
19+
#include <list>
20+
#include <map>
21+
#include <string>
22+
1823
#include "auth/KeyRing.h"
1924
#include "CephxProtocol.h"
2025
#include "common/ceph_json.h"
2126
#include "common/ceph_mutex.h"
27+
#include "common/Formatter.h"
2228
#include "include/common_fwd.h"
29+
#include "include/encoding.h"
30+
#include "include/types.h" // for version_t
2331

2432
struct KeyServerData {
2533
version_t version{0};

src/ceph_fuse.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "common/async/context_pool.h"
2222
#include "common/config.h"
2323
#include "common/errno.h"
24+
#include "log/Log.h" // for g_ceph_context->_log
2425

2526
#include "client/Client.h"
2627
#include "client/fuse_ll.h"
@@ -31,6 +32,7 @@
3132

3233
#include "common/Timer.h"
3334
#include "common/ceph_argparse.h"
35+
#include "common/debug.h"
3436
#if defined(__linux__)
3537
#include "common/linux_version.h"
3638
#endif

src/ceph_mon.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414

1515
#include <sys/types.h>
1616
#include <sys/stat.h>
17+
#include <dirent.h>
1718
#include <fcntl.h>
1819

1920
#include <iostream>
21+
#include <sstream>
2022
#include <string>
2123

2224
#include "common/config.h"

src/ceph_osd.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <boost/scoped_ptr.hpp>
1919

2020
#include <iostream>
21+
#include <sstream>
2122
#include <string>
2223

2324
#include "auth/KeyRing.h"
@@ -42,9 +43,11 @@
4243
#include "global/signal_handler.h"
4344

4445
#include "include/color.h"
46+
#include "common/debug.h"
4547
#include "common/errno.h"
4648
#include "common/pick_address.h"
4749

50+
#include "log/Log.h"
4851
#include "perfglue/heap_profiler.h"
4952

5053
#include "include/ceph_assert.h"

src/client/Client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#ifndef CEPH_CLIENT_H
1717
#define CEPH_CLIENT_H
1818

19+
#include <dirent.h>
20+
1921
#include "common/admin_socket.h"
2022
#include "common/CommandTable.h"
2123
#include "common/Finisher.h"

src/client/ClientSnapRealm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#ifndef CEPH_CLIENT_SNAPREALM_H
55
#define CEPH_CLIENT_SNAPREALM_H
66

7+
#include <iostream>
8+
#include <set>
9+
#include <vector>
10+
711
#include "include/types.h"
812
#include "common/snap_types.h"
913
#include "include/xlist.h"

src/client/SyntheticClient.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121

2222
#include "common/config.h"
23+
#include "common/debug.h"
2324
#include "SyntheticClient.h"
2425
#include "osdc/Objecter.h"
2526
#include "osdc/Filer.h"

src/client/fuse_ll.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#endif
3333

3434
// ceph
35+
#include "common/debug.h"
3536
#include "common/errno.h"
3637
#include "common/safe_io.h"
3738
#include "include/types.h"

src/cls/2pc_queue/cls_2pc_queue_types.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// vim: ts=8 sw=2 smarttab
33
#pragma once
44

5+
#include "common/ceph_time.h" // for ceph::coarse_real_time
6+
#include "common/Formatter.h"
7+
#include "include/encoding.h"
58
#include "include/types.h"
69

710
#include <unordered_map>

0 commit comments

Comments
 (0)