+ selftests-mlock2-add-missing-define-_gnu_source.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: selftests/mlock2: add missing #define _GNU_SOURCE
has been added to the -mm tree.  Its filename is
     selftests-mlock2-add-missing-define-_gnu_source.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/selftests-mlock2-add-missing-define-_gnu_source.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/selftests-mlock2-add-missing-define-_gnu_source.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Subject: selftests/mlock2: add missing #define _GNU_SOURCE

On glibc 2.3.6:

    mlock2-tests.c: In function 'seek_to_smaps_entry':
    mlock2-tests.c:158: warning: implicit declaration of function 'getline'

According to the manpage of getline(), it needs _GNU_SOURCE before glibc
2.10.

Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Acked-by: Eric B Munson <emunson@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 tools/testing/selftests/vm/mlock2-tests.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN tools/testing/selftests/vm/mlock2-tests.c~selftests-mlock2-add-missing-define-_gnu_source tools/testing/selftests/vm/mlock2-tests.c
--- a/tools/testing/selftests/vm/mlock2-tests.c~selftests-mlock2-add-missing-define-_gnu_source
+++ a/tools/testing/selftests/vm/mlock2-tests.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <sys/mman.h>
 #include <stdint.h>
 #include <stdio.h>
_

Patches currently in -mm which might be from geert@xxxxxxxxxxxxxx are

selftests-mlock2-add-missing-define-_gnu_source.patch
selftests-mlock2-add-ull-prefix-to-64-bit-constants.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux