]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-6.8/selftests-mm-include-strings.h-for-ffsl.patch
6.8-stable patches
[thirdparty/kernel/stable-queue.git] / queue-6.8 / selftests-mm-include-strings.h-for-ffsl.patch
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
5
6 From: Edward Liaw <edliaw@google.com>
7
8 commit 176517c9310281d00dd3210ab4cc4d3cdc26b17e upstream.
9
10 Got a compilation error on Android for ffsl after 91b80cc5b39f
11 ("selftests: mm: fix map_hugetlb failure on 64K page size systems")
12 included vm_util.h.
13
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>
26 ---
27 tools/testing/selftests/mm/vm_util.h | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30 --- a/tools/testing/selftests/mm/vm_util.h
31 +++ b/tools/testing/selftests/mm/vm_util.h
32 @@ -3,7 +3,7 @@
33 #include <stdbool.h>
34 #include <sys/mman.h>
35 #include <err.h>
36 -#include <string.h> /* ffsl() */
37 +#include <strings.h> /* ffsl() */
38 #include <unistd.h> /* _SC_PAGESIZE */
39
40 #define BIT_ULL(nr) (1ULL << (nr))