From patchwork Tue Jun 20 12:24:43 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: 9799365 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 18CFF60329 for ; Tue, 20 Jun 2017 12:25:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 081BF28426 for ; Tue, 20 Jun 2017 12:25:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF34128485; Tue, 20 Jun 2017 12:25:23 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7CA2C28426 for ; Tue, 20 Jun 2017 12:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=o1rPnnf824T9eAS2WFbzrjRz1iYWJyKJlatEUvOXaIY=; b=SOF sJ5eKdoIxtYfAafCQzm4fF6rqSQ3BwYb0nwo8jGIlbBgEmiAJ3A0F8e95kfVklWyh4TfAYngM43hS yh50UJpqkR/NHucmxEJx7tTCbbcsvl/FSaSg7r3qRWSWW/bp9jAg+7UAIxPnlaEOvWosyrvYjUrp5 x34MnZm08aHeWwt/NNix+BwUUPmlk5cmC0EY34ZUgkUuHtm7ubihL96eBGVbGNqUv1orEGnIh4YuZ 6yLh6IfQ2lriPURN21bcKDKIaERgcV/oEtHwuwqlP4PRfvlvI4qRpmBynm1gmmnSdx0jCE1fjNwJz B6LJrtTAz69jbgMvZx4YB+qKHyELzXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNIDi-0002xr-FV; Tue, 20 Jun 2017 12:25:22 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNIDf-0002xc-CZ for linux-arm-kernel@bombadil.infradead.org; Tue, 20 Jun 2017 12:25:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2lRifdArTguZ7Iu0decqiDpYP6gyPPybGQYbx7jcke8=; b=lqthRsLc3LsJ1CyC5lyGmiaDj Ts2I9C4bee0GBu1jN983/xUg4j6SrG8YZ56SNiM8bajIR8FOESglFHwoHTwB92enBKJ5Wo9WreJae sMA779t4BnS6xslK4XcNT4lnwmxEMClwD/iZgJlaV47Z35aQg8PpBy6e/z+BRyLOrJ1Hs0e19pHk3 Xt4DFYKv1i0ZOhLc9U/I6FJCTwZZuR4tGcVPLESWVseK7Tpwwi5h2T1eNHM8QD0fAy5XJvU7AWpvi dkU1Mzh6QGcyC0+xZ+HxC7gKruA9ftLhlGVGM2x7t/2LGggSXQCzhvrpkkQ6Wzi42Qv3npOv6+tqT pYD4nAvbg==; Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNIDc-00055c-BU for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2017 12:25:18 +0000 Received: by mail-wm0-x243.google.com with SMTP id d17so22852003wme.3 for ; Tue, 20 Jun 2017 05:24:55 -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=2lRifdArTguZ7Iu0decqiDpYP6gyPPybGQYbx7jcke8=; b=WFhpY2TZaynd7qF9eARI62cWXA5fBMStXo66UkqVK8KRpcv+FWTTgetxDXOQc+MvYd D/yqm9Oq6/tIkJFZ2jUrATfb1B/zHulBQN7aSTPj81MPzC1T8mV7cvLY/Kq23mEZ+tPx ihNQilclGSZM7GdHB9ZnYdq3amLy6JTnThdOkwLY6It6N3QKxErR96Cr4A850PMLm6Pt 7uZvjLo0tKdQfytGBMrj++SkacoTFpxIZTj882UPbqahndKdnvoTOg8PuP/RoT+83jG6 +EHvDGwxirsU0FYPuXzMh5uFywqdCi5vM/CNyLUoUFoXgqfmPouXbv7x8caCeaB/PaDB 2P4g== 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=2lRifdArTguZ7Iu0decqiDpYP6gyPPybGQYbx7jcke8=; b=gVeBPtvVnm6ayzFLxkPn2LNv/m1lm1aO598DSLluvuLDavCPo8Xl9In/jKHSOiubiT /tPHaqVaOyBJ4aal3QhWeSkfH9Loj05TEAqs7AfBEuz+ydniyCknrYewXBJDggkBgbfb oI1bl0sQC87MyPZ4NbsYO/+NCmBFQIAfureMIjaWO1rPy7AQpt/Zc4mYdQmVFuoFzfh4 mnsoq8FNi1Z/Bc/jeqOckir1LP1GrvNAuO5yVWGfqLRfeQUgF0yDitKJi6djMES2qtt1 clbfrAzMTiUbw9K91iPPuOXI9CbVw3+5uwi2DgQD5/tBRjCaaKxosh2+IX7zSqsVg0dM w3dg== X-Gm-Message-State: AKS2vOw78E3S1amsmaGMiyMQQQSAPS8nzt5eQx7UVLp3ovq8amU+WiCO 0QgALkBT7Xb15Q== X-Received: by 10.80.166.101 with SMTP id d92mr21039216edc.132.1497961494777; Tue, 20 Jun 2017 05:24:54 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:837:f300:4131:d708:a975:bd4c]) by smtp.gmail.com with ESMTPSA id d1sm7784576ede.46.2017.06.20.05.24.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 05:24:53 -0700 (PDT) From: Luc Van Oostenryck To: Catalin Marinas Subject: [PATCH] arm64: pass machine size to sparse Date: Tue, 20 Jun 2017 14:24:43 +0200 Message-Id: <20170620122443.35880-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170620_132516_413827_EF38EBE7 X-CRM114-Status: GOOD ( 10.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Will Deacon , linux-arm-kernel@lists.infradead.org, Luc Van Oostenryck MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When using sparse on the arm64 tree we get many thousands of warnings like 'constant ... is so big it is unsigned long long' or 'shift too big (32) for type unsigned long'. This happens because by default sparse considers the machine as 32bit and defines the size of the types accordingly. Fix this by passing the '-m64' flag to sparse so that sparse can correctly define longs as being 64bit. CC: Catalin Marinas CC: Will Deacon CC: linux-arm-kernel@lists.infradead.org Signed-off-by: Luc Van Oostenryck --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f839ecd91..15d6c1476 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -62,7 +62,7 @@ LD += -EL UTS_MACHINE := aarch64 endif -CHECKFLAGS += -D__aarch64__ +CHECKFLAGS += -D__aarch64__ -m64 ifeq ($(CONFIG_ARM64_MODULE_CMODEL_LARGE), y) KBUILD_CFLAGS_MODULE += -mcmodel=large