Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751936AbbKIQAE (ORCPT ); Mon, 9 Nov 2015 11:00:04 -0500 Received: from prod-mail-xrelay06.akamai.com ([96.6.114.98]:56652 "EHLO prod-mail-xrelay06.akamai.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750855AbbKIQAB (ORCPT ); Mon, 9 Nov 2015 11:00:01 -0500 X-Greylist: delayed 581 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Nov 2015 11:00:01 EST Date: Mon, 9 Nov 2015 10:50:13 -0500 From: Eric B Munson To: Geert Uytterhoeven Cc: Thierry Reding , Andrew Morton , Shuah Khan , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] selftests/mlock2: Add missing #define _GNU_SOURCE Message-ID: <20151109155013.GB28486@akamai.com> References: <1447064069-21469-1-git-send-email-geert@linux-m68k.org> <1447064069-21469-2-git-send-email-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline In-Reply-To: <1447064069-21469-2-git-send-email-geert@linux-m68k.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2232 Lines: 67 --xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 09 Nov 2015, Geert Uytterhoeven wrote: > On glibc 2.3.6: >=20 > mlock2-tests.c: In function 'seek_to_smaps_entry': > mlock2-tests.c:158: warning: implicit declaration of function 'getlin= e' >=20 > According to the manpage of getline(), it needs _GNU_SOURCE before glibc > 2.10. >=20 > Signed-off-by: Geert Uytterhoeven Acked-by: Eric B Munson > --- > tools/testing/selftests/vm/mlock2-tests.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/se= lftests/vm/mlock2-tests.c > index 4431994aade2ef6f..cb247219f1f72889 100644 > --- a/tools/testing/selftests/vm/mlock2-tests.c > +++ b/tools/testing/selftests/vm/mlock2-tests.c > @@ -1,3 +1,4 @@ > +#define _GNU_SOURCE > #include > #include > #include > --=20 > 1.9.1 >=20 --xXmbgvnjoT4axfJE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWQMC1AAoJELbVsDOpoOa9uXkP/3uW+yjR5261IFUO67qvtzp+ BaO41gzVnUXhMt/qOsVoF/NtgUJPGnd/4THRwlIXX+PzcYeGEgIOS5W96sQeUwdJ B/VTaz2LyCxQd2AWOEPWMppj41fJaeBdMqFd6Qs2P+6o0JeJ4g9wsGuR5qJ7iWVD Woqjh5pVLxscuLEQHD7UaJlWY+n5O4ENh4YMNcOZcSNqDWQhFtIxNynRrUjyeqhs rxPR16clAt4UjlqGVspW3cdKbZHV5d+YcrkfGljfCxJt4OkuUfT8Mb6VQ4B7K1wP f3y8sgtIGys6bFtCIoVeQOKCDbbdILEVMRbedq2cRIM9IESOcp/CMNVjDmtszrxQ nHeta9Oy2Wk0NX/8UNxDRPSDuUcuHHVldA4sm6TYyxAiSNQftCDimAKOGBhF66OM E9NtGcVVwWuO8MIHpnsujH0YUjY+R7KpVFBfzvWi0+ylykxxdLbAVxY6lGuu+vUO j5p7j5YutBcFiL/J5WAAIhK8r7hpxwi0lnCDCXIiycqZ7J61JMEVDWg5TKBxUvV2 2eKEeawXCwT4CxQ5iRH7hrBwtqrZpysUbREODom1AYAk1Ixx5/5XwtNBQqvTd6CP IYZINMffw8ZS9+tNfg5x22FzE1ZAEGqbZ5fgyHAZ7YllSCUenijHa5OBGoiU7qrp szr0snjEEv3ehdopPWTf =Kaqv -----END PGP SIGNATURE----- --xXmbgvnjoT4axfJE-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/