From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC989C43603 for ; Wed, 11 Dec 2019 15:53:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B2C4B2073B for ; Wed, 11 Dec 2019 15:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576079603; bh=cogc0FukY8/3EVaRPufi7VD8ZbhSDT10BfN6/bzVrd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=YiUcMXQ8hYZlUCXT8QQb9LSmQdIh5etr9NCuaDf3AXtkh76EyEOlWRMWCaXFiqnq0 gGT4sCRVpLSeKxfjo3TKZUs4s98ZrQLduVew/2DE0WySHHS9QbvP196blr6yqRo+MN S6o/68kDPdAK5ddsMRb5HdOilwluMkm74f2nYLVY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731639AbfLKPTS (ORCPT ); Wed, 11 Dec 2019 10:19:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:47806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732188AbfLKPTL (ORCPT ); Wed, 11 Dec 2019 10:19:11 -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 B170222B48; Wed, 11 Dec 2019 15:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077551; bh=cogc0FukY8/3EVaRPufi7VD8ZbhSDT10BfN6/bzVrd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Otky2PqVrztID/e//xtqtQ7EpJzEMBdu0T3xF18PLLy5Z/PQooXvDDSiB9akBQKKN gQHsB6QwaxV/zXrYmBRZcypV+eF229q6pnwxOvfP6p9q2VHU7X/Rwt//jQZgvsH/67 N5ajliHxrYXs74KzVyGNJTMMTD5PopOvlZ1+MiXw= 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.19 082/243] math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning Date: Wed, 11 Dec 2019 16:04:04 +0100 Message-Id: <20191211150344.642832620@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150339.185439726@linuxfoundation.org> References: <20191211150339.185439726@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