From patchwork Sun Jun 10 03:00:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 138076 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2573747lji; Sat, 9 Jun 2018 20:03:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ7ApLtTzJB7kyGv6/B5yjmzPWKS0D2jhJGSugADnomzSfI75RIWhg0o05F/NyZRa6rrKlQ X-Received: by 2002:a0c:ca12:: with SMTP id c18-v6mr10952545qvk.62.1528599784756; Sat, 09 Jun 2018 20:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528599784; cv=none; d=google.com; s=arc-20160816; b=Cv0hAwrWDy6/MgMdtae0djLb7fxou0Xoyh+A3PxnX6gxWZStUwH7b3az+jfFgSherr jiWMcOrQ8avXkizwZEupYQ4NOt56kNeL51R29HlaxN72jPlfO5uHYttZR9qIA6nH6Rqm /VQvUSwI7rPzakpEmmdHQOfNuuJ90jnwhTy406unrwXV2W6d3fsRtDtwdoMfv/S86Pms f3pw+0kfQae3THod6IFF7TxVT1CX+gWpikF9qCJP7llX+ZMQtJF4g0j1AQqJkaNulPiC NE2DqYU9fOUODYSIToW98khbt5CDqXJpfQWN/w8JdiNujg2EI4j7oI0HOWFETHMxss6W hOVw== 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=4cH1KchH60yn7x3nWoRbUGPDM7osjD47ISy+1P676Qw=; b=vTIk7ARqdUfgHU52Zdn4avW4mQls7f+8Pfp8nOeRbkZGC/0JBtH2OD1xO6K0oaejGT YXGllDfjzjs+ByFkuof7XvnpG0yjrEs5Jf2VipR/PVYzYpwkm3G8icpOnF+L+N4MIYCt xNBjGDidja+5OaPLFa+IsCDiRfK1AHIeqlJvkK3U7LXP0dUuzJ51eb7I4WgIqn8M5ZLw efyuTbCDgP8M8cm87mX5UfQDwL+XKB5FBGxGxCaVVaqg01gGUZtGGC8XJqtO99Wjo2/4 ct3uSA5rrVb2PSeGiw3UX9GSzMFn2eLydHViWmu2H4QazSPTmcn8+8w4b0XNWEOr1ri7 RWOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SvkMYvJq; 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 d13-v6si3953381qvn.206.2018.06.09.20.03.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 09 Jun 2018 20:03:04 -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=SvkMYvJq; 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]:42172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRqdE-0001bj-4Z for patch@linaro.org; Sat, 09 Jun 2018 23:03:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRqcr-0001aZ-HJ for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:02:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRqcp-00039c-FJ for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:02:41 -0400 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:43589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRqcp-00039W-9R for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:02:39 -0400 Received: by mail-pg0-x235.google.com with SMTP id a14-v6so7516635pgw.10 for ; Sat, 09 Jun 2018 20:02:39 -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=4cH1KchH60yn7x3nWoRbUGPDM7osjD47ISy+1P676Qw=; b=SvkMYvJqaKQfrQQ1TdryoddZ8R1KfUHhybh0jjLXTlX9/zk2QlOWCgoh8nKaXA7MHJ XV/QG2NWn24bj6dIRx5wYnNfcevk1XZl6clNaDkerIBFExcJ+PJNsmxaKYS6YyECIJ5D SWSEQz3hFiFB4lOCWRWMQ7JC7FcJy6lLyC3L0= 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=4cH1KchH60yn7x3nWoRbUGPDM7osjD47ISy+1P676Qw=; b=gsOnHzeIC++4tUt2IxuCmElkVxDyYcZZUQ3PUerJ+t5wGWph/z/89XiAckkU4kKnVB QNopovgHQUofjZc0LeUgTZneKusxLAlh2E5vnr/3tObuu9HKRSIu1f8Qo4kp0RcvFHz3 OgiijmOuhTN08oDr6CENjbDwTN+Wl+sqWDifECpPPaYpkUbP34rnz+iEU8OrBsMRveyc RGI719K7IAVQlaqfmfdPSUab5mudUBj42A0wKYhS6j7dooX65LVthMzyU7XOsN7Ymc4X bzIx72x3yidFCxxgd6NxrQCcVt7eFGfyby2XM9+JgHrAHNYn9uq47Jg1Gp7n4YdAJ+KD pu/g== X-Gm-Message-State: APt69E1Dq6bgYht9XjKCS0pSeRyXnZwCQtZlUjva1PkkNaxa5JjnvnAs OirlbJ/yiIsXp4HZrHCisUltBc0MJWw= X-Received: by 2002:a65:60d2:: with SMTP id r18-v6mr5026952pgv.306.1528599757961; Sat, 09 Jun 2018 20:02:37 -0700 (PDT) Received: from cloudburst.twiddle.net (rrcs-173-198-77-219.west.biz.rr.com. [173.198.77.219]) by smtp.gmail.com with ESMTPSA id y17-v6sm31712718pfe.33.2018.06.09.20.02.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Jun 2018 20:02:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 9 Jun 2018 17:00:37 -1000 Message-Id: <20180610030220.3777-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180610030220.3777-1-richard.henderson@linaro.org> References: <20180610030220.3777-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:c05::235 Subject: [Qemu-devel] [PATCH v2 005/108] 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" Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- 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 a6b8268332..06205d3d65 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11807,7 +11807,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 @@ -11820,12 +11820,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 @@ -11910,7 +11910,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) @@ -12564,9 +12564,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: