From patchwork Fri May 10 02:17:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16817 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E6115238F7 for ; Fri, 10 May 2013 02:19:26 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id jz10sf4554356veb.4 for ; Thu, 09 May 2013 19:19:02 -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=9BkeeNBdE/joYZ7v8v5ZiDfRKL3YI+6K17FkpzhLizs=; b=ZpisgxGQYhwPXlEAJ3J6Ve6InpBjjM25XcKkoBGYaX1aSi4xvfFsS4/hhx+jTL5SrD v6JV7yCFhpt+q63yhi3DKANj7JVvw5dNc9lpUJcxP/VnST/j/IcppBpG3d/e1RghUYvF kVew6RsjJfOTHq21XS1Wv33PBylj4LLu7VThq8Wllmkxf0MH3lEIx0rEFCbrX70CjPac D46VnUZKVmLXvHIIR3xvc5UJyd/e3JdOV0nmHTkTYJ2ZZuOGjYBHXPGhNjP8tCV5nUrm UHdhrPjWraMErF+BpTLGmo2M278T0nghVp9lKa9EAYcNVQ9Avgra4o8f2h6v12jLXEch oOEA== X-Received: by 10.236.199.198 with SMTP id x46mr7486629yhn.41.1368152342147; Thu, 09 May 2013 19:19:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.131.71 with SMTP id ok7ls1805317qeb.52.gmail; Thu, 09 May 2013 19:19:01 -0700 (PDT) X-Received: by 10.58.196.129 with SMTP id im1mr9746585vec.46.1368152341822; Thu, 09 May 2013 19:19:01 -0700 (PDT) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [2607:f8b0:400c:c01::233]) by mx.google.com with ESMTPS id zp6si358589vdb.2.2013.05.09.19.19.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:01 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::233; Received: by mail-ve0-f179.google.com with SMTP id oz11so3402821veb.24 for ; Thu, 09 May 2013 19:19:01 -0700 (PDT) X-Received: by 10.52.175.200 with SMTP id cc8mr8339037vdc.94.1368152341439; Thu, 09 May 2013 19:19:01 -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.220.217.15 with SMTP id hk15csp36198vcb; Thu, 9 May 2013 19:19:00 -0700 (PDT) X-Received: by 10.194.62.80 with SMTP id w16mr10226600wjr.16.1368152340334; Thu, 09 May 2013 19:19:00 -0700 (PDT) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [2a00:1450:400c:c00::235]) by mx.google.com with ESMTPS id cm10si177329wib.3.2013.05.09.19.18.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:00 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::235 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c00::235; Received: by mail-wg0-f53.google.com with SMTP id y10so3745045wgg.32 for ; Thu, 09 May 2013 19:18:59 -0700 (PDT) X-Received: by 10.194.178.162 with SMTP id cz2mr21470799wjc.27.1368152339848; Thu, 09 May 2013 19:18:59 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id dj7sm597075wib.6.2013.05.09.19.18.58 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:18:59 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH V3 05/41] xen/arm: Fix early_panic when EARLY_PRINTK is disabled Date: Fri, 10 May 2013 03:17:51 +0100 Message-Id: <1368152307-598-6-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368152307-598-1-git-send-email-julien.grall@linaro.org> References: <1368152307-598-1-git-send-email-julien.grall@linaro.org> X-Gm-Message-State: ALoCoQl1YzM7lEMMOyN0M2Vgjb3X+es7sk4+jNmXONH03RLSeemS3ZfgZzL4DSLOymMUX1wHNnBQ X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::233 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