summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authormayurdahibhate <mayurdahibhate31@gmail.com>2021-04-29 20:42:43 +0530
committerBenBE <BenBE@geshi.org>2021-05-10 18:40:53 +0200
commit1b74dfe1877676b914af6dcedd2d7578164aab47 (patch)
tree66ebff16204979342ba4a597c9f3c75a4cb6c005 /linux
parentd9c95369bc51595b6edd4eb6050c47a9b1e7a8d7 (diff)
cleaned up includes with iwyu
Diffstat (limited to 'linux')
-rw-r--r--linux/HugePageMeter.c8
-rw-r--r--linux/HugePageMeter.h1
-rw-r--r--linux/LinuxProcess.c1
-rw-r--r--linux/LinuxProcessList.c1
-rw-r--r--linux/Platform.c2
-rw-r--r--linux/Platform.h3
-rw-r--r--linux/PressureStallMeter.h1
-rw-r--r--linux/SELinuxMeter.c2
-rw-r--r--linux/SELinuxMeter.h1
-rw-r--r--linux/SystemdMeter.c1
-rw-r--r--linux/SystemdMeter.h1
-rw-r--r--linux/ZramMeter.c2
-rw-r--r--linux/ZramMeter.h1
13 files changed, 21 insertions, 4 deletions
diff --git a/linux/HugePageMeter.c b/linux/HugePageMeter.c
index 2a35c125..7f79e125 100644
--- a/linux/HugePageMeter.c
+++ b/linux/HugePageMeter.c
@@ -7,15 +7,19 @@ in the source distribution for its full text.
#include "HugePageMeter.h"
-#include "LinuxProcessList.h"
-
+#include <assert.h>
#include <limits.h>
#include <math.h>
+#include <stddef.h>
#include "CRT.h"
+#include "LinuxProcessList.h"
+#include "Macros.h"
#include "Object.h"
+#include "ProcessList.h"
#include "RichString.h"
+
static const char *HugePageMeter_active_labels[4] = { NULL, NULL, NULL, NULL };
static const int HugePageMeter_attributes[] = {
diff --git a/linux/HugePageMeter.h b/linux/HugePageMeter.h
index 2aa4085b..e3b867d1 100644
--- a/linux/HugePageMeter.h
+++ b/linux/HugePageMeter.h
@@ -9,6 +9,7 @@ in the source distribution for its full text.
#include "Meter.h"
+
extern const MeterClass HugePageMeter_class;
#endif /* HEADER_HugePageMeter */
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index bc5b58d7..7ccdeca6 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -8,6 +8,7 @@ in the source distribution for its full text.
#include "LinuxProcess.h"
+#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index 7a118d77..62bd792e 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -20,6 +20,7 @@ in the source distribution for its full text.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
diff --git a/linux/Platform.c b/linux/Platform.c
index af3fa277..0be82fc3 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -12,7 +12,6 @@ in the source distribution for its full text.
#include <assert.h>
#include <ctype.h>
#include <dirent.h>
-#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <math.h>
@@ -63,6 +62,7 @@ in the source distribution for its full text.
#include "zfs/ZfsCompressedArcMeter.h"
#ifdef HAVE_LIBCAP
+#include <errno.h>
#include <sys/capability.h>
#endif
diff --git a/linux/Platform.h b/linux/Platform.h
index 2506fae5..ff7e954b 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -9,6 +9,9 @@ in the source distribution for its full text.
#include <limits.h>
#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <sys/time.h>
#include <sys/types.h>
#include "Action.h"
diff --git a/linux/PressureStallMeter.h b/linux/PressureStallMeter.h
index 1a0ad584..7317b350 100644
--- a/linux/PressureStallMeter.h
+++ b/linux/PressureStallMeter.h
@@ -12,6 +12,7 @@ in the source distribution for its full text.
#include "Meter.h"
+
extern const MeterClass PressureStallCPUSomeMeter_class;
extern const MeterClass PressureStallIOSomeMeter_class;
diff --git a/linux/SELinuxMeter.c b/linux/SELinuxMeter.c
index 3f79e462..374fa5e9 100644
--- a/linux/SELinuxMeter.c
+++ b/linux/SELinuxMeter.c
@@ -10,12 +10,12 @@ in the source distribution for its full text.
#include "CRT.h"
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/statfs.h>
#include <sys/statvfs.h>
-#include "Macros.h"
#include "Object.h"
#include "XUtils.h"
diff --git a/linux/SELinuxMeter.h b/linux/SELinuxMeter.h
index d79ad017..453940c0 100644
--- a/linux/SELinuxMeter.h
+++ b/linux/SELinuxMeter.h
@@ -9,6 +9,7 @@ in the source distribution for its full text.
#include "Meter.h"
+
extern const MeterClass SELinuxMeter_class;
#endif /* HEADER_SELinuxMeter */
diff --git a/linux/SystemdMeter.c b/linux/SystemdMeter.c
index 47b86563..36ad40a9 100644
--- a/linux/SystemdMeter.c
+++ b/linux/SystemdMeter.c
@@ -19,6 +19,7 @@ in the source distribution for its full text.
#include "Macros.h"
#include "Object.h"
#include "RichString.h"
+#include "Settings.h"
#include "XUtils.h"
#if defined(BUILD_STATIC) && defined(HAVE_LIBSYSTEMD)
diff --git a/linux/SystemdMeter.h b/linux/SystemdMeter.h
index 0f226d65..98ce6f76 100644
--- a/linux/SystemdMeter.h
+++ b/linux/SystemdMeter.h
@@ -10,6 +10,7 @@ in the source distribution for its full text.
#include "Meter.h"
+
extern const MeterClass SystemdMeter_class;
#endif /* HEADER_SystemdMeter */
diff --git a/linux/ZramMeter.c b/linux/ZramMeter.c
index e91a499b..4cfd1f79 100644
--- a/linux/ZramMeter.c
+++ b/linux/ZramMeter.c
@@ -1,5 +1,7 @@
#include "ZramMeter.h"
+#include <stddef.h>
+
#include "CRT.h"
#include "Meter.h"
#include "Object.h"
diff --git a/linux/ZramMeter.h b/linux/ZramMeter.h
index 7cf7861e..ddba1bae 100644
--- a/linux/ZramMeter.h
+++ b/linux/ZramMeter.h
@@ -3,6 +3,7 @@
#include "Meter.h"
+
extern const MeterClass ZramMeter_class;
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy