From patchwork Mon Apr 8 19:37:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1081436 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44dLMg2GpNz9sP8 for ; Tue, 9 Apr 2019 05:39:11 +1000 (AEST) Received: from localhost ([127.0.0.1]:57959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDa6n-0002h9-Bn for incoming@patchwork.ozlabs.org; Mon, 08 Apr 2019 15:39:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDa5E-00025w-2W for qemu-devel@nongnu.org; Mon, 08 Apr 2019 15:37:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDa5D-000781-7D for qemu-devel@nongnu.org; Mon, 08 Apr 2019 15:37:32 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:57897) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDa5C-00077Y-RL for qemu-devel@nongnu.org; Mon, 08 Apr 2019 15:37:31 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mf3yk-1gfv1T3mf4-00gXny; Mon, 08 Apr 2019 21:37:18 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Mon, 8 Apr 2019 21:37:10 +0200 Message-Id: <20190408193711.32680-2-laurent@vivier.eu> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190408193711.32680-1-laurent@vivier.eu> References: <20190408193711.32680-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:dC+zbVk1UaetRWK9i37iwcYedkwqWIz/gPwo4SBAZLNP8Czct9S 9/mV5Xd6632jruw4JCYugmX8MUTenIuJ/1pLJWkk30zOgE4s56k2FPRfI0YOsGfreJZs74b aDWRXv0IotOdaYCo5dAE9Mhh8gY3mCnTFzsubOaflK+GvSv5f/kzeDpBzhpsTAArxIefPql N1S7ubpvwA6BvWpndiEwA== X-UI-Out-Filterresults: notjunk:1; V03:K0:Cx9CNRXHdug=:IDVq6SkLvYqO/ydBDspPW0 Ak1Bk/0jEB+4yHWWvSIuJoAFyaAt8LnuGbR55rQqK7iiW1z5rqMhy+G7BZij6SasHS+qs1crI jtRZNiYHtBQHPXv4OIk25IltvC/CWCHZbV4NbJU5eTQAyucDakLXmNAK3ZB+gfq6uY/eXKeri +GIwdSg/G/+7ZqzlTcf2J6aHKZSUaVbNoRLWRVeKKF+S1GKZMAHcm7DKy6bNkaQySupiU5y2h 2pFGBhgHj6BBf5TGOQLyyfDMD1RDl1vr2ycvMIw5760OYkCO/xo0DsiR+qbpfVBdYIshbp3sm cwppDOewJpva597xwPI4H0plEvkbHTOJPJi+W8U39l91LEY+heAjPuhrARbzZlkYxtPQ58sRt vC7sGHH7c63nrfEhNT6/GDQrGZAShNbe0iO1CHrQddFLy2zEGsDS+n74XKGw33+gcS6OOq8XE Fr3pY06cfl/++YK51LK4VBES5noOVy/STsuBm4Nlu6KrHXvB6bc0UtwBnXU0SXZtSF21Pi3Y5 5XWhnFsik5jzp1jOdzwcnt8pla0v0n2luIbEKWdo7hfBQ7CZv450VsYbz+qvtCsEGhrdl6X9D m0NNVYJfRuhQuFqBOkZpFU4yYb4iVxyvhoBdWCCIw5WDZuTqRKR5T9TXFxH6DKYlg/viaPQ/7 FB3omRwbV5rkLE8pErROEYm7x0wULSNYYeQagMAAs9tXFsj/H1d8XgkuW42Clk2rcId4XG0gU l3BtldATTa4SH3nb2RHXE4K1xwGxMd4uTq/WnI7vaJ0aVf5J66C1tSI4KII= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.133 Subject: [Qemu-devel] [PULL 1/2] linux-user: assume __NR_gettid always exists X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Daniel P. Berrangé The gettid syscall was introduced in Linux 2.4.11. This is old enough that we can assume it always exists and thus not bother with the conditional backcompat logic. Signed-off-by: Daniel P. Berrangé Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Message-Id: <20190320161842.13908-2-berrange@redhat.com> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 208fd1813d6a..11729f382cf4 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -249,15 +249,7 @@ static type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \ #define TARGET_NR__llseek TARGET_NR_llseek #endif -#ifdef __NR_gettid _syscall0(int, gettid) -#else -/* This is a replacement for the host gettid() and must return a host - errno. */ -static int gettid(void) { - return -ENOSYS; -} -#endif /* For the 64-bit guest on 32-bit host case we must emulate * getdents using getdents64, because otherwise the host