Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp954787pxj; Wed, 2 Jun 2021 16:16:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh1coz7tJiJf8Fmd0oZUTuGd+BKB//pW00c55yP/PX73HCjwSnHg1R438dLyNTQcFOMo/P X-Received: by 2002:a05:6402:b1a:: with SMTP id bm26mr833100edb.387.1622675817732; Wed, 02 Jun 2021 16:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622675817; cv=none; d=google.com; s=arc-20160816; b=zzfJa4pb/p2AzqBkxWcYQMNg2NzXsuGV/JY5JNFE7IWd5ogxTbPBhIZo3JWzBfzcG9 wi+PeAxmNUnlH2dpZLi6ZZuTIgYeCJNP8Bn4Dnj+9Y2JCu8uB+bGKdLKXMvwBQHswykp bAe/pS3iKkJcWyxfU8BRXs4PCeJ8SB2h2T+gJfs1C1FqNSnkSCKCqqKZ5vnfLnGy35t4 j4aJra7XUDG0VCuN1CWdbVKvY6qeLCOmwIe6HtJmo283wEc4PDZsnJo0pjyXYDfWsV7U AGITezdCt9bMDEw+0rtP3+Ji1UejQHEwetsm4zUrAmMH9cGcWzeh3EmHuFShyXC4i6mb uPig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GgUHuotTSVoUtsVmMlpcVcRaJTyGQL0GcjuUunbehv4=; b=B5wTQDpf9Hc9gOlJxdGiMfoKf9YYY7eXVQ+aJP48AhI4jbOtmKyxmAIVRmsE+UJoPr MOlwrQnZJZWjeylFwRBupWUzyPi2mMQR0glwHV/AB2hm3mMm1VggTeo4De8Fwn7EIWYN fbl4BnIE551kVqIqyhv7EFRzB5ID7xAd5ryGE9aNGtSgEASKZIKtfdysiaLND27tHFDy bX1fZVhZksyydyKrEBaWfMuPdyRWkQEZQ/G2ccksKNSeaZ6jXwJ56AULUflIi9DevXET Z2YoeI2UvRwvsuN1ZLfRv6Lnuc53Su7ZwhA7UUL0Z8UZTYelLVDF7mbd6DETYCofaTig l0Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="he/QsAyG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si888504ejx.353.2021.06.02.16.16.35; Wed, 02 Jun 2021 16:16:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="he/QsAyG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbhFBXQe (ORCPT + 99 others); Wed, 2 Jun 2021 19:16:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbhFBXQa (ORCPT ); Wed, 2 Jun 2021 19:16:30 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BB64C06175F; Wed, 2 Jun 2021 16:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=GgUHuotTSVoUtsVmMlpcVcRaJTyGQL0GcjuUunbehv4=; b=he/QsAyGU3AaG8zugrntxfbguw iw0IOeexu3TE+FgSyM2RlGvwqPDhj8VldNEjlrkADXNOVWnUNo29tvzePhNs5QAfGAgYykEK0rHYz t9ZHxgm+GmMHArIWHQ3rvQ9QLTEp1tt80WB3mPndPfX7bj1DDo4WDzpAVTKOh+rSBvFhbzf/oe7zY ZaKH26ovAt30wABK0gTdV6jaYoLHyHbL1EzpVeFSoGeTy75MIUtIK5prKAQQbor1P9qtR+smsoch5 g/u82pRMm1h49ml+0B2Tn4aye75ltsQWHndmDy8YDPLUnbAbcO85GdiHg+Ym43vDTLI2WelfRw3vj hDwsJhfA==; Received: from [2601:1c0:6280:3f0::ce7d] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1loa4U-006Rln-3s; Wed, 02 Jun 2021 23:14:46 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Subject: [RFC PATCH 3/4] sh: define __BIG_ENDIAN for math-emu Date: Wed, 2 Jun 2021 16:14:42 -0700 Message-Id: <20210602231443.4670-3-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210602231443.4670-1-rdunlap@infradead.org> References: <20210602231443.4670-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The headers in include/math-emu/ test for __BYTE_ORDER == __BIG_ENDIAN without checking to see if these macros are defined, so add a define for __BIG_ENDIAN before pulling in these headers. This placates these build warnings: In file included from ../arch/sh/math-emu/math.c:23: ../include/math-emu/single.h:50:21: warning: "__BIG_ENDIAN" is not defined, evaluates to 0 [-Wundef] 50 | #if __BYTE_ORDER == __BIG_ENDIAN In file included from ../arch/sh/math-emu/math.c:24: ../include/math-emu/double.h:59:21: warning: "__BIG_ENDIAN" is not defined, evaluates to 0 [-Wundef] 59 | #if __BYTE_ORDER == __BIG_ENDIAN Fixes: 4b565680d163 ("sh: math-emu support") Signed-off-by: Randy Dunlap Cc: Yoshinori Sato Cc: Rich Felker Cc: linux-sh@vger.kernel.org --- arch/sh/math-emu/sfp-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210528.orig/arch/sh/math-emu/sfp-util.h +++ linux-next-20210528/arch/sh/math-emu/sfp-util.h @@ -70,4 +70,4 @@ #define __BYTE_ORDER __LITTLE_ENDIAN - +#define __BIG_ENDIAN 0