Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2302067ybl; Thu, 19 Dec 2019 11:14:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxucDTGvaXoo+Q8SRhOso4r70K1kl6piRFZGfzz1app8bhHKaYN8cE77+KHPwc4xs6s/OCj X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr8150651otd.372.1576782887399; Thu, 19 Dec 2019 11:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576782887; cv=none; d=google.com; s=arc-20160816; b=ntNxYshq3gzIi3ymDv/cX/sqT1CK2Sqh5G25oFVFz/NZyaCl7DlnbkiMeJhJU9RXhs CLAvbI9k5u7jpwKvaqoX5XBDRo/7qDAIJCWPQD373gT8HUTihPuzNsE3OW6UziJ+Kx6c YmJHwzWW7LentMqOvAPV0iwH9SkT7XM9nMJz1IL9Gt03KGzRERwuYj5zObViLbLlFq84 cthPg4GrRoV4WR/nLAzgQkS3Gwjvd351Kbw1wm7cPMjCYxGg/eh0oBfQYd47vNehnHGs g0Ve6Y6HWUYz/P+g03NN475uxJgPflfoCdcNdNdbgSHJIB3JXJwQ7/e3mFBfQ0PmDxtU 728A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mg6dZcJulMoBokhCgJLmE9ebsVfdaiKWsbSV6smuXdQ=; b=epjWJ0La5uSGaf7ZOLyaNINRGG+Q5yciDuJFy15WqppK86W4aCsLQDGNZtGTCF0Dbo ycGYg953h8+UAjPXDmNjESUePqp7scDqBUX6wPXrXNc6/VT40Yam1E+PURXos+drP6Yi KQNNxfN68+fiothTbJ8eQRXKem7NKzMlLRQV6tqhh87jz+w5gY4fosE0gRh3s0Gp3lCp Ks7dM5+wq1oYrv/lyq7MuIDgsx4LF9RUz3acR4XwG9z6BnsFeAMT9rZ9m7j23x/uuKPB GUim2xmMjCkbmnEqOdtnSRMttIg/wj7ElruXfDuovSer1cLa6iQYJpLA0MKLFesZ9o81 T91g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=I2gT9hpd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y22si3707873oti.269.2019.12.19.11.14.34; Thu, 19 Dec 2019 11:14:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=I2gT9hpd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727474AbfLSSgK (ORCPT + 99 others); Thu, 19 Dec 2019 13:36:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:52976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727460AbfLSSgH (ORCPT ); Thu, 19 Dec 2019 13:36:07 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 411332467B; Thu, 19 Dec 2019 18:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576780566; bh=cogc0FukY8/3EVaRPufi7VD8ZbhSDT10BfN6/bzVrd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I2gT9hpdfHuY+VjYeiUWdQjcY5b46zFzJOSF3ktlRWr+pblatk7ZUljkuB6mv/4XV x7W9PIfRtT2qcZWqEMKQcSdMJ3yzy5z74kJg5AZibjoTfwAMC9g6NB8EsBGxpRQVbx /nRlH9p8EcIjqyiLZoIllKq39954m65MIJ5VDQRQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vincent Chen , Greentime Hu , Sasha Levin Subject: [PATCH 4.4 026/162] math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning Date: Thu, 19 Dec 2019 19:32:14 +0100 Message-Id: <20191219183209.122498924@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183150.477687052@linuxfoundation.org> References: <20191219183150.477687052@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincent Chen [ Upstream commit 83312f1b7ae205dca647bf52bbe2d51303cdedfb ] _FP_ROUND_ZERO is defined as 0 and used as a statemente in macro _FP_ROUND. This generates "error: statement with no effect [-Werror=unused-value]" from gcc. Defining _FP_ROUND_ZERO as (void)0 to fix it. This modification is quoted from glibc 'commit (8ed1e7d5894000c155acbd06f)' Signed-off-by: Vincent Chen Acked-by: Greentime Hu Signed-off-by: Greentime Hu Signed-off-by: Sasha Levin --- include/math-emu/soft-fp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/math-emu/soft-fp.h b/include/math-emu/soft-fp.h index 3f284bc031809..5650c16283830 100644 --- a/include/math-emu/soft-fp.h +++ b/include/math-emu/soft-fp.h @@ -138,7 +138,7 @@ do { \ _FP_FRAC_ADDI_##wc(X, _FP_WORK_ROUND); \ } while (0) -#define _FP_ROUND_ZERO(wc, X) 0 +#define _FP_ROUND_ZERO(wc, X) (void)0 #define _FP_ROUND_PINF(wc, X) \ do { \ -- 2.20.1