From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE269C433E0 for ; Sun, 26 Jul 2020 14:42:27 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 977292065F for ; Sun, 26 Jul 2020 14:42:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 977292065F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=csgroup.eu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4BF5J04QR2zDrQ4 for ; Mon, 27 Jul 2020 00:42:24 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=csgroup.eu (client-ip=93.17.236.30; helo=pegase1.c-s.fr; envelope-from=christophe.leroy@csgroup.eu; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=csgroup.eu Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4BF5D04dQRzDr7g for ; Mon, 27 Jul 2020 00:38:54 +1000 (AEST) Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4BF5Cp1Ybsz9v1q9; Sun, 26 Jul 2020 16:38:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id nwslpPgJ7u18; Sun, 26 Jul 2020 16:38:46 +0200 (CEST) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 4BF5Cn6sbxz9v1pp; Sun, 26 Jul 2020 16:38:45 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 63A225D; Sun, 26 Jul 2020 16:40:09 +0200 (CEST) Received: from 37-166-97-133.coucou-networks.fr (37-166-97-133.coucou-networks.fr [37.166.97.133]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Sun, 26 Jul 2020 16:40:09 +0200 Date: Sun, 26 Jul 2020 16:40:09 +0200 Message-ID: <20200726164009.Horde.J2bKDAPkYDkRMsx2Qnk8OQ8@messagerie.si.c-s.fr> From: Christophe Leroy To: Michael Ellerman Subject: Re: [PATCH 5/5] selftests/powerpc: Add test for pkey siginfo verification References: <87365egymc.fsf@mpe.ellerman.id.au> In-Reply-To: <87365egymc.fsf@mpe.ellerman.id.au> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fweimer@redhat.com, aneesh.kumar@linux.ibm.com, linuxram@us.ibm.com, Sandipan Das , linuxppc-dev@lists.ozlabs.org, bauerman@linux.ibm.com Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Michael Ellerman a =C3=A9crit=C2=A0: > Sandipan Das writes: >> diff --git a/tools/testing/selftests/powerpc/mm/pkey_siginfo.c=20=20 >>=20b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c >> new file mode 100644 >> index 0000000000000..58605c53d495d >> --- /dev/null >> +++ b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c >> @@ -0,0 +1,332 @@ > ... >> + >> +static void *protect(void *p) >> +{ >> + unsigned long rights; >> + unsigned int *base; >> + size_t size; >> + int tid, i; >> + >> + tid =3D gettid(); > > pkey_siginfo.c: In function 'protect': > pkey_siginfo.c:103:8: error: implicit declaration of function=20=20 >=20'gettid' [-Werror=3Dimplicit-function-declaration] > tid =3D gettid(); > ^ > > > On Ubuntu 18.04 at least. See https://man7.org/linux/man-pages/man2/gettid.2.html Added in glibc 2.30 Christophe