Skip to contentSkip to conversation

selftests/mm: include strings.h for ffsl

PATCH Applied Edward Liaw 1 participant 1 message Mar 29, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 selftests/mm: include strings.h for ffsl

Got a compilation error on Android for ffsl after 91b80cc5b39f ("selftests: mm: fix map_hugetlb failure on 64K page size systems") included vm_util.h.

Fixes af605d26a8f2 ("selftests/mm: merge util.h into vm_util.h")

---
v2: s/import/include and clarified that compilation error was on Android

 tools/testing/selftests/mm/vm_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/mm/vm_util.h +1 -1
index c02990bbd56f..9007c420d52c 100644
@@ -3,7 +3,7 @@
 #include <stdbool.h>
 #include <sys/mman.h>
 #include <err.h>
-#include <string.h> /* ffsl() */
+#include <strings.h> /* ffsl() */
 #include <unistd.h> /* _SC_PAGESIZE */
 
 #define BIT_ULL(nr)                   (1ULL << (nr))

--
2.44.0.478.gd926399ef9-goog