From patchwork Fri Jun 1 07:30:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 137461 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp603342lji; Fri, 1 Jun 2018 00:31:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJCeLs+n7pOA4pb/Rk86Znm3WNhKw7kLKUvWPSmTyVJz4TRzxhXcFCSPTAd4FXYMg5FxGAL X-Received: by 2002:ac8:92c:: with SMTP id t41-v6mr10182248qth.292.1527838297850; Fri, 01 Jun 2018 00:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527838297; cv=none; d=google.com; s=arc-20160816; b=yGInulWLcbhLRwKLL0QCyDP5pT+4TD5jx238JjaJlupXFXwYKPdenCVZ4OIUeEmkSK 9NTl0fc9h6Lga9x6Ytr7xkdOh9ax71b4tVbeqjOIZcrjlVlGnkKOcoXTzZzxxrPl4KhS /NOoHa0/iG08rm0BLJ0Oge4sUBksUf+PfQBCGW3DiraO9YUsbXgN9Rg3drnn47qt+kw4 /zGvwaF25pTXsLrIRx2C436GXw9qifvKRo8lENsRqPXlKuk9HPD/NoLDQgKvBJS/iTAg 3YvlHeex1GmEvag/c4BFQd8I9jD/5z/0PwGcIXIjEL0EIqq34thVv+te4t1N8r5v6WHi J14g== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=5v7tsPOalOaMv3UFLZQO/mNC/DMMo/KuC3MiFTwGPDU=; b=0i7iSB9MHN9hk+QDqhfrEmSICMkK15g5Xt4qLg01zy+LqmEMDetlglG2IinKM/nGFx S8EASbd8bUr1/1cV3t0wBEDe9KSRwny1Wrda7KVjeTVQ4HxZPzCIoFeRnPbq75JjtNm0 7ONPd2DO/slhzuIligf60hkVNszhS7E+Qxr8G3RHVD6KGXJgNwa8eC2rRElk1ICkt/Z/ ecs4LAUfob7vTvRIcgLvPvkfeS/wwruj1Mz39I9vZK6kbJFvXr16Di97Qt/0XJk3q/qC XMTwrjegGbIGbiMYpb94ftAvxB191FtDgRCjMlrr0bTZAsHOar/u8IrDVATLVR3nRlvX iiyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TKUR0y/7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 62-v6si5961602qvc.255.2018.06.01.00.31.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 01 Jun 2018 00:31:37 -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; dkim=fail header.i=@linaro.org header.s=google header.b=TKUR0y/7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOeXB-0005T5-6p for patch@linaro.org; Fri, 01 Jun 2018 03:31:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOeWd-0005PZ-5a for qemu-devel@nongnu.org; Fri, 01 Jun 2018 03:31:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOeWc-0000HT-3u for qemu-devel@nongnu.org; Fri, 01 Jun 2018 03:31:03 -0400 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:43316) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOeWb-0000Gg-TQ for qemu-devel@nongnu.org; Fri, 01 Jun 2018 03:31:02 -0400 Received: by mail-pf0-x22b.google.com with SMTP id j20-v6so12076532pff.10 for ; Fri, 01 Jun 2018 00:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5v7tsPOalOaMv3UFLZQO/mNC/DMMo/KuC3MiFTwGPDU=; b=TKUR0y/7EfIIvvNMCnS62jlEld1Ay+B85SH/N6n39ep8C9HZBNJJh4Z6ckQ6HQgvoU uK76E6QAVGd3kRSXb3KtvfA3Wnu8FPXWoEy+gNUUkKhnT0hfxdihnYOVTLKmkCIS2glr Yb5UIb8xmu16we4d5yns9kmpY4VcNFMeOxa2o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5v7tsPOalOaMv3UFLZQO/mNC/DMMo/KuC3MiFTwGPDU=; b=aZv4rLAr8ZTuC73g68AVFeJTP9vMc2/7gEFwu/vB/ntybVAUykCwc5WgfCADYX3CBc LxVZTAiXnZoU496x5AHgoOYdR80Tn7jQBYxVLVaP1E5QkE+zjzbGQquD5iDcz8PpK19K oFW7iTPQpcFZ8ND8Fvpy8bFxw6DM/MW0iFxNRK9sfufpFw3/UEslReohxJEonu8tOlJR dAl9k+BZW5vy5I82akNR6OXY/fHUNltwEfkmdH6qFXgFZ/f6cpFRdAAHAipcfnryyZpP JYTj72VClwqzSyRVjpa4sjAthUW5ulTRVZDYGC4ptxhgqB+kzpRQTBfzgoFDFQ6Nha1M ahEg== X-Gm-Message-State: ALKqPwe3p/6APpA26EP7iGTqL38xY6FQSx8KyY+Ql664ZfPuMtRb0M3G vWbwfhJQbdusNjAnvCpJzGzeVxiXejk= X-Received: by 2002:a62:249b:: with SMTP id k27-v6mr9853797pfk.143.1527838260587; Fri, 01 Jun 2018 00:31:00 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-112-211.tukw.qwest.net. [97.126.112.211]) by smtp.gmail.com with ESMTPSA id c4-v6sm4431782pgv.86.2018.06.01.00.30.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Jun 2018 00:30:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 1 Jun 2018 00:30:22 -0700 Message-Id: <20180601073050.8054-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180601073050.8054-1-richard.henderson@linaro.org> References: <20180601073050.8054-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22b Subject: [Qemu-devel] [PATCH 05/33] 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: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- linux-user/syscall.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.17.0 Reviewed-by: Laurent Vivier diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8ea2099001..f7b7051c1c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -12081,7 +12081,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 @@ -12094,12 +12094,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 @@ -12184,7 +12184,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) @@ -12886,9 +12886,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, default: unimplemented: gemu_log("qemu: 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: