Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2556350imu; Thu, 29 Nov 2018 06:51:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/UMBbuDEf+f5Ws62XpBKRiAh4DQRFrbpiG9qN7AadybWaB9OziWs7QsQcpQ/0Fwu2KrOZR8 X-Received: by 2002:a17:902:20e9:: with SMTP id v38mr1689493plg.250.1543503090627; Thu, 29 Nov 2018 06:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543503090; cv=none; d=google.com; s=arc-20160816; b=k6Jk0q8Pv2t0HJub2DjdaNBVIf50Q9SG/q9AtyrsotZ+dro6rUnX/b6P5sqx67dImB jiiZriu0K6Nphu4YuGxfyxAmm3+kXPeRmmDPTsxHfqhrvhC/LMTsSTN8NYT6WLEJQS6F 3+yGfiz6+0L9jTMsaAgxvdFIk0+JDabVJvoLaOhdTaZZh51W2gH1czAhrEqG4R7lzeL7 8JfQ+od3kr5o5dRevxs7YzKOuKcRkkqSVbB0NxjCOlrf84GURQVr+vYyXC0faxkQjIxR /r8rG7LJeqPVp0YjIPRtyxsCUhJupA346S+rMGg15H44Jt0g4tEGYzjXSm7fInhA0lwl T/tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XBUVmvHuzvmoMME8Lnbn9lnE1X2g3ZgUMQm1I3X++eM=; b=F/mS6xwFVQLhnIJYLadGV0KyG/qiEH+cUF04jfeAem8HRF3pekrctGEMAxD11Q2x9f cs4p54Eb6hGBlyvGMmKQvGoGjIJYfQ60IIccj81sHeBadBWSlGCHZwZRyFJOKLsBKvCz Qolm1hEKvqBzIleAIpTQUHS2VUTexNMkx6ss6Ip2G5WUoSFnWj+BITrBBajt453pZEwy VOCqbPZtfgTvmJesbzQjOkhGSk5rezPdmnU+gG2fJ0vjKRaUscxdKbHjLTRnSj+02HAm fRmdONNBNy3Yx7+ywdG2DrQepBjZvH5ZjIDGl9ILXqs5SovRWdV8ZJn/E1paZxxKOE67 wXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KYzt0Yg8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e35si1852509pgb.548.2018.11.29.06.51.15; Thu, 29 Nov 2018 06:51:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=KYzt0Yg8; 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 S1732667AbeK3BaC (ORCPT + 99 others); Thu, 29 Nov 2018 20:30:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:56842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731509AbeK3BaB (ORCPT ); Thu, 29 Nov 2018 20:30:01 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9F41D205C9; Thu, 29 Nov 2018 14:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501470; bh=BOSO/LAnamxiN6boCORNJjhFnQ2Ifsic/WhGceDaCqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KYzt0Yg8b9YPvYlBLRrBzf9D+Vw9YmABqMkaER0ZmOBmw+CNMTdZI0XjHBP95DKYe mYbmxbpEwBtBXBOiYrvGKVe6TxGwwRAmvXhPQMnqePmGZvlYogcMVceNdLn8YGpfc8 tjuHfEFBL3DyUeMG/CB6Wz0/nDm3Z9pqZQLG6rL0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Agner , Russell King , Nick Desaulniers Subject: [PATCH 4.14 003/100] ARM: 8767/1: add support for building ARM kernel with clang Date: Thu, 29 Nov 2018 15:11:33 +0100 Message-Id: <20181129140059.153160367@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Agner (commit c1c386681bd73c4fc28eb5cc91cf8b7be9b409ba upstream) Use cc-options call for compiler options which are not available in clang. With this patch an ARMv7 multi platform kernel can be successfully build using clang (tested with version 5.0.1). Based-on-patches-by: Behan Webster Signed-off-by: Stefan Agner Signed-off-by: Russell King Signed-off-by: Nick Desaulniers Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/compressed/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -113,7 +113,7 @@ CFLAGS_fdt_ro.o := $(nossp_flags) CFLAGS_fdt_rw.o := $(nossp_flags) CFLAGS_fdt_wip.o := $(nossp_flags) -ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj) +ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj) asflags-y := -DZIMAGE # Supply kernel BSS size to the decompressor via a linker symbol.