From patchwork Sat Aug 18 19:01:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 144499 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2202634ljj; Sat, 18 Aug 2018 12:05:00 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb7ZP9KfMFh1uOgKBdC3590Prv8jkyr4iqFAEN339BVwcQm8j7mZNXd3zRRci9sdcMSAA40 X-Received: by 2002:ac8:28d5:: with SMTP id j21-v6mr6434022qtj.325.1534619100408; Sat, 18 Aug 2018 12:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534619100; cv=none; d=google.com; s=arc-20160816; b=hNgIYqmIsuG+R4aZF0ZXKbk36tbrLD2FuxmfroaLaLz1qWMJa9QUx9JlfDzud2mt10 yC900WRUHzmltVydLa5w9+l0hhFYz0c9pviJANvWT5oTvAzh5YVLtDeQuorL4p282PlE 2JGsJ4HVTnlU0rrYdd5uwTd7rAW2hveNCB/P+wZjEZ1+lDzFVoD6OEB3aGymuFEc8czr ghFuDHcNgdPaYMom5sWtp0tXU6MkF++/xJudJfs/cEbvNbz5jhp+2OV1JOCHPjUvk4AF kFsIMZdDm8/D2GS0baCdXk/wDlM8Yls4BtYDosVpK/mdZuYTBVe8AerRn3O6sGKVN9fE r9Mg== 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:dkim-signature:arc-authentication-results; bh=tZ6BJyxJVtGfeIj5JZH1SYpUu4aoTSVZFELZYheGz84=; b=0jVAEveYIhYH/KAKrmTvKlmPW5Q9yxODQ08ZEpdPYq+q7S95Lije6vXcQKoTBmjqtw QkUGzNCroHJthZHEYEX8JMdOMPa1E8jyCdIcerEgDG64F2vHpmFsuf1ULNEdmrSEEAuh LgQlcN63S3pO7KmRUvDzkCau/iwrRlFeqH9CZqKIXzpecCKUIkl2j2lepqMYZgGRV6ca WW6Ue1hRmwRgftYP/6DrSyjmiSuftiDdI00hbySsNEZ2PemhOOUj0LmimVwNtf/N3N3T NZi49RCZailN37TKH3SHIa+96rm44fgU5//WrcI33XmFxibCkvoogsEcGv0oeCdFMoEx sYaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VICfutsE; 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 f18-v6si4266142qvm.31.2018.08.18.12.05.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 18 Aug 2018 12:05:00 -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=VICfutsE; 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]:40126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr6Wx-0006T2-PT for patch@linaro.org; Sat, 18 Aug 2018 15:04:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr6Ta-0005FX-Vx for qemu-devel@nongnu.org; Sat, 18 Aug 2018 15:01:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fr6Ta-00079l-9i for qemu-devel@nongnu.org; Sat, 18 Aug 2018 15:01:30 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:45553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fr6Ta-000797-49 for qemu-devel@nongnu.org; Sat, 18 Aug 2018 15:01:30 -0400 Received: by mail-pg1-x52f.google.com with SMTP id f1-v6so4943677pgq.12 for ; Sat, 18 Aug 2018 12:01:30 -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 :mime-version:content-transfer-encoding; bh=tZ6BJyxJVtGfeIj5JZH1SYpUu4aoTSVZFELZYheGz84=; b=VICfutsEjXOcDr9/ZOA4gd+6dEPKN2z5XKNbbLtDaeRA08CKKMT90l45CwElG0HShC 0oJtByp1/938KNAooQALr3gIgNiEYDN4y67xQYV4TjvmwGUCIM/7SSFeoq+L80cevlm5 ap0tQpQBekv6shRc4amepzSr4fiKZnS4SCF74= 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:mime-version:content-transfer-encoding; bh=tZ6BJyxJVtGfeIj5JZH1SYpUu4aoTSVZFELZYheGz84=; b=cim/wH5AbKSjyloM3ZgoQIu1mqI8a/Z9bF3h/rwCDKSGq4ICKYVtuOpfLD6OgRZTV+ cbteznYmO6MB8vDum7q12TVcUD8K0Vr4y+iIUxPw02l+5iyU8u5p4bo4we4rmOXVCApc op49jKeqVfz4IBazS5fO59nAhX0UzlL4IbQcSjY45BIa/b1lwsAjQ5Zs6TD5mJqVK2wl X3yBaR79bdJOBnT4Clyf+zKiejwhxlqtL9Kj6qyvLw+T5outDUM6U4bMyi0dQj7kyzkq Atq7fgb01o2D5em6JLNDYnkVHAepsfLqkwcVPTTjzK213uFwh0hfWRCi6awr0HkHaoia bqjA== X-Gm-Message-State: AOUpUlHosIHNeQxVOho5ZwZMOZTgc3arMTuBcRcwh9tpEkcsR+mbX0nL G733dwJIaCzAbxnBAXAMpe085E/mFJ4= X-Received: by 2002:a62:3a9d:: with SMTP id v29-v6mr41367613pfj.215.1534618888040; Sat, 18 Aug 2018 12:01:28 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-8-179.tukw.qwest.net. [97.113.8.179]) by smtp.gmail.com with ESMTPSA id q85-v6sm9362783pfa.151.2018.08.18.12.01.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Aug 2018 12:01:27 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 18 Aug 2018 12:01:07 -0700 Message-Id: <20180818190118.12911-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180818190118.12911-1-richard.henderson@linaro.org> References: <20180818190118.12911-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52f Subject: [Qemu-devel] [PATCH v4 05/16] 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: Philippe Mathieu-Daudé 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 23c3cd5ddd..812fb27fa1 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11870,7 +11870,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 @@ -11883,12 +11883,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 @@ -11973,7 +11973,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) @@ -12633,9 +12633,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: