From patchwork Wed Aug 10 18:55:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9273597 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 1F0FC600CA for ; Wed, 10 Aug 2016 18:55:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E9E8283E7 for ; Wed, 10 Aug 2016 18:55:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0327D2840F; Wed, 10 Aug 2016 18:55:32 +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 10AB2283E7 for ; Wed, 10 Aug 2016 18:55:29 +0000 (UTC) Received: from localhost ([::1]:43277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXYf2-0003oy-70 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 10 Aug 2016 14:55:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXYej-0003ms-2l for qemu-devel@nongnu.org; Wed, 10 Aug 2016 14:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXYee-0005fr-VN for qemu-devel@nongnu.org; Wed, 10 Aug 2016 14:55:08 -0400 Received: from mail-yb0-x242.google.com ([2607:f8b0:4002:c09::242]:34529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXYee-0005fg-R5 for qemu-devel@nongnu.org; Wed, 10 Aug 2016 14:55:04 -0400 Received: by mail-yb0-x242.google.com with SMTP id x196so1312100ybe.1 for ; Wed, 10 Aug 2016 11:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=foycTCkhmCygy2HX9zSJSD5OTbTpqBXn3FUe0w1woms=; b=Itb1Pzr2/boQF+YSUGPG0QTeEWvirEeOFV5mz+eCm6LKlcDgJy3ldxdcLXIcGPanCk wqlUZDJDApUP+YVmnSc4/qKbFr7h4Y/dk4U5AAFV1OAT4jJCFXevrRWrdcDO2sxWgFSq 4AgOQFvmHnLk00LpWr7i6DGnn0ZYItdDp6TZzxxQTjDAryEtN/U5eQDRHrfpA36/NATD D3ivdT1UYhT+WUHwKGXHI83vKgPEqQ9SY9nAMxgRPCrQdjvGaJ6Nc+bjikMJzfStYHjw nvHfW2D+/54WEEzx1dDdv2RD2Iej7rNGih3HsDa0VvXawr/Me1m4MY3PBdSy9QfZ6NGE FTrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=foycTCkhmCygy2HX9zSJSD5OTbTpqBXn3FUe0w1woms=; b=X0gITtapdxuIbP2vTMQN7EJXnBecCb5GNyZxSqU3Yf6Z1gt2yEowxIB2FfDyCZAMwr aJ/2fffg6Wru4geP8sZguiEE6lGKBptzL4LA+dHhj98qfeMwu9ldpscRvR/TOZa1TniD 85/3ZgZlQI9T2V2Tz/dmGueIjTjckNpug2sinM0ePVlYHFISkrdVuLUJHuTI6AfLLkg2 MeCAAm3FrMThXphfqy8u67tsP/expz6+9RvhFg6sHyIzdkMo+B+ZOz+D4FIABGf6TZxl A7o05BhiwV7nKkMZTuPYkaL1O5XeeXYAUA9mpre1vRkotg1qzW54OjBRXCV2qmYSmf91 aDig== X-Gm-Message-State: AEkooutdOHUz+xZKoBXe2uXYG3v3awgRGjQ9uVmMYAmMAAU5Ei1w5DyFQUc0slTG0cg+KA== X-Received: by 10.37.39.5 with SMTP id n5mr3515006ybn.171.1470855304093; Wed, 10 Aug 2016 11:55:04 -0700 (PDT) Received: from evgadesktop.attlocal.net (108-232-152-155.lightspeed.tukrga.sbcglobal.net. [108.232.152.155]) by smtp.gmail.com with ESMTPSA id q82sm19052473ywg.5.2016.08.10.11.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Aug 2016 11:55:03 -0700 (PDT) From: Pranith Kumar To: Aurelien Jarno , Peter Maydell , qemu-devel@nongnu.org (open list:All patches CC here) Date: Wed, 10 Aug 2016 14:55:02 -0400 Message-Id: <20160810185502.32015-1-bobby.prani@gmail.com> X-Mailer: git-send-email 2.9.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c09::242 Subject: [Qemu-devel] [PATCH] softfloat: Fix warn about implicit conversion from int to int8_t 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: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Change the flag type to 'uint8_t' to fix the implicit conversion error. Signed-off-by: Pranith Kumar Reviewed-by: Aurelien Jarno --- fpu/softfloat-specialize.h | 2 +- include/fpu/softfloat.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 43d0890..f5aed72 100644 --- a/fpu/softfloat-specialize.h +++ b/fpu/softfloat-specialize.h @@ -197,7 +197,7 @@ float128 float128_default_nan(float_status *status) | should be simply `float_exception_flags |= flags;'. *----------------------------------------------------------------------------*/ -void float_raise(int8_t flags, float_status *status) +void float_raise(uint8_t flags, float_status *status) { status->float_exception_flags |= flags; } diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 0e57ee5..1bde349 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -198,7 +198,7 @@ enum { typedef struct float_status { signed char float_detect_tininess; signed char float_rounding_mode; - signed char float_exception_flags; + uint8_t float_exception_flags; signed char floatx80_rounding_precision; /* should denormalised results go to zero and set the inexact flag? */ flag flush_to_zero; @@ -274,7 +274,7 @@ static inline flag get_default_nan_mode(float_status *status) | Routine to raise any or all of the software IEC/IEEE floating-point | exception flags. *----------------------------------------------------------------------------*/ -void float_raise(int8_t flags, float_status *status); +void float_raise(uint8_t flags, float_status *status); /*---------------------------------------------------------------------------- | If `a' is denormal and we are in flush-to-zero mode then set the