linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] selftests/mm: include strings.h for ffsl
@ 2024-03-29 18:58 Edward Liaw
  0 siblings, 0 replies; only message in thread
From: Edward Liaw @ 2024-03-29 18:58 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton, Shuah Khan, Peter Xu,
	David Hildenbrand, Mike Rapoport (IBM),
	Axel Rasmussen
  Cc: linux-kselftest, kernel-team, Edward Liaw, linux-mm

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")
Signed-off-by: Edward Liaw <edliaw@google.com>
---
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(-)

diff --git a/tools/testing/selftests/mm/vm_util.h b/tools/testing/selftests/mm/vm_util.h
index c02990bbd56f..9007c420d52c 100644
--- a/tools/testing/selftests/mm/vm_util.h
+++ b/tools/testing/selftests/mm/vm_util.h
@@ -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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-29 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29 18:58 [PATCH v2] selftests/mm: include strings.h for ffsl Edward Liaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox