lkml.org 
[lkml]   [2021]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 01/21] selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c
    Date
    From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    When backporting 0db282ba2c12 ("selftest: use mmap instead of
    posix_memalign to allocate memory") to this stable branch, I forgot a {
    breaking the build.

    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    tools/testing/selftests/vm/userfaultfd.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/tools/testing/selftests/vm/userfaultfd.c
    +++ b/tools/testing/selftests/vm/userfaultfd.c
    @@ -141,7 +141,7 @@ static void anon_allocate_area(void **al
    {
    *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE,
    MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
    - if (*alloc_area == MAP_FAILED)
    + if (*alloc_area == MAP_FAILED) {
    fprintf(stderr, "mmap of anonymous memory failed");
    *alloc_area = NULL;
    }

    \
     
     \ /
      Last update: 2021-07-29 15:57    [W:2.525 / U:0.664 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site