From patchwork Tue Oct 31 17:21:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 10034973 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 1842460327 for ; Tue, 31 Oct 2017 17:22:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8926E28B25 for ; Tue, 31 Oct 2017 17:22:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D0A828B55; Tue, 31 Oct 2017 17:22:05 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C992C28B25 for ; Tue, 31 Oct 2017 17:22:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753691AbdJaRWE (ORCPT ); Tue, 31 Oct 2017 13:22:04 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:47981 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753981AbdJaRWD (ORCPT ); Tue, 31 Oct 2017 13:22:03 -0400 Received: by mail-wm0-f68.google.com with SMTP id r196so292072wmf.2 for ; Tue, 31 Oct 2017 10:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Szlh91d+IjEVdGt8ajwFwsjn36kKjiY9wqLqnWgHcsc=; b=i7OOBRyaVgJ9ENL2jnfmbFYj9d9HjzYEjhIINeuFQbr5XFOgYTriFuMJLQnAiswt/y 3NZwXdc7AFEJasN5XRBqpjvWdhqcxTbIyVBtenwmivj5IKY+4o17HnGg8XpdoZF3vkAy bxdovK7ymyBlX04gTKvJ8CNeP+anSwpuXiNB3XFsrpeNLAqLNY2Y3zrVv196/he/jEr6 MNKovA7L11ZG0/gXdnuL87+J0CfOvawxFk7OAjXphLcUhKGloLyFPSADrj/TEL24y/wh ygIuYVJ2U8CXvLVgsksbxkb2tATm41toSMhq4FH3nnd1Jhraq69xHjay+XUrikdKbjg8 uI9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Szlh91d+IjEVdGt8ajwFwsjn36kKjiY9wqLqnWgHcsc=; b=Cij5jVz1lyZp71BdDKGpIpD7LckcTrgOOmVoe1PV8OFUhyepGfP2BM4CS2am641wsn Y0l/cYYGM7eGsgXuDQ8nuoKkln2TBbIWWcRG534emCLb/cHBdE+792stVkn1o/QbUMGy n8U4+cHVnmuuvSStuy4WO8IhKtsFoi9gTO84Z+uUPOO/sW2/gEXwde9RIjoJRkwfv9d4 8devSb4lVr3is9Alqhmov1Z4eX2NlKrbsxrYldukLbfXiBkTnLoXp9BABu81rdB9Fnjg 3aijyN4SEZ2M0tPUvKbvItpTjvtbG/wVeeV7VEGc3gsI0Jez0pdHCj8E4kpTv0vPiJQ0 datg== X-Gm-Message-State: AMCzsaW/DDL20bJ9bpuJpIqgz+LI5YeW2gN/OZCn3tq5DBo4u88ADXSJ w1JSBBqiMpqVSDjvkhT537g= X-Google-Smtp-Source: ABhQp+RbtV8F8NmB2hizRCSF1kdcBMsZqhJnGb0MvNGztCf7GT5TJXdDQsYv/cxgaHFt4kMZODfJeg== X-Received: by 10.80.145.245 with SMTP id h50mr3915379eda.139.1509470522093; Tue, 31 Oct 2017 10:22:02 -0700 (PDT) Received: from localhost.localdomain (117.182-246-81.adsl-dyn.isp.belgacom.be. [81.246.182.117]) by smtp.gmail.com with ESMTPSA id p91sm1630756edp.69.2017.10.31.10.22.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 10:22:01 -0700 (PDT) From: Luc Van Oostenryck To: James Bottomley , Helge Deller Cc: Luc Van Oostenryck , linux-parisc@vger.kernel.org Subject: [PATCH] parisc: pass endianness info to sparse Date: Tue, 31 Oct 2017 18:21:59 +0100 Message-Id: <20171031172200.9793-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.14.0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP parisc is big-endian only but sparse assumes the same endianness as the building machine. This is problematic for code which expect __BYTE_ORDER__ being correctly predefined by the compiler which sparse can then pre-process differently from what gcc would. Fix this by letting sparse know about the architecture endianness. To: James Bottomley To: Helge Deller CC: linux-parisc@vger.kernel.org Signed-off-by: Luc Van Oostenryck --- arch/parisc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 01946ebaf..e2364ff59 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -22,7 +22,7 @@ KBUILD_IMAGE := vmlinuz KBUILD_DEFCONFIG := default_defconfig NM = sh $(srctree)/arch/parisc/nm -CHECKFLAGS += -D__hppa__=1 +CHECKFLAGS += -D__hppa__=1 -mbig-endian LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) export LIBGCC