diff --git a/libprocessgroup/cgroup_map.cpp b/libprocessgroup/cgroup_map.cpp index c8ae2161a..ebc059944 100644 --- a/libprocessgroup/cgroup_map.cpp +++ b/libprocessgroup/cgroup_map.cpp @@ -18,33 +18,19 @@ #define LOG_TAG "libprocessgroup" #include -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include #include -#include #include #include -#include #include -#include -#include #include -using android::base::GetBoolProperty; using android::base::StartsWith; using android::base::StringPrintf; -using android::base::unique_fd; using android::base::WriteStringToFile; static constexpr const char* CGROUP_PROCS_FILE = "/cgroup.procs"; diff --git a/libprocessgroup/cgroup_map.h b/libprocessgroup/cgroup_map.h index 9dd5bf5b1..31925d5d7 100644 --- a/libprocessgroup/cgroup_map.h +++ b/libprocessgroup/cgroup_map.h @@ -16,14 +16,9 @@ #pragma once -#include #include -#include -#include -#include #include -#include #include diff --git a/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_controller.h b/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_controller.h index 8d3aa5697..9427a1cf9 100644 --- a/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_controller.h +++ b/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_controller.h @@ -16,6 +16,7 @@ #pragma once +#include #include #include diff --git a/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_file.h b/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_file.h index f1678a114..2d9786fe6 100644 --- a/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_file.h +++ b/libprocessgroup/cgrouprc_format/include/processgroup/format/cgroup_file.h @@ -16,6 +16,8 @@ #pragma once +#include + #include namespace android { diff --git a/libprocessgroup/sched_policy.cpp b/libprocessgroup/sched_policy.cpp index 1005b1e3e..0f2640a0a 100644 --- a/libprocessgroup/sched_policy.cpp +++ b/libprocessgroup/sched_policy.cpp @@ -19,6 +19,7 @@ #define LOG_TAG "SchedPolicy" #include +#include #include #include diff --git a/libprocessgroup/setup/cgroup_descriptor.h b/libprocessgroup/setup/cgroup_descriptor.h index 699c03cec..9982bfc73 100644 --- a/libprocessgroup/setup/cgroup_descriptor.h +++ b/libprocessgroup/setup/cgroup_descriptor.h @@ -16,6 +16,11 @@ #pragma once +#include +#include + +#include + #include namespace android { diff --git a/libprocessgroup/task_profiles.cpp b/libprocessgroup/task_profiles.cpp index 0c2252b17..48705481c 100644 --- a/libprocessgroup/task_profiles.cpp +++ b/libprocessgroup/task_profiles.cpp @@ -17,7 +17,9 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "libprocessgroup" +#include #include +#include #include #include diff --git a/libprocessgroup/task_profiles.h b/libprocessgroup/task_profiles.h index 7e3c50d9f..184e9e35f 100644 --- a/libprocessgroup/task_profiles.h +++ b/libprocessgroup/task_profiles.h @@ -16,10 +16,10 @@ #pragma once -#include #include -#include + #include +#include #include #include #include