summaryrefslogtreecommitdiff
path: root/lib/intel_mocs.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2024-01-11 15:01:27 +0100
committerKamil Konieczny <kamil.konieczny@linux.intel.com>2024-01-22 16:12:49 +0100
commitaaf394f212f927e275c2c525a255f338d52676cd (patch)
tree79c0944d7e9b5f959a18284a87ef0178526fbe42 /lib/intel_mocs.h
parentfa4ee7909216f9fc3a9a7e6c10fb7c2c709b6e20 (diff)
lib/*.h: ensure that all includes will be there
Headers should be self-contained, having all includes they need to built. Add the missing ones (alphabetically sorted). Checking what includes were missed was done with the help of this small script: for i in $(ls lib/*.h|grep -v igt_freebsd.h|sort); do gcc -I . -I build/ -I include/ -I ./include/drm-uapi/ -I lib/ -I /usr/include/cairo/ -I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include/ -c $i done While at this also sorted includes and added a missing logic to detect duplicated includes at igt_tread. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'lib/intel_mocs.h')
-rw-r--r--lib/intel_mocs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/intel_mocs.h b/lib/intel_mocs.h
index 278f143ec..a9e075273 100644
--- a/lib/intel_mocs.h
+++ b/lib/intel_mocs.h
@@ -6,6 +6,8 @@
#ifndef _INTEL_MOCS_H
#define _INTEL_MOCS_H
+#include <stdint.h>
+
uint8_t intel_get_wb_mocs_index(int fd);
uint8_t intel_get_uc_mocs_index(int fd);