From patchwork Sun Apr 28 23:01:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16471 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CE3FB25E07 for ; Sun, 28 Apr 2013 23:03:27 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id a11sf3958623qen.8 for ; Sun, 28 Apr 2013 16:02:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=9KpN+TNaBgCHMM/M3v7skZ4dd+mp89MN2+KfbQpES70=; b=DjJ+z7c3c8aFndntfHoEzPO5Qm27U1PZBEy1mr0kJHUhCbRo4312tkFwy2CqvpR8d3 u+Qay4NjmDngcpHAXYDYgCBfL2KNJG0w3A0k2pJHqC1W6hkJPRkMeufmHpY/SXWiS/B3 73Y6yuHvd723QnVyAeVV2QCD9dmiWvaESIR6dIdrbNFYLV9cqjPAEXgxAsA69SkKaQIe CU8HUz2TSS0o0VO9AU9dCfvHiUTol0R28w9fthSTRpv7KGr/Ex1ct3LXIXcd/4u0HpHC dp9rtpl8UmVGs7Uke3GHeyx6frFZjpn8LWizPFKJpun3vcuXuDvXjKU6ZZkaQl0oHO5x dPow== X-Received: by 10.224.217.195 with SMTP id hn3mr38792282qab.5.1367190146657; Sun, 28 Apr 2013 16:02:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.109.105 with SMTP id hr9ls2406681qeb.6.gmail; Sun, 28 Apr 2013 16:02:26 -0700 (PDT) X-Received: by 10.220.202.138 with SMTP id fe10mr29728887vcb.26.1367190146472; Sun, 28 Apr 2013 16:02:26 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id ex4si8958001vdb.92.2013.04.28.16.02.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Apr 2013 16:02:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id ht10so1376791vcb.41 for ; Sun, 28 Apr 2013 16:02:26 -0700 (PDT) X-Received: by 10.220.169.78 with SMTP id x14mr17308175vcy.41.1367190146303; Sun, 28 Apr 2013 16:02:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp33782veb; Sun, 28 Apr 2013 16:02:25 -0700 (PDT) X-Received: by 10.194.122.131 with SMTP id ls3mr35342664wjb.55.1367190145491; Sun, 28 Apr 2013 16:02:25 -0700 (PDT) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [2a00:1450:400c:c05::231]) by mx.google.com with ESMTPS id e4si3975752wjy.75.2013.04.28.16.02.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Apr 2013 16:02:25 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::231 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c05::231; Received: by mail-wi0-f177.google.com with SMTP id hj19so2217886wib.4 for ; Sun, 28 Apr 2013 16:02:25 -0700 (PDT) X-Received: by 10.180.94.196 with SMTP id de4mr14102403wib.23.1367190144965; Sun, 28 Apr 2013 16:02:24 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id k5sm18711393wiy.5.2013.04.28.16.02.23 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Apr 2013 16:02:24 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: ian.campbell@citrix.com, patches@linaro.org, anthony.perard@citrix.com, stefano.stabellini@eu.citrix.com, Julien Grall Subject: [RFC 05/29] xen/arm: Fix early_panic when EARLY_PRINTK is disabled Date: Mon, 29 Apr 2013 00:01:48 +0100 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQmB0k9l1RL9fl7ZkCI6O3wwtcvr5XOgu+tvLkMejuQFjGZ/JJQyW5yO2hZs2D/fgcBHJOZ0 X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Even if EARLY_PRINTK is not enabled, early_panic must never return. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/include/asm-arm/early_printk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h index a770d4a..a0297a7 100644 --- a/xen/include/asm-arm/early_printk.h +++ b/xen/include/asm-arm/early_printk.h @@ -20,7 +20,7 @@ void early_panic(const char *fmt, ...) __attribute__((noreturn)); #else static inline void early_printk(const char *fmt, ...) {} -static inline void early_panic(const char *fmt, ...) {} +static inline void __attribute__((noreturn)) early_panic(const char *fmt, ...) {while(1);} #endif