[PATCH v4 12/15] tests/intel/xe_create: Conditionally define PAGE_SIZE for non-Android platforms
Jeevaka Prabu Badrappan
jeevaka.badrappan at intel.com
Wed May 7 16:01:45 UTC 2025
Ensure PAGE_SIZE is defined only if it is not already defined,
addressing compatibility with Android where PAGE_SIZE is predefined.
Note: PAGE_SIZE is defined in multiple files; a cleanup will be
addressed in a future patch series.
Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan at intel.com>
---
tests/intel/xe_create.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/intel/xe_create.c b/tests/intel/xe_create.c
index b22084c84..e8b8bb025 100644
--- a/tests/intel/xe_create.c
+++ b/tests/intel/xe_create.c
@@ -18,7 +18,9 @@
#include "xe/xe_ioctl.h"
#include "xe/xe_query.h"
+#ifndef PAGE_SIZE
#define PAGE_SIZE 0x1000
+#endif
static struct param {
unsigned int quantity;
--
2.34.1
More information about the igt-dev
mailing list