From patchwork Thu Dec 1 05:14:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9455389 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D493360585 for ; Thu, 1 Dec 2016 05:15:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9F072849D for ; Thu, 1 Dec 2016 05:15:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC38B284BD; Thu, 1 Dec 2016 05:15:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 66D9B28497 for ; Thu, 1 Dec 2016 05:15:15 +0000 (UTC) Received: from localhost ([::1]:48149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCJiE-0002rd-Dc for patchwork-qemu-devel@patchwork.kernel.org; Thu, 01 Dec 2016 00:15:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCJhg-0002p5-67 for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCJhf-0007Jy-0G for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:40 -0500 Received: from mail-yw0-x242.google.com ([2607:f8b0:4002:c05::242]:33201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCJhe-0007J8-PG for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:38 -0500 Received: by mail-yw0-x242.google.com with SMTP id s68so16780140ywg.0 for ; Wed, 30 Nov 2016 21:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ll1KC60ILIRQ4Fmg+htQy7RP33BZH9BXoyj+ic3oWPE=; b=oQWJZ0YXKZhxu1DeOV9wLuS5Wh3xiqMe+4tdTSWgO8IZf/XEGvKFk7YxmgbiLR7LDI mK74dwJm1z6tOPhgjSO+sjAKcU+f0S3sdtiWpvWbVMo+tozRWoVAjuRyqXKYOBBuNx50 f9VPy89pX1b6eiT61Zph9JxcK2yzcZ9h4mZq/FVF0NhyqTCzuuQLVYURmoX/Cp/lXjGy odcownmA89UJyZLCsldy/L+dpmH0gBtTCYrmtXxjf1Liz1T2hIePFft57GpQCBdOEe8S DsBRX2kB9GlgDIcsC07SEGtA7XQZQpvUr9p82784riP7p5E91ndQgwpxTusWdTvZLS6k 2ewA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ll1KC60ILIRQ4Fmg+htQy7RP33BZH9BXoyj+ic3oWPE=; b=ijOf9/UMawBqtII4fcC3rA56SSW3ofZxdEfOpYz4VLVhbcwGkp1PtwEur5z1sK33NB 0Xlq/I46gtlwhDykemZdKiNYtCy3pUXR1cil/qtuqgs2Pi19xaKlG3FsO+YtdaqG+vaQ +ULkWtRvIJ9S6JEvLk9pQsxi81aiAoWLHRaKqbUw7S1BpDirhoxMv1+Iy+xf2gAAO9iI L9m3F1GVS6e3on/gErcptVA0WT5mYY4EOCND+NubZA1mVIzl6ziLql0Jx2FfAqkaHGlQ O9SzP1OTj3WJaWXoFwFneRneYoBWT9dV5vPXjVOQOT0MRm935ZwTajddXdp3zVn8tVca JluQ== X-Gm-Message-State: AKaTC03lNhPyDPmIr4mKEQ+V5rQdXw2lWXQURyPYZ1/9yvLu6IUiMyGCW6T5qEwqYY99AQ== X-Received: by 10.129.155.70 with SMTP id s67mr38068179ywg.194.1480569277718; Wed, 30 Nov 2016 21:14:37 -0800 (PST) Received: from localhost.localdomain (c-73-207-178-95.hsd1.ga.comcast.net. [73.207.178.95]) by smtp.gmail.com with ESMTPSA id l73sm24681068ywc.54.2016.11.30.21.14.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 21:14:37 -0800 (PST) From: Pranith Kumar To: alex.bennee@linaro.org Date: Thu, 1 Dec 2016 00:14:18 -0500 Message-Id: <20161201051433.17168-5-bobby.prani@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161201051433.17168-1-bobby.prani@gmail.com> References: <20161201051433.17168-1-bobby.prani@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::242 Subject: [Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code 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: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , qemu-devel@nongnu.org, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Marc-André Lureau I didn't remove it, as suggest by checkpatch, because it looks like it may eventually be restored back. Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar --- tests/tcg/linux-test.c | 8 ++++++-- tests/tcg/test-i386-fprem.c | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c index 5070d31..38d163c 100644 --- a/tests/tcg/linux-test.c +++ b/tests/tcg/linux-test.c @@ -350,6 +350,7 @@ void test_socket(void) #define WCOUNT_MAX 512 +#if 0 void test_pipe(void) { fd_set rfds, wfds; @@ -421,11 +422,13 @@ void test_clone(void) stack1 = malloc(STACK_SIZE); pid1 = chk_error(clone(thread1_func, stack1 + STACK_SIZE, - CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello1")); + CLONE_VM | CLONE_FS | CLONE_FILES | + SIGCHLD, (void *)"hello1")); stack2 = malloc(STACK_SIZE); pid2 = chk_error(clone(thread2_func, stack2 + STACK_SIZE, - CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello2")); + CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, + (void *)"hello2")); while (waitpid(pid1, &status1, 0) != pid1); free(stack1); @@ -435,6 +438,7 @@ void test_clone(void) thread2_res != 6) error("clone"); } +#endif /***********************************/ diff --git a/tests/tcg/test-i386-fprem.c b/tests/tcg/test-i386-fprem.c index 1a71623..1a2b144 100644 --- a/tests/tcg/test-i386-fprem.c +++ b/tests/tcg/test-i386-fprem.c @@ -54,6 +54,7 @@ union float80u { #define IEEE854_LONG_DOUBLE_BIAS 0x3fff +#if 0 static const union float80u q_nan = { .ieee_nan.negative = 0, /* X */ .ieee_nan.exponent = 0x7fff, @@ -61,6 +62,7 @@ static const union float80u q_nan = { .ieee_nan.quiet_nan = 1, .ieee_nan.mantissa = 0, }; +#endif static const union float80u s_nan = { .ieee_nan.negative = 0, /* X */ @@ -91,12 +93,14 @@ static const union float80u pos_denorm = { .ieee.mantissa = 1, }; +#if 0 static const union float80u smallest_positive_norm = { .ieee.negative = 0, .ieee.exponent = 1, .ieee.one = 1, .ieee.mantissa = 0, }; +#endif static void fninit() {