From patchwork Thu Oct 8 17:32:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 54672 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id 4D5CD22FF4 for ; Thu, 8 Oct 2015 17:34:15 +0000 (UTC) Received: by wibzt1 with SMTP id zt1sf4633388wib.1 for ; Thu, 08 Oct 2015 10:34:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:cc:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=G8mCN017h7d0yS+hBwgwEZGhYHXuO9kDRX/tWg9m00I=; b=SBek3yV88+IOvuBZLOV3rpJdAGZKfhiNY7tWap1zSnRm9Xq0Ycw5oQtPBEZ95Nqc8M EaSUQD+nZ9E7Qjdh3pufgzan5OzFs2+siPTbIbksc6YUSVMhIBNjLNdIqIT8cnYJZErw EegGanft7r10NZx118K7puJX3jgGYjWej+02QWmmepcB0DTZ8K0hmL8VBQA265mK0uDn JG5dYacoaIUWVak7rrQ/UXKA8HYfSE2VSjl0k6eA+JSn5dFPcqOVhw8I0NxIrx5F1Z2S yG2CECVGdbpZST9g2JqmAHm9tLDcYdTG/5JfsIVPyZk4H3OjHLT1GXLuMYahZyL/qcWo xpHQ== X-Gm-Message-State: ALoCoQlqWE2M4zJQ2emSiKZi0/8jaCFpXf1e1IsnYsXrVXX1UIIBJWAOGU98/tMGg6WVO34isVbE X-Received: by 10.194.83.169 with SMTP id r9mr1695940wjy.6.1444325654567; Thu, 08 Oct 2015 10:34:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.143.209 with SMTP id r200ls241735lfd.6.gmail; Thu, 08 Oct 2015 10:34:14 -0700 (PDT) X-Received: by 10.112.157.195 with SMTP id wo3mr4364500lbb.0.1444325654385; Thu, 08 Oct 2015 10:34:14 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id n11si30615822lfb.114.2015.10.08.10.34.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 10:34:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbos8 with SMTP id s8so54637612lbo.0 for ; Thu, 08 Oct 2015 10:34:14 -0700 (PDT) X-Received: by 10.112.156.167 with SMTP id wf7mr4341533lbb.88.1444325654211; Thu, 08 Oct 2015 10:34:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp710263lbq; Thu, 8 Oct 2015 10:34:13 -0700 (PDT) X-Received: by 10.50.143.4 with SMTP id sa4mr5239917igb.52.1444325653027; Thu, 08 Oct 2015 10:34:13 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id y42si32828074ioi.100.2015.10.08.10.34.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 10:34:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZkF3u-0008TW-Fp; Thu, 08 Oct 2015 17:33:02 +0000 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZkF3s-0008LN-3H for linux-arm-kernel@lists.infradead.org; Thu, 08 Oct 2015 17:33:01 +0000 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.122]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id t98HWZWr012022; Thu, 8 Oct 2015 18:32:35 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 8B5751AE328E; Thu, 8 Oct 2015 18:32:36 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419 Date: Thu, 8 Oct 2015 18:32:35 +0100 Message-Id: <1444325555-32108-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151008_103300_590847_689AFBC5 X-CRM114-Status: GOOD ( 10.38 ) X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.96.50 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: dann.frazier@canonical.com, Will Deacon , Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Commit df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419") sets CFLAGS_MODULE to ensure that the large memory model is used by the compiler when building kernel modules. However, CFLAGS_MODULE is an environment variable and intended to be overridden on the command line, which appears to be the case with the Ubuntu kernel packaging system, so use KBUILD_CFLAGS_MODULE instead. Cc: Ard Biesheuvel Reported-by: Dann Frazier Signed-off-by: Will Deacon Tested-by: dann frazier --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f9914d7c1bb0..d10b5d483022 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -42,7 +42,7 @@ endif CHECKFLAGS += -D__aarch64__ ifeq ($(CONFIG_ARM64_ERRATUM_843419), y) -CFLAGS_MODULE += -mcmodel=large +KBUILD_CFLAGS_MODULE += -mcmodel=large endif # Default value