From patchwork Fri Sep 5 23:21:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 36914 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21007202E4 for ; Fri, 5 Sep 2014 23:22:18 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id rd18sf4285898iec.5 for ; Fri, 05 Sep 2014 16:22:17 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=jPHnxM3LcsFoPxj5aD/p30e6zFBzhqihbXZ1VLr2wXg=; b=b6NdFTp/cV19zA7+nohmyRmoVzCkKeyE/+pIhiqn8Mvzg601KpaqJVIQiOvGNwELp6 4GnPWd6UHSClk8IrHoDS/qEEE9T5ygVEofyU5HH3KswStz6if7uQqUcLPprPZQ0S9hqb pV8ti5MB+n4ktlQUVA0KVj/cl54mkXOuMVtBl/oiSrULW15Un4jeRLndbto0yO9rxXFN mPSUgFssEjw1U9ale9l4VN/HKaECYqovSPR5PvqBrF8O9ix3Ei7mq6svGDEA10NJjjvy lFD1IIyeUMXT/cPVrn1GDgFLAKbqK1sSGfHKJo05l/XJHcHbw1XsG37cT1j4ZyDLM+oT DLKA== X-Gm-Message-State: ALoCoQn5TtWHgDlbp5DzZNIyDznWx1E7/Em8dI1Xs5roVgacziXGEqgattSQ6MQD4wUP/SIJEnNv X-Received: by 10.50.33.18 with SMTP id n18mr3908888igi.8.1409959337749; Fri, 05 Sep 2014 16:22:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.50 with SMTP id h47ls945365qge.43.gmail; Fri, 05 Sep 2014 16:22:17 -0700 (PDT) X-Received: by 10.52.38.134 with SMTP id g6mr4704462vdk.34.1409959337656; Fri, 05 Sep 2014 16:22:17 -0700 (PDT) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [2607:f8b0:400c:c03::22e]) by mx.google.com with ESMTPS id bg10si1528108vcb.106.2014.09.05.16.22.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 16:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22e as permitted sender) client-ip=2607:f8b0:400c:c03::22e; Received: by mail-vc0-f174.google.com with SMTP id hy4so12914829vcb.5 for ; Fri, 05 Sep 2014 16:22:17 -0700 (PDT) X-Received: by 10.220.172.8 with SMTP id j8mr4111247vcz.32.1409959337576; Fri, 05 Sep 2014 16:22:17 -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.221.45.67 with SMTP id uj3csp149937vcb; Fri, 5 Sep 2014 16:22:17 -0700 (PDT) X-Received: by 10.69.12.33 with SMTP id en1mr274500pbd.66.1409959336814; Fri, 05 Sep 2014 16:22:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xf10si6196479pab.197.2014.09.05.16.22.16 for ; Fri, 05 Sep 2014 16:22:16 -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 S1753397AbaIEXV6 (ORCPT + 26 others); Fri, 5 Sep 2014 19:21:58 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35081 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbaIEXV4 (ORCPT ); Fri, 5 Sep 2014 19:21:56 -0400 Received: by mail-pa0-f46.google.com with SMTP id eu11so23197530pac.19 for ; Fri, 05 Sep 2014 16:21:56 -0700 (PDT) X-Received: by 10.66.182.227 with SMTP id eh3mr26769297pac.68.1409959316234; Fri, 05 Sep 2014 16:21:56 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id q1sm2653348pdq.67.2014.09.05.16.21.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 16:21:55 -0700 (PDT) From: behanw@converseincode.com To: catalin.marinas@arm.com, jays.lee@samsung.com, will.deacon@arm.com Cc: kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, steve.capper@linaro.org, sungjinn.chung@samsung.com, Mark Charlebois , Behan Webster Subject: [PATCH] arm64: LLVMLinux: Add missing abort() for AARCH64 Date: Fri, 5 Sep 2014 16:21:42 -0700 Message-Id: <1409959302-13976-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 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 2607:f8b0:400c:c03::22e 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 Add missing abort for arch aarch64. This patch makes the aarch64 kernel able to compile with gcc or clang. Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster --- arch/arm64/kernel/traps.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 02cd3f0..123cd6e 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -349,6 +349,15 @@ void __pgd_error(const char *file, int line, unsigned long val) pr_crit("%s:%d: bad pgd %016lx.\n", file, line, val); } +void abort(void) +{ + BUG(); + + /* if that doesn't kill us, halt */ + panic("Oops failed to kill thread"); +} +EXPORT_SYMBOL(abort); + void __init trap_init(void) { return;