1 From 176517c9310281d00dd3210ab4cc4d3cdc26b17e Mon Sep 17 00:00:00 2001
2 From: Edward Liaw <edliaw@google.com>
3 Date: Fri, 29 Mar 2024 18:58:10 +0000
4 Subject: selftests/mm: include strings.h for ffsl
6 From: Edward Liaw <edliaw@google.com>
8 commit 176517c9310281d00dd3210ab4cc4d3cdc26b17e upstream.
10 Got a compilation error on Android for ffsl after 91b80cc5b39f
11 ("selftests: mm: fix map_hugetlb failure on 64K page size systems")
14 Link: https://lkml.kernel.org/r/20240329185814.16304-1-edliaw@google.com
15 Fixes: af605d26a8f2 ("selftests/mm: merge util.h into vm_util.h")
16 Signed-off-by: Edward Liaw <edliaw@google.com>
17 Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
18 Cc: Axel Rasmussen <axelrasmussen@google.com>
19 Cc: David Hildenbrand <david@redhat.com>
20 Cc: "Mike Rapoport (IBM)" <rppt@kernel.org>
21 Cc: Peter Xu <peterx@redhat.com>
22 Cc: Shuah Khan <shuah@kernel.org>
23 Cc: <stable@vger.kernel.org>
24 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
25 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27 tools/testing/selftests/mm/vm_util.h | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
30 --- a/tools/testing/selftests/mm/vm_util.h
31 +++ b/tools/testing/selftests/mm/vm_util.h
36 -#include <string.h> /* ffsl() */
37 +#include <strings.h> /* ffsl() */
38 #include <unistd.h> /* _SC_PAGESIZE */
40 #define BIT_ULL(nr) (1ULL << (nr))