Message ID | 1447795019-30176-3-git-send-email-ynorov@caviumnetworks.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2183573lbb; Tue, 17 Nov 2015 13:18:01 -0800 (PST) X-Received: by 10.68.143.106 with SMTP id sd10mr66999676pbb.62.1447795081575; Tue, 17 Nov 2015 13:18:01 -0800 (PST) Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sc1si60428420pbb.21.2015.11.17.13.17.59; Tue, 17 Nov 2015 13:18:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932441AbbKQVRy (ORCPT <rfc822;pingbo.wen@linaro.org> + 28 others); Tue, 17 Nov 2015 16:17:54 -0500 Received: from mail-by2on0085.outbound.protection.outlook.com ([207.46.100.85]:55417 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932344AbbKQVRv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Nov 2015 16:17:51 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.120) by DM2PR07MB621.namprd07.prod.outlook.com (10.141.177.140) with Microsoft SMTP Server (TLS) id 15.1.325.17; Tue, 17 Nov 2015 21:17:48 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <arnd@arndb.de>, <catalin.marinas@arm.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> CC: <pinskia@gmail.com>, <ddaney.cavm@gmail.com>, <jan.dakinevich@gmail.com>, <Prasun.Kapoor@caviumnetworks.com>, <christoph.muellner@theobroma-systems.com>, <philipp.tomsich@theobroma-systems.com>, <broonie@kernel.org>, <andrey.konovalov@linaro.org>, <Nathan_Lynch@mentor.com>, <agraf@suse.de>, <bamvor.zhangjian@huawei.com>, <klimov.linux@gmail.com>, <joseph@codesourcery.com>, <schwab@suse.de>, Yury Norov <ynorov@caviumnetworks.com> Subject: [PATCH v6 02/19] arm64: ensure the kernel is compiled for LP64 Date: Wed, 18 Nov 2015 00:16:42 +0300 Message-ID: <1447795019-30176-3-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> References: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.120] X-ClientProxiedBy: HE1PR03CA0024.eurprd03.prod.outlook.com (25.163.170.162) To DM2PR07MB621.namprd07.prod.outlook.com (10.141.177.140) X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB621; 2:e7uiFHw70vS/rPjnYwDCxg4cXIVnHet64ozXqWk14IhR6rccncWJFOb2Fu+gBcH9bULH9ZD0ifYm5e+iyPAHR2XHyfl3e0QpwkmNyM4iVJFiLX0W49BJzb1RHPPrmkS8UT1G8dbHzsUUnw2UctabZgJxj1rsVHTW0ki6GZQLKW4=; 3:4oO16wglmbaesyxjKW5D9pxjxOc6bq7q5/lgN3O6if1HPyV2FLFt38i3dXC2EGgx432CSVzk604B4Z5QHhsk+toDJjCvWCioKbEjB7c4P0MjWBz/IbfYxmXtzAr1Hnaf1Lpem7OJfv/JwamFkxoCIQ==; 25:5egk+Q7enPzYCNkQXGV4fmHLPPl1nVFS/LtZP373EbBqnM69O7J4ZdaQqglQiZ+2uITFSD0b4LQSKxuuDKd8rQADIW1BvPYoAdLyNiXSAG8ClCkKqEsjMfgFN4B7bs0tINeVwbGuIhDi+O9qNMiapS4Qrb6EoYL6BI+03k3OjmKirz24MD9fOQOGKSQxJBOePqGYM8wMnJ6UnSk6OFI+fWIBSUX0TlUgYUSSqcIhD6cGxcc4ACuhuySJ1vQBVIFsBNfHiyCpH/NNSakf0Cz3AA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB621; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB621; 20:MqMkHHW1slyafcZx0glbTG/TsUudXiTX5oZF4FFfd9xH1h8QbCp0YHo8M5ETome+Dr/BBYoJsQo8OHx9PsxYKQvmz5KYbgDmxMxYqp48bUOuUIqPco1xwUE4jxgOgG4AYmzAXHfImZCFfuqpFayMwMpCwKqNK5RvnyUcPAMKhCOQyeucvWzIjH7pSM9D8os2aW0hGng6A3UdLMSH4R79aiyGpO+WE/XbcclUFrwDcSU3Wx1kUW7EVcQxnY7S4zlZ1D/q7JIF7YFutn0ePRriG0p7Ygw1bwEo3V9OOFevLrR20r0UoFX/mAVPRtOwvts6J93Osz6n5yQbxtrNWrNIMkCAhe39o+eNr3qGJpzlI9CEaEogkYLT3r2d9gj8NBxI7kGTjF9ymh8R6ZEEHybOKjLX4w4Dr88HJCNgp8EpvvR3ADMIpuLz3Szz0vFb9pmrlVVoS8/wjUU1jZmNK1x5sIIdndYRbcAqnm3/jhQ+CK1UuyclWh0BlqnCMesAXGAxtY2AF6V3Cpr1Rpb1mu2LFENfUfq3QP0Jb59S8dasoL8j3hBaNsmgLTlmF1sVFVnnwJmXE9D6GsaaEkWQp/ViB+wC3DOLQyHsDypkMEeIZpI= X-Microsoft-Antispam-PRVS: <DM2PR07MB621F9BB265D55EA00FA3412EE1D0@DM2PR07MB621.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:DM2PR07MB621; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB621; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB621; 4:+ApTvXGRpaUxV9PnKU5rOdTxDycyC3QlfUKOWe7D7ANgGQnsk/SZ5YyMlo07Z0EHwVTt7bBWbp7LDeqelQMFlw6rxSTHPXtIp1xMgVBhk1nNdLC/44m3lCflNShjpY4k0Fi7aaw2LuRcipnHP8nlEZY4gHQvuxFMdPK9Fg8oL8T/q4Lw31mCxUh9xUzsV47LWTyTVZlwDWETzBULX6dHu7RYYobMBLibEEnzImL9K4hNgIFvnBRSIaSNp2DjEBVLsvRDmFQhI7ikC17bhH/Zf4f7Yc2gUgGH+52UISuHL35pstZe4Jf0KTwqEPh2m+2WoNgW2fmdU850Muq1Lm24mhZtHv3jhJ+nsKeAxLCqZ/BE+wP1UYCNlT1KWrDjD3ow X-Forefront-PRVS: 07630F72AD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(199003)(189002)(5003940100001)(4001430100002)(50466002)(42186005)(106356001)(19580405001)(77096005)(48376002)(19580395003)(586003)(2950100001)(92566002)(105586002)(36756003)(76506005)(33646002)(81156007)(229853001)(50226001)(40100003)(47776003)(97736004)(5001920100001)(76176999)(5008740100001)(87976001)(5007970100001)(5001960100002)(101416001)(2201001)(5001770100001)(66066001)(189998001)(122386002)(50986999)(107886002)(5004730100002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB621; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB621; 23:Qe8G/58JFSnyw67FblqXOqzIDolNrp27Cnf9xT9xzh?= =?us-ascii?Q?Ukf5spWYcf4vebVgGFx2BmeFBIK033C+3UPRgnx7N5aJgiqaNoN9+6H2fIgQ?= =?us-ascii?Q?YfGkT14GifvZeBFgA7X5zZEH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?Q?8Ls84gLLTlr9cpniBJpCzo8Ib9oOzutlN49FYDJ8B8Fx30dctiHGO9ydshr/?= =?us-ascii?Q?BkM6P/tyHg/uGN2d2hngFXpTk4YVoQ5XH1wtBOIVvjxzCu3z/FPI/G/mHHjg?= =?us-ascii?Q?d6jM3nhZZX3cOCrmPSzanOVs5U2AWK?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB621; 5:Sir//med4yI78tqD8plhjqGHDC8uN4UrGHqbVRMtUABVmEkRN4jY7ZTfJMwPSh7btxy/AkAhuEklcK0gAkP1212zX241zNtA2zZeI/SSJX8eA4clTKK0NZaTzhngNWg5jUNCMhsmZ2ruGmvL2T21zg==; 24:OWMUm7ybgkaWuV7T5mhe1ePY+Pe40vT54YYWqkDtl9m0NcDpoFr3YFyoCXrEjwp825ltirIG9KvFkowTJmmJSwdAVHUk4QnpuZ1+CdsTHFE=; 20:4APNJ1fsNpi3GE4i4sJdUvm7vPIRx4DkK+dCLxxKMpz+bsYE2lYHoQuCGL+2q7HNPcaCfndBiw0e5d5Y/Jm04w== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2015 21:17:48.5965 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB621 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index d10b5d4..432b69a 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -29,14 +29,19 @@ endif KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) KBUILD_AFLAGS += $(lseinstr) +KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) +KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) + ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian AS += -EB LD += -EB +LDFLAGS += -maarch64linuxb else KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL +LDFLAGS += -maarch64linux endif CHECKFLAGS += -D__aarch64__