From patchwork Wed Aug 22 01:14:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 144791 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp173511ljw; Tue, 21 Aug 2018 18:19:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxPaLW0MaSXTyEHmUtad2aeV1MtyVIZMTbc2626ekGKrdKBGnwLgjT1Len3Mvjk2PE5d3vY X-Received: by 2002:aed:2253:: with SMTP id o19-v6mr45340096qtc.72.1534900786195; Tue, 21 Aug 2018 18:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534900786; cv=none; d=google.com; s=arc-20160816; b=szhRMrWZMIFt9Nw5ZfFYHG8P2f3BtriJdIo2eg60DlWtqD33hTvkruMO8dNiXCrEMw P5GYsJ++oyGkiz0HbN9azsyQ//eARoopGGPqT2WQx17y49GkfR0mRvgwPV/e2o+ru6qq ow9c0YEPurwJ1MAk0DriAFuEO8sxn1qJYqezDhGlrGp2x0uZjQFWINoluQ4jo+cvOVQr ZwkdJ4BikXAJ75vC7YS9tISl0sum+sS4A04Mj/AJnIBfHK3Xjs5H3RdqMnhx7FQMJHXa I1HI67+Pv2exZxHB+LYkA77rDePWwXQbuXuoh05HVZtvcJLClkHd+wfiRk9ExB0phdfQ CPKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:arc-authentication-results; bh=QPkkmvYWt1k/CA++MMwkhwLPGeNObY6EvdRyeUz1cD0=; b=kDdq+azdlmG2qkg622Nb+MH/X3FFOg69U49l2pP4FfsEhMDOcH/rjmqAqnlykyzSAD 8mVpxBRSV018LcXvPgJRZXbcuE+FYzi1ugQyg4BeKgVObmwpt8jemQ5DSzbd3SdyrAzp /Mcy+OgM0ddS3Ss4cg+sfcK3vKWhlxHYm+yYuVYyHexNk42g2hA7BKEpW+eJRFkq12ys VJAhdEH6V73ZGR7mW0h7+4SdQIs3Z7pCpWwN1s6OIujJWfMDW2matBhznQbUoJG/cnCc 8WYZCHk1GRxGVfcqz41ZfQPyH7/rOk/p+59vEeu/L0R48JH9MWmi2t+YR0Fu4Hqfvk1m 8wqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 136-v6si316403qkn.131.2018.08.21.18.19.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 21 Aug 2018 18:19:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:56434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsHoH-0000vB-M5 for patch@linaro.org; Tue, 21 Aug 2018 21:19:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsHjV-0005kB-CB for qemu-devel@nongnu.org; Tue, 21 Aug 2018 21:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsHjP-0001el-Hn for qemu-devel@nongnu.org; Tue, 21 Aug 2018 21:14:49 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:51955) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fsHjO-0001bI-Iu for qemu-devel@nongnu.org; Tue, 21 Aug 2018 21:14:43 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M3Sim-1g9oXw0U9Q-00qybh; Wed, 22 Aug 2018 03:14:32 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 22 Aug 2018 03:14:15 +0200 Message-Id: <20180822011417.11608-6-laurent@vivier.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180822011417.11608-1-laurent@vivier.eu> References: <20180822011417.11608-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:5wZl3eZgUaVi+SFruNpcltV9nBh7DQhSHmcDlyaVzAjImn8WLcN +T/oHptpVsUu1SOR86UH97HQCYOhQpYt3/LyIlGnzs4nhBp9ORzPjz411aAwPhCiWr9t0er Ua+LUNQIMLCwVTlni/HqT9xlVDRo8aUGpGyWkih6ygUMt2/03tBaf2bQZBjwV6H0C4caC2Y tG+Ce7d/27ON4omtSlA3A== X-UI-Out-Filterresults: notjunk:1; V01:K0:jWP8cR3Uryk=:OXKxF/pCHcDlJmU8xlzEqT Vc4uh6o5bhALI7pG8nLyCkWRT002TTRZor/A5ekNycjvfojaYPd5xNKMePplH/VrS5l4jYgNQ Y2deC3d0SvdSb0IEMokKJaCot8sLrtIJbOpEsjHqWXuYHe1PZUPyaqI/EGCdU7QX0Gm9kdo6I FKIE7Y2hXL5hZmejy3S+fKKz0Loms7LEsqFy1DVbShrCi2Ua60wtLF/m0dMU9IW8JUxuhD+L6 g3P4Tzw4W7EPsPYaMrsOl0CRLRvo/3jxXviiS42CSplp99csGglZ+nLgFYUlpAlSNY133auGW CDXd2kMLqfmclGponyOc1zYTRHGBSyHdMsQWYrd+t2vU2Y5kH9AUy66QArJpOQ/aeiZLIPxa/ CcaSe871pTwQWXprBCdrQ51r4oo5psA1Igzj2pdjoBztZqsIkDCD7fimbupS0vvtf6K5P3GXK AUb1Qws+pmYVUqclzQO5y7yYN7JneNV1RLToUenQDYtZEwthTu0XT2VyoT1q4PlIjfhZUvHOq skYmHF3jhS9ijsRaqTPzQwxxfnK8qHihSJTSY/f+JdVU1fnHt9xyMaeGUpfFHMz9PCeW4UOAD hDFA7bLUFfPqrEO3NjthSv29q54sag2kHCBQQ70uIpEv/3pkMxOLfnw7hdMORP5MQV9F+qwUU C13BcfKN/tMvgprlcO4pAzvqzk+TU5w4rxNU9e5lbHPj9oTCjaN9h/Roi3JlECVaHzAWQ4Lmq Hhy1qV/CMLc3H01u X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.73 Subject: [Qemu-devel] [PULL 5/7] linux-user: Propagate goto unimplemented_nowarn to return 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: Riku Voipio , Richard Henderson , Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson Message-Id: <20180818190118.12911-6-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 19e98cc0e5..6e63f15ca1 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11976,7 +11976,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, return 0; } #else - goto unimplemented_nowarn; + return -TARGET_ENOSYS; #endif #endif #ifdef TARGET_NR_get_thread_area @@ -11989,12 +11989,12 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, return ts->tp_value; } #else - goto unimplemented_nowarn; + return -TARGET_ENOSYS; #endif #endif #ifdef TARGET_NR_getdomainname case TARGET_NR_getdomainname: - goto unimplemented_nowarn; + return -TARGET_ENOSYS; #endif #ifdef TARGET_NR_clock_settime @@ -12079,7 +12079,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, * holding a mutex that is shared with another process via * shared memory). */ - goto unimplemented_nowarn; + return -TARGET_ENOSYS; #endif #if defined(TARGET_NR_utimensat) @@ -12739,9 +12739,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, default: unimplemented: qemu_log_mask(LOG_UNIMP, "Unsupported syscall: %d\n", num); -#if defined(TARGET_NR_setxattr) || defined(TARGET_NR_get_thread_area) || defined(TARGET_NR_getdomainname) || defined(TARGET_NR_set_robust_list) - unimplemented_nowarn: -#endif return -TARGET_ENOSYS; } fail: