From nobody Wed Nov 5 12:52:43 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1534619052870844.0429587145184; Sat, 18 Aug 2018 12:04:12 -0700 (PDT) Received: from localhost ([::1]:40126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr6W6-0006T2-I0 for importer@patchew.org; Sat, 18 Aug 2018 15:04:06 -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) 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) 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-Google-Smtp-Source: AA+uWPyGRI78VctR8TvwQpAMCHOz/rsf0veV+wvFo0zHgBzWyq3naYpQ1ZAHK3PEKON5j517JUJJsA== X-Received: by 2002:a62:3a9d:: with SMTP id v29-v6mr41367613pfj.215.1534618888040; Sat, 18 Aug 2018 12:01:28 -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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- linux-user/syscall.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 nu= m, 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 =20 #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 =20 #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) || d= efined(TARGET_NR_getdomainname) || defined(TARGET_NR_set_robust_list) - unimplemented_nowarn: -#endif return -TARGET_ENOSYS; } fail: --=20 2.17.1