[PATCH v4 12/15] tests/intel/xe_create: Conditionally define PAGE_SIZE for non-Android platforms
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Wed May 14 12:56:26 UTC 2025
On Wed, May 07, 2025 at 04:01:45PM +0000, Jeevaka Prabu Badrappan wrote:
> 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
Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
--
Zbigniew
>
> static struct param {
> unsigned int quantity;
> --
> 2.34.1
>
More information about the igt-dev
mailing list