[Intel-gfx] [PATCH i-g-t v2] include inttypes.h for PRI defines

Mike Frysinger vapier at gentoo.org
Wed Jan 10 22:12:15 UTC 2018


Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96620
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 lib/igt_fb.c                  | 1 +
 lib/igt_kms.c                 | 1 +
 lib/intel_os.c                | 1 +
 tests/prime_nv_pcopy.c        | 1 +
 tools/hsw_compute_wrpll.c     | 1 +
 tools/intel_gpu_top.c         | 1 +
 tools/intel_opregion_decode.c | 1 +
 tools/intel_residency.c       | 1 +
 tools/intel_watermark.c       | 1 +
 9 files changed, 9 insertions(+)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index dcae07dff021..ded639e833f1 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <math.h>
+#include <inttypes.h>
 
 #include "drmtest.h"
 #include "igt_fb.h"
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 069752ecf12b..eb57f4a99454 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -26,6 +26,7 @@
  */
 
 #include "config.h"
+#include <inttypes.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <stdarg.h>
diff --git a/lib/intel_os.c b/lib/intel_os.c
index a77566c15d9b..bb2c16bf3283 100644
--- a/lib/intel_os.c
+++ b/lib/intel_os.c
@@ -28,6 +28,7 @@
 
 #include "config.h"
 
+#include <inttypes.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/tests/prime_nv_pcopy.c b/tests/prime_nv_pcopy.c
index b5ceabf15cc7..bbcf76807cf6 100644
--- a/tests/prime_nv_pcopy.c
+++ b/tests/prime_nv_pcopy.c
@@ -15,6 +15,7 @@
 
 
 #include "igt.h"
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/tools/hsw_compute_wrpll.c b/tools/hsw_compute_wrpll.c
index 6c85c07c77c4..b1eeb7c7cd76 100644
--- a/tools/hsw_compute_wrpll.c
+++ b/tools/hsw_compute_wrpll.c
@@ -21,6 +21,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <stdint.h>
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 83cf53eaaf0b..098e6ce3ff86 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -29,6 +29,7 @@
 
 #include "config.h"
 
+#include <inttypes.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/tools/intel_opregion_decode.c b/tools/intel_opregion_decode.c
index 380e43a8b514..b0a503e1a0c0 100644
--- a/tools/intel_opregion_decode.c
+++ b/tools/intel_opregion_decode.c
@@ -28,6 +28,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <getopt.h>
+#include <inttypes.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/tools/intel_residency.c b/tools/intel_residency.c
index 116215a1ede1..bfab40da42d4 100644
--- a/tools/intel_residency.c
+++ b/tools/intel_residency.c
@@ -28,6 +28,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <inttypes.h>
 #include <unistd.h>
 #include <signal.h>
 #include <time.h>
diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index 308e351dcd2f..03da68b6ff69 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -22,6 +22,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
-- 
2.15.1



More information about the Intel-gfx mailing list