Skip to content

Commit 176517c

Browse files
Edward Liawakpm00
authored andcommitted
selftests/mm: include strings.h for ffsl
Got a compilation error on Android for ffsl after 91b80cc ("selftests: mm: fix map_hugetlb failure on 64K page size systems") included vm_util.h. Link: https://lkml.kernel.org/r/20240329185814.16304-1-edliaw@google.com Fixes: af605d2 ("selftests/mm: merge util.h into vm_util.h") Signed-off-by: Edward Liaw <edliaw@google.com> Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Cc: Axel Rasmussen <axelrasmussen@google.com> Cc: David Hildenbrand <david@redhat.com> Cc: "Mike Rapoport (IBM)" <rppt@kernel.org> Cc: Peter Xu <peterx@redhat.com> Cc: Shuah Khan <shuah@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent fc2c226 commit 176517c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/mm/vm_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdbool.h>
44
#include <sys/mman.h>
55
#include <err.h>
6-
#include <string.h> /* ffsl() */
6+
#include <strings.h> /* ffsl() */
77
#include <unistd.h> /* _SC_PAGESIZE */
88

99
#define BIT_ULL(nr) (1ULL << (nr))

0 commit comments

Comments
 (0)