From nobody Sun Oct 26 00:02:36 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; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1521756073865605.3818169132596; Thu, 22 Mar 2018 15:01:13 -0700 (PDT) Received: from localhost ([::1]:35062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez8Gi-00061j-QS for importer@patchew.org; Thu, 22 Mar 2018 18:01:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez8Er-0004bj-VQ for qemu-devel@nongnu.org; Thu, 22 Mar 2018 17:59:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ez8Er-0004F0-1b for qemu-devel@nongnu.org; Thu, 22 Mar 2018 17:59:14 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:59171) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ez8Eq-0004DL-OL for qemu-devel@nongnu.org; Thu, 22 Mar 2018 17:59:12 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MejLU-1fEcrD22xM-00OIgG; Thu, 22 Mar 2018 22:58:59 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 22 Mar 2018 22:58:30 +0100 Message-Id: <20180322215833.7713-3-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180322215833.7713-1-laurent@vivier.eu> References: <20180322215833.7713-1-laurent@vivier.eu> X-Provags-ID: V03:K0:8Q6x46oMYsNIEbs3zqeQ/pKPEjKmIm/PQR9epPMSkRuWTfsgBCB GaALkmWY/e5dp3mJi8zRvZjBubB8DTr8oMGK1eWjYCXGL3EODinzFZVlWLMRYH6B8B2L+5a PXjnvVZ6zHyU9N8TURk+w+ILKPj8ME2wNUHbDKfDf9E69N07usfHvDXpZmX90tfDtrizrP3 Zf+XgG0WEGRBp2Il7hKtg== X-UI-Out-Filterresults: notjunk:1;V01:K0:pgBPFh2RrP0=:HPF05XzsUIffWYsxJBEqk8 BvGAxP9dFHVKDzz95aTj7xANZKnm/cYMG/ne6yTxT60BKb6DJezgew7g/tYAD+9D4q12i6iJs WXSW0ZZdg8Pm/5/JszGq7TBcVOsImoFBqoXXI+yVSnpdK86BbMcOUQiQxYTOxQQDGf7u1sWr5 dmAzb8Y7emadIrVdLbhAW6yOJbVxPcYVwmTzNjI+iEKzxr+VHiJG7Tb+kLzMSEKgZOv/ot2E+ k14Ejosf6jKzM2X2D+v545OCKNYoznCubA4yIsZoAkXxajRaQRsTOV1LwvPDbHD7OyDQvC99u rrE6iooOJ7t9s6TnZpsq9qlB/02SStesMqpEWUYE+9hs7fVp36VTRInzyyZ6Qr0BzCtxCMQrj 3qNcz1dSFipgiE22RX7BCp9jsP1wAjWbKSUIeZg80BTKxNLy5BvI4nmeUfHVDUyKDYBPDGr4o PVr8bC0TuxlBf8QLe7vigbaKBl7jhiiZ+KeGw5u1PmF0EColHAAJXHHLbHVUz7rE6XVYIq+ul AFGGpEbw04BM/nq9GnKA65TQG7a/3Zkc8pbZh7UDOwYh//2x4bBsNrYMlAgGfy0NszM16UUM/ yFxUnxJYTDxvRe0ldv5h9Kjvpejn9jgjGqsEjIdZJbrAbkhbgKuwZM1oFR3U4qmaaWDs7GPAV y/hJjdpkQlY/6QR5bJDkNcvgsnlcoTydfGuWyhUpq9aqT3jMOG2dqpYMWY97Vj5c1avVLSY/8 TjIjBTSTaU8iiV1yzc4UlVXUuBufeJDBT4kkFQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.75 Subject: [Qemu-devel] [PATCH for 2.13 2/5] linux-user: remove unneeded #ifdef in signal.c 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: Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Laurent Vivier --- linux-user/signal.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 2c08ca14cf..514145b299 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -253,17 +253,15 @@ int do_sigprocmask(int how, const sigset_t *set, sigs= et_t *oldset) return 0; } =20 -#if !defined(TARGET_OPENRISC) && !defined(TARGET_NIOS2) /* Just set the guest's signal mask to the specified value; the * caller is assumed to have called block_signals() already. */ -static void set_sigmask(const sigset_t *set) +static __attribute__((unused)) void set_sigmask(const sigset_t *set) { TaskState *ts =3D (TaskState *)thread_cpu->opaque; =20 ts->signal_mask =3D *set; } -#endif =20 /* siginfo conversion */ =20 @@ -533,8 +531,7 @@ static void force_sig(int sig) * up the signal frame. oldsig is the signal we were trying to handle * at the point of failure. */ -#if !defined(TARGET_RISCV) -static void force_sigsegv(int oldsig) +static __attribute__((unused)) void force_sigsegv(int oldsig) { if (oldsig =3D=3D SIGSEGV) { /* Make sure we don't try to deliver the signal again; this will @@ -545,8 +542,6 @@ static void force_sigsegv(int oldsig) force_sig(TARGET_SIGSEGV); } =20 -#endif - /* abort execution with signal */ static void QEMU_NORETURN dump_core_and_abort(int target_sig) { --=20 2.14.3