From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753900AbeCYSKF (ORCPT ); Sun, 25 Mar 2018 14:10:05 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:53710 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751597AbeCYSKE (ORCPT ); Sun, 25 Mar 2018 14:10:04 -0400 From: Stefan Agner To: linux@armlinux.org.uk, ard.biesheuvel@linaro.org, arnd@arndb.de Cc: robin.murphy@arm.com, nicolas.pitre@linaro.org, marc.zyngier@arm.com, behanw@converseincode.com, keescook@chromium.org, Bernhard.Rosenkranzer@linaro.org, mka@chromium.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH v2 0/6] ARM: clang support Date: Sun, 25 Mar 2018 20:09:53 +0200 Message-Id: <20180325180959.28008-1-stefan@agner.ch> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes some remaining issues when building the ARM architecture using LLVM/clang. The patchset requires the following kbuild change: https://lkml.org/lkml/2018/3/19/1756 With that patch and this patchset applied and I can successfully build (and boot) the multi_v7_defconfig with 4.16-rc5 using clang 5.0.1 and 6.0.0. This version also adds a patch to mitigate a often printed warning about duplicate 'const' declaration specifier when using get_user(). Stefan Agner (6): bus: arm-cci: use asm unreachable efi/libstub/arm: add support for building with clang ARM: trusted_foundations: do not use naked function ARM: drop no-thumb-interwork in EABI mode ARM: add support for building ARM kernel with clang ARM: uaccess: remove const to avoid duplicate specifier arch/arm/Makefile | 2 +- arch/arm/boot/compressed/Makefile | 2 +- arch/arm/firmware/trusted_foundations.c | 14 +++++++++----- arch/arm/include/asm/uaccess.h | 2 +- drivers/bus/arm-cci.c | 2 -- drivers/firmware/efi/libstub/Makefile | 3 ++- 6 files changed, 14 insertions(+), 11 deletions(-) -- 2.16.2