Message ID | 20151125195652.GB8415@yury-N73SV (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 89F37BF90C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 25 Nov 2015 19:59:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8B5C2085A for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 25 Nov 2015 19:59:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BEDBE204EC for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 25 Nov 2015 19:59:19 +0000 (UTC) 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 1a1gC3-0005yr-5i; Wed, 25 Nov 2015 19:57:31 +0000 Received: from mail-bl2on0061.outbound.protection.outlook.com ([65.55.169.61] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a1gBz-0005ry-CS for linux-arm-kernel@lists.infradead.org; Wed, 25 Nov 2015 19:57:28 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.120) by DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) with Microsoft SMTP Server (TLS) id 15.1.325.17; Wed, 25 Nov 2015 19:57:04 +0000 Date: Wed, 25 Nov 2015 22:56:52 +0300 From: Yury Norov <ynorov@caviumnetworks.com> To: Russell King - ARM Linux <linux@arm.linux.org.uk> Subject: Re: [question] kernel build fails with O0 gcc optimization flag Message-ID: <20151125195652.GB8415@yury-N73SV> References: <20151125171229.GA8415@yury-N73SV> <20151125180606.GM8644@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20151125180606.GM8644@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.120] X-ClientProxiedBy: AM3PR07CA0047.eurprd07.prod.outlook.com (10.141.45.175) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 2:dsoQJOlGOK9iz4XgDNeMkiapCapB0bnlYSTfAAvk+7Cay+uZhoXPw+CwLIpArIb98KbKeQ33+KLv2XwCxOrgXHFmKJSaTnJQWNTnY7CIMdkITLrDqkKCJ81vjl1Ssb0ugWI02bGa9Ez/05r6USEAEKnS+7A8DF8xXvrNckWa650=; 3:/z8o9Pc3u325g4pA854UuwvgmPpZG43tpiEPr1A4aeArkN0Rc2MzzLquCMM85amTnmm9pto+ovzNo7ZXziEhkybdNjslsMTWAbwyZleQb8luBTBkK4twYfIi6+Cj8a2+MF5yMBxHVopxodXFNqYLQw==; 25:vrYZd7saagHuL/V22Y9fppr9uHbHuCk1XkV267YPbTE6fadQsZj2gDqYZL8AbcLig70EYyudTYV1wg30ALQLdWMQXc4d9hPBqZwyaTpq2YokO2TDDbkoHQEkCF1KeUizyg7egWthpUmc30eKFqiOmJFvVTJUTRUisrcoQswLQNG4wK4kQJaE6DPOv4lG96fts+n74mQQTcpWhX/33jRsLc/PGWuq9kWID2LVi8Frhundnm/PSN3eHwaog/u8N8wnLYH/pjM8fnh+CAzXS+XfPQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 20:HPUKUQmf/8l/x5KangF5HdZMmAippauKlD0C6plg9Xo25bQ3b7SZcUYxlUAEvZfd06qN7gAOL98olXR+qlWau82XHTJXmGfc4Fs24kwPUljsN2kodcvvj1VUbs5joo2af2g7YqfAYxnt3Nl6mVESZWarbztYSzR2IrH47Sq3f5ehzA1d74vpGbWgMQVSRM/1VyhbCW1/4JLnEMZi5C/CFYBGi8V23kmbhSmJUSgGW+6zt3qEHmIvZ0iPhqPJRZrxGFu2/WnkaxbXwn8QxkqJ3Fgv9Yeh+6EMZ097LPyypJh9LjELKo2/waYttGzxp6sszl9ClrLppYADimHllMrLFloiRCY5SlbN30RXX1l7W7SwhgX5RvrEmMq9GwyMqn5B8kHF3VUxvmLIggXkgKYEkWFMAH0aHeds2JJ9yndZ+XNeTjXwgkFb+4/QMZrfJJiuZyzIJpY6wg6LW/Flqg3KV69L/Jv3Ad1MouUfAe/xqF0ai7syVaN7kMGUboP+0483DlS+UbA56+xlZG1/SAia2foehZpGnWgS53Kit86PiKX77MHpxxLXlnrSWtViXrTTa5Nm9cKWJMdeBr/i6jJeVvXnQr4XtQ8mXBUYw+074Qg= X-Microsoft-Antispam-PRVS: <DM2PR07MB624845A1D6BD215AC100A0AEE050@DM2PR07MB624.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(10201501046); SRVR:DM2PR07MB624; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 4:Et8DHzX93EJYiMehHJfVZ+927BQZwe5IuV0dFuabPpQysCeldcQTIXhnUHzrTYXIlHy9fIWtR6m9Bm4wniQBlvzvaP6RXgr6sljXDrme6VSmFKpf64xkBABLdMads7cMLTN4hQvn5zXkz2zcm51I/ZnUOZ2qMGq3oJIMMEKBJ97c4bklW7+kdKbzkMZOiI0wQurGLUHAt8LayO0z8hTW0aQPMZswrt+g8fpWX3BiRwwosQOI3L6q+YjtcxA9ZP5PFVid3GkJX3M407/iUILcUTBiuiDPoBJvodDyPpcaIPxo6k6j9+dTEMoMInEMrJV2RqtXLeeYC25qFMC7HT/RA+OrPsNt0wPPvgtyQNlh84cDB3ep9HS2LQmqVIoM8U0z X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(189002)(24454002)(199003)(53754006)(40100003)(83506001)(50466002)(47776003)(1076002)(33656002)(33716001)(5008740100001)(46406003)(92566002)(105586002)(6116002)(3846002)(1096002)(2950100001)(586003)(106356001)(19580405001)(77096005)(54356999)(50986999)(101416001)(76176999)(5001920100001)(66066001)(4001350100001)(76506005)(19580395003)(97756001)(42186005)(97736004)(110136002)(122386002)(189998001)(5004730100002)(81156007)(87976001)(5001960100002)(23726003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB624; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DM2PR07MB624; 23:s7fq6jazrbFLf3dVFe7PL56SvXPka4r5oKuSHON2xr?= =?us-ascii?Q?7eX/VUlGPT1H3OHfyLR03e1M8tDHBSTmkwkTozttpV4H5n+ubhb5uzkS6drm?= =?us-ascii?Q?Km9NiDwOp3eoh5g+Kgnq1Ey9wAVg5GNtBQJHa+xFrs7EP/lN8Ms9MZGYfDe6?= =?us-ascii?Q?NwESrXv41bFKKjSvqUhyzFnT7eEaAWHSDBV0wcSmvxe0H8/1mMp1wk4dlcNC?= =?us-ascii?Q?6cO2OPbCT/YFXIfoj/A6DRo6TtFfzzgwjsx8Fqv/eWCyAL/ivJ8Q/3q/GY8A?= =?us-ascii?Q?bu0eG7RgEKPeJjLBq5YANVBNi93hAM5zU8KmqPkt1C24ca8M6GkL8iFG5pTZ?= =?us-ascii?Q?Rp0pcABlnbguFycecrEpYHZzzUHVz2y/HjqLep2e+7LdpdTwmcF6TrpuBFSe?= =?us-ascii?Q?Uo5ykFsSEUbwKluzGdL0T7SHhvYBymelUODPFDZHoXBctou2K+kU/V1GcP3a?= =?us-ascii?Q?oHVsaF9Q4E3+IIC9N7guT3eLVdWixeVeCA6pvUihgIFi08s1VSxkG/xIa9Mo?= =?us-ascii?Q?z8kS/gOW1iyxoWHcdBEfw9JDuAEQFFvUONDrAA/EgK30ByVsTa/ZUQ2mHusl?= =?us-ascii?Q?3laHpDg3u1WHF5XYTrUzxqg/OSFReIjUAHyw09SzkNmpRgoAvKVOioL/z4ht?= =?us-ascii?Q?l0hH0p7xqxWlag4yBlCC7BJuqtSvvoptCSPkyMc/KosznRsOUdeLwoZBaCs/?= =?us-ascii?Q?WabvxUYf+Af2jdtLv5mMIzcSowADb2XbEgvPAPNaTGekaz9WKLe1t/QdDMDo?= =?us-ascii?Q?SRPikuaqMX9tJrJ1AmjNjg3Htx2A6ezeLoyGaSAS5W6fNlsikGOXYydSdncl?= =?us-ascii?Q?kx0/CETy+TdIzOTvJxLjYPxDUa9FKMYl60AVLcDoGtYBAIQz12db7CRtVWyV?= =?us-ascii?Q?eUM09W85vRDZtoR9cU1XAXDpXW30u1WgkknoSJ5Z27fHO58rxx9ll0dsSMuE?= =?us-ascii?Q?18CF3hzhcgHxvov8uPjDJg1mmdaivSyGPheh4cHZlfhhI/ByImeqVrrctKjr?= =?us-ascii?Q?uSzxm6/AOyW68+6XSO/ki8YW/+5XouAyHzqKvMDvSKBVTU/xxWCErNiGJlnA?= =?us-ascii?Q?+SlYzUaM4uFV/2vyeM0HNISsq6K1U/ZTKfveumH7qoScrX7bFoHDxT0PxlJ3?= =?us-ascii?Q?ibHWYUUeya3+aM3e1YCTfI4eDbYf6oFwKrirbHYWcLqeLN9qyEzuFfmdPfGm?= =?us-ascii?Q?QT0rKqMB3FJgw=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 5:77r5eUJncCTyVDwBkzEJMPPbYXJgdTdJCgWxM6J0SA7q8jmo/2g7BskGsjjbvCKUFxyNSl92CfOVK1amuF05jmQlmseA+CTx+la537e0C1rWjjxIIJWSBjG3w71/QU7/J5+rWP3eBUFNGRaQylrkWg==; 24:MT2RMz7FP7iQwu8xp/bRqJPRn46CegW/OCNbJ+Ud89ehcptvQTa9usN0QifbeuWM+sSdbGupdUev0XSptwUg2gehP74yz0hNoqAmNqITXLA=; 20:Tu5s5o3W2baYZqr//VHjywYfIkMCkCQNqPICdINoIUZ0sUFOXz8Bl8ny5M4a++7mN8O2b2BD0ZgvKmcKWl/FPg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2015 19:57:04.5716 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151125_115727_716901_843B778A X-CRM114-Status: GOOD ( 13.03 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Vladimir Murzin <vladimir.murzin@arm.com>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/Makefile b/Makefile index 418e98a..a2e8d3a 100644 --- a/Makefile +++ b/Makefile @@ -602,7 +602,6 @@ all: vmlinux ARCH_CPPFLAGS := ARCH_AFLAGS := ARCH_CFLAGS := -include arch/$(SRCARCH)/Makefile KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) @@ -775,6 +774,7 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y) KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO endif +include arch/$(SRCARCH)/Makefile include scripts/Makefile.kasan include scripts/Makefile.extrawarn diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 432b69a..d865544 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -20,6 +20,10 @@ KBUILD_DEFCONFIG := defconfig # Check for binutils support for specific extensions lseinstr := $(call as-instr,.arch_extension lse,-DCONFIG_AS_LSE=1) +# Check KBUILD_CFLAGS for '-O0' as it's not supported now. +$(if $(findstring -O0,$(KBUILD_CFLAGS)), \ + $(error ARM64 does not support O0 optimization level. Try O1 or higher)) + ifeq ($(CONFIG_ARM64_LSE_ATOMICS), y) ifeq ($(lseinstr),) $(warning LSE atomics not supported by binutils)