Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9914330imu; Sun, 30 Dec 2018 08:10:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN4eteVwvNhXvUQVw63Q8rIwvnszsqPFP3YuLvG5BoMa3H+S+07dP4DemM2ac8XAiruhwElW X-Received: by 2002:a17:902:280b:: with SMTP id e11mr34673557plb.269.1546186243379; Sun, 30 Dec 2018 08:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546186243; cv=none; d=google.com; s=arc-20160816; b=MZ8PjqbtfQZF0pSxWagp5xMp201ujddTQV8WVNWXWmX8p0ls3UOe85uH6l0FTVfkl1 TyV2r9f0k12UocECA5K6SzRATdduB/QkvB7sTCs5C6a9yoppRFYPNcLDkYvC789XJuKb pSJqfT+KFxa63b4LKC2bvamuZcIaQYPISnBcGIPR6/FQOQId34clwo7bTWSBeKQlLAih hob6L4Q091TlnAzEpaNrhfxHNWiP7C4g2oSKCmpwNvZN0Pgg+ZrkSIxcZSX7E7TdWsiz Kyeqtu/btcKvBJZZu64XYlUhpsa/4l3jzApZEa5aGAdmlViVRJRYtRKXLuXbm0BEtul3 axBg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=HaH+ectJntGjYeol3GIRZzeglaAV6+fvFtypLoSDJlo=; b=vF7MkAx74UP83rVckJ6YG6U6ri26VNiX95g80Fq8TGLe+F5KCCtFOI994U5rxOwL2+ kuRNvsXSW+KtDr/Ezb9FS7iDNPDNMNyLXUhAX350oUQX3/9kOJX1hDyPOi/Pzt1M17GX y3gWkgqmzSJGygVgdFP3Qao5JjnJnZF4a7C7/gyaTDdqrs22TY5vcfYGe+e55zctV2Ed rvXwZUsldoTPho+gs01lgR7snHlugUUti68QCVfeDCEZJAQuiJoOVAVtK/azW8H7Ymxv uBnAua3iJh2nv3x/S76ZrNP5EES+WppQaPfudPoV/f+mCmhFfcbGZXI4P/6T0UJjOls7 4nog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b="k/nU8YDr"; 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 p189si6845120pfb.0.2018.12.30.08.10.25; Sun, 30 Dec 2018 08:10:43 -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=@agner.ch header.s=dkim header.b="k/nU8YDr"; 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 S1726425AbeL3QIS (ORCPT + 99 others); Sun, 30 Dec 2018 11:08:18 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:38398 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725954AbeL3QIS (ORCPT ); Sun, 30 Dec 2018 11:08:18 -0500 Received: from zyt.lan (unknown [IPv6:2a02:169:3465::564]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 3C1735C09B9; Sun, 30 Dec 2018 17:08:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1546186096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=HaH+ectJntGjYeol3GIRZzeglaAV6+fvFtypLoSDJlo=; b=k/nU8YDrqgVgTTht/tKsdyXMqQPlj6oxZyEfAzEI6cjBCJ+jSNWPr3iyvzP0EucyoRcFq4 oxK25DEUFmdbAEmnPREVKxcF+v72w2QrMcVhNVzbU5vRFsEL4hPKvRNQThS/Mni3cGKAEZ Os+jIYJFNaEAv2/7HOa2vYRWslJ6CY0= From: Stefan Agner To: linux@armlinux.org.uk Cc: ndesaulniers@google.com, natechancellor@gmail.com, arnd@arndb.de, ard.biesheuvel@linaro.org, nicolas.pitre@linaro.org, peterz@infradead.org, mingo@redhat.com, will.deacon@arm.com, julien.thierry@arm.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Agner Subject: [PATCH 0/3] ARM: trivial assembly fixes to enable LLVM as Date: Sun, 30 Dec 2018 17:08:16 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During the last few days I tried compiling the kernel for ARM32 with LLVMs integrated assembler. The elephant in the room is definitely the unified syntax which is required by the LLVM assembler. I converted most mnemonics using a regex, but it is not perfect and needs some manual fixes. I am not sure if this is the right approach, feedback welcome. I plan to send fixes in groups in the next few weeks, if that effort is welcome. There are a couple of other issues besides unified syntax, e.g. lack of feature argument parsing (e.g. armv7-a+sec). This patchset is a starting point to enable LLVM integrated assembler and contains some trivial changes. With this patchset the LLVM integrated assembler can be used to assemble almost all C files. Stefan Agner (3): ARM: fix argument count to match macro definition ARM: uaccess: use unified assembler language syntax ARM: spinlock: use unified assembler language syntax arch/arm/include/asm/spinlock.h | 2 +- arch/arm/include/asm/uaccess.h | 2 +- arch/arm/lib/copy_template.S | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.20.1