mte: remove util.h dependency from arm_mte.h

It's needed for including arm_mte.h into memtag_test.cc
pull/242/head
Dmitry Muhomor 2024-01-23 13:32:49 +02:00 committed by Daniel Micay
parent 4756716904
commit 7d2151e40c
1 changed files with 2 additions and 2 deletions

View File

@ -2,11 +2,11 @@
#define ARM_MTE_H #define ARM_MTE_H
#include <arm_acle.h> #include <arm_acle.h>
#include <util.h> #include <stdint.h>
// Returns a tagged pointer. // Returns a tagged pointer.
// See https://developer.arm.com/documentation/ddi0602/2023-09/Base-Instructions/IRG--Insert-Random-Tag- // See https://developer.arm.com/documentation/ddi0602/2023-09/Base-Instructions/IRG--Insert-Random-Tag-
static inline void *arm_mte_create_random_tag(void *p, u64 exclusion_mask) { static inline void *arm_mte_create_random_tag(void *p, uint64_t exclusion_mask) {
return __arm_mte_create_random_tag(p, exclusion_mask); return __arm_mte_create_random_tag(p, exclusion_mask);
} }