From patchwork Tue Jun 12 00:51:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 138279 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4705689lji; Mon, 11 Jun 2018 18:03:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIC6gSI2LxYsILgoX0HuBvC+NMp2M+jU4DGTaXdbmkWlajiQnj02k34DXSLI1L3GgtXtCo7 X-Received: by 2002:ac8:2466:: with SMTP id d35-v6mr1543009qtd.268.1528765382333; Mon, 11 Jun 2018 18:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528765382; cv=none; d=google.com; s=arc-20160816; b=osLYhChG2tHgHZffp4HKpaMjjQilPGXqxDEzftaJdqB4o4uKTqCmdrB6dS+6Qu2KMD mCzXYW3OpfgFON2zBV0G+XhVXIjglwy8HR1MswWeZl64CpUWec6mESIYNfJkm8QFyjO6 e/MNLCdg6wON6iZDAjbm+9nXlkgWw04d7QDecJIeUVuCpe3HNIRjD+O5v38NK6RzRLd1 wRYzW3ZUD7cp6f5QH9Q43zjWz72GXLfyhjT54MFikEKMmw1R6kMpDi5zuVjgDEv+AjQx 9JdCBADhPLujDtomiLfnfDdglsejoo+054a1m1MvVlEQ+r60AK2nRJ1WPG2gaas8w7W4 srKw== 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=IY5ofhzqcZtmrPPEERn3S4WShqj/iHrrfoye6SnG3XFw+hwo2YOiJJpUmGMGZmK8ol IMIfhEHJdlUPq1PrwpfnulyhfFk0liKEl/7zx2XHnj+2EOI0RDXKLpiRdEsEB6Y9B/ZB XEgF+qS4ox1A4P2mxUqeRSPPCCGcwOKaebuGnwx/NW1KT7Z4z726khvC2jKVbriG6tI/ IaDep9L7omGr1bDJ1j8ojJmMdeJ0alcIUDkTQVsqZy8QU2GuLELUFJqc5uTJR6OLF6AQ 94L+pqbDPPOf2XeKwSKab9LcS1mgY99lG7TUtP7INKsjMnC96CstH1Z6Ixq4y4ol1qsB QL/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=N9zVKaxU; 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 k129-v6si1735903qkb.0.2018.06.11.18.03.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Jun 2018 18:03:02 -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=N9zVKaxU; 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]:52071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSXi9-0005Z0-Se for patch@linaro.org; Mon, 11 Jun 2018 21:03:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSXXj-00059u-6n for qemu-devel@nongnu.org; Mon, 11 Jun 2018 20:52:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSXXh-0007UZ-2f for qemu-devel@nongnu.org; Mon, 11 Jun 2018 20:52:15 -0400 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:39497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSXXg-0007Th-So for qemu-devel@nongnu.org; Mon, 11 Jun 2018 20:52:13 -0400 Received: by mail-pg0-x235.google.com with SMTP id w12-v6so10594640pgc.6 for ; Mon, 11 Jun 2018 17:52:12 -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=N9zVKaxUkP7KRCX0+064QUzZfOg+m3zh7bXdgnvlcg/+FVGbvQ3orsPVSdHMXLE15b d1MayQJbpW35wimDd+syI7dQy9FCt73wjMVYwvE6qbXsWXTuPj00U9y1t5CIB6DlBVFj Uu+k2tD6ETL4BcZo5MPF8Lwu4rX3VZwTfGFPI= 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=G6ow73g8mMu1VABUU0GOf//0RpQNqF4hSblVTOtnl7YGeC5PdgNRkBMVHNXfeAO/x5 HkRUkG200G6V6GVYbEHe65bWEKIVdHs9LaZK46s2/GMIkZW8f9jfbUY/Dac6/U48I1Sv KrsA5eXi2JC/u+yfJ74quGhXIk3IbeujtEy0PBDn7Uyctgfl8wggmNpa1ZPSdKYHkDmP Iy0sSA/SzG2QbB6fciu6RPtrweEZ6EfltaI+FwmdT4tu6sMWH/MH77fLTQlU3j5sDuHv a2vgjIb0drZCeR1EmzA4iu/WjvUss+sXqe8PuRjIJj+VET5ambaWFUtFzczWJCsr+HEP 7kFQ== X-Gm-Message-State: APt69E0k13lTGZOEfZEBTg24vvhcAhL/Bp1Z5aj0BpEAosnhJs8uWXc/ 7wqhKcYck8HLxqE47Vl1lE4wc85jLhI= X-Received: by 2002:a63:6e82:: with SMTP id j124-v6mr1188823pgc.349.1528764731618; Mon, 11 Jun 2018 17:52:11 -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 l26-v6sm43362802pgn.55.2018.06.11.17.52.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jun 2018 17:52:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 11 Jun 2018 14:51:35 -1000 Message-Id: <20180612005145.3375-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612005145.3375-1-richard.henderson@linaro.org> References: <20180612005145.3375-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 v3 09/19] 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: peter.maydell@linaro.org, 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 Reviewed-by: Philippe Mathieu-Daudé 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: