From patchwork Mon Sep 15 05:30:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 37399 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BA198206A5 for ; Mon, 15 Sep 2014 05:30:40 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gi9sf1822813lab.3 for ; Sun, 14 Sep 2014 22:30:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=iW04orPGdrWggvpu4JKrE/eLjlildu+p/bvPi4P0y4c=; b=THoXHj1GtdtsVxf3VBlESRHOauLh4bcpjk49fpqNiGIFRZVZEBkjjTu5yy5Rr4PIUK SrZwcLOy2CHiGVSdo1R96Yb91Pad68+OnEEtnChF6sKk49ednaFWYNKhPvdtQbtkRvE7 DhtuDglYOcDvgmLEXIkAeLOMqEQlG0lQeg21uN7ryyhMo04ehfhSGgFWo5CeVEhkHQSn TzEAMVBY+D40m0I1lO0cI+R9wxi0SwfIC4k5M8I1QFGnQ6GFjVcKNYJc4TxZSjDHhs7Q /Wk8/L1KvA+/QFWPqthhHdynMbgs/Lx5ZhJldva0l46tmSBwLUTF3IF7zUECrSpGabTO UgOA== X-Gm-Message-State: ALoCoQkHyI5rvRR9vL6AfZZNoYbfYgcu/MT5FHgOaL9cX1OZeYmElTNVwqXhg8+qNMllE/Xao7OF X-Received: by 10.112.137.230 with SMTP id ql6mr148857lbb.13.1410759039178; Sun, 14 Sep 2014 22:30:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.225 with SMTP id w1ls354189lag.2.gmail; Sun, 14 Sep 2014 22:30:39 -0700 (PDT) X-Received: by 10.112.170.138 with SMTP id am10mr6201457lbc.74.1410759039002; Sun, 14 Sep 2014 22:30:39 -0700 (PDT) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [2a00:1450:4010:c03::232]) by mx.google.com with ESMTPS id jf4si17153174lbc.100.2014.09.14.22.30.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Sep 2014 22:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::232 as permitted sender) client-ip=2a00:1450:4010:c03::232; Received: by mail-la0-f50.google.com with SMTP id ty20so3892141lab.37 for ; Sun, 14 Sep 2014 22:30:38 -0700 (PDT) X-Received: by 10.152.204.231 with SMTP id lb7mr23606959lac.44.1410759038872; Sun, 14 Sep 2014 22:30:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp150972lbb; Sun, 14 Sep 2014 22:30:38 -0700 (PDT) X-Received: by 10.70.96.74 with SMTP id dq10mr41327408pdb.112.1410759037147; Sun, 14 Sep 2014 22:30:37 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si20779166pdd.78.2014.09.14.22.30.36 for ; Sun, 14 Sep 2014 22:30:37 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752153AbaIOFae (ORCPT + 27 others); Mon, 15 Sep 2014 01:30:34 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:62833 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbaIOFad (ORCPT ); Mon, 15 Sep 2014 01:30:33 -0400 Received: by mail-pd0-f179.google.com with SMTP id g10so5472912pdj.10 for ; Sun, 14 Sep 2014 22:30:32 -0700 (PDT) X-Received: by 10.68.194.66 with SMTP id hu2mr35742713pbc.19.1410759032832; Sun, 14 Sep 2014 22:30:32 -0700 (PDT) Received: from galdor.edimax.com ([38.126.120.10]) by mx.google.com with ESMTPSA id i10sm10201586pdn.26.2014.09.14.22.30.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Sep 2014 22:30:31 -0700 (PDT) From: behanw@converseincode.com To: anderson@redhat.com, catalin.marinas@arm.com, jays.lee@samsung.com, msalter@redhat.com, steve.capper@linaro.org, will.deacon@arm.com Cc: akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Charlebois , Behan Webster Subject: [PATCH] arm64: LLVMLinux: Fix inline arm64 assembly for use with clang Date: Sun, 14 Sep 2014 22:30:15 -0700 Message-Id: <1410759015-15642-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20140909101515.GB1754@arm.com> References: <20140909101515.GB1754@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::232 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mark Charlebois Remove '#' from immediate parameter in AARCH64 inline assembly in mmu. This code now works with both gcc and clang. Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster Acked-by: Will Deacon --- arch/arm64/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index c555672..6894ef3 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -94,7 +94,7 @@ static int __init early_cachepolicy(char *p) */ asm volatile( " mrs %0, mair_el1\n" - " bfi %0, %1, #%2, #8\n" + " bfi %0, %1, %2, #8\n" " msr mair_el1, %0\n" " isb\n" : "=&r" (tmp)