From patchwork Thu Mar 22 21:58:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 889662 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 406gZV480Xz9s0y for ; Fri, 23 Mar 2018 09:00:02 +1100 (AEDT) Received: from localhost ([::1]:35052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez8Fb-0004d0-Uk for incoming@patchwork.ozlabs.org; Thu, 22 Mar 2018 18:00:00 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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, sigset_t *oldset) return 0; } -#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 = (TaskState *)thread_cpu->opaque; ts->signal_mask = *set; } -#endif /* siginfo conversion */ @@ -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 == 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); } -#endif - /* abort execution with signal */ static void QEMU_NORETURN dump_core_and_abort(int target_sig) {