From patchwork Wed May 8 02:33:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16740 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 54338238FD for ; Wed, 8 May 2013 02:35:00 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id d1sf1644264qcz.8 for ; Tue, 07 May 2013 19:34:40 -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=/bbge3Z+vuMtzM8Uzs2yEimZlwf76FawREG3DqhxywY=; b=Zo2M9gQmfKDy7qJ/mV5SYOz43sQt2xT2WQGXsQ4Uu0/U3FjKwHxjhRp69h3Yjls2t5 0ChyP9yIYG36fB/9ETtpRTbesuXmZaKgz4NC36dzaHwGvbFaJEuiI9nTCWaN8hCElMur 0htz1bWFX0wBykhSzMHm55ieBEUla3mU5jELGdfsZigcBssz5SLZbZIG2iEthvj6F309 mzFSz422pxxMBscLfKZJvnE9DlgDiXG03Ec9vUD78M79w452d6F+NjLagSVhAXCKzy8k W+vYnwgQNqvjq2QmEh/GsiQ/CSlokYaJTQVBP2TbD2msvbdl4ZLy13CfCJ4RhCzNLGTt N1SQ== X-Received: by 10.224.165.130 with SMTP id i2mr6519472qay.2.1367980480165; Tue, 07 May 2013 19:34:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.231 with SMTP id y7ls678722qeu.16.gmail; Tue, 07 May 2013 19:34:39 -0700 (PDT) X-Received: by 10.52.176.38 with SMTP id cf6mr2650559vdc.132.1367980479946; Tue, 07 May 2013 19:34:39 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id sc6si14144656vdc.73.2013.05.07.19.34.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id hv10so1244236vcb.11 for ; Tue, 07 May 2013 19:34:39 -0700 (PDT) X-Received: by 10.52.175.200 with SMTP id cc8mr2684462vdc.94.1367980479814; Tue, 07 May 2013 19:34:39 -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 nf2csp130995veb; Tue, 7 May 2013 19:34:39 -0700 (PDT) X-Received: by 10.194.158.37 with SMTP id wr5mr7162959wjb.23.1367980477788; Tue, 07 May 2013 19:34:37 -0700 (PDT) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [2a00:1450:400c:c00::231]) by mx.google.com with ESMTPS id cg9si8849720wjb.23.2013.05.07.19.34.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:37 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::231 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c00::231; Received: by mail-wg0-f49.google.com with SMTP id j13so1309411wgh.4 for ; Tue, 07 May 2013 19:34:37 -0700 (PDT) X-Received: by 10.194.47.176 with SMTP id e16mr7092750wjn.46.1367980477426; Tue, 07 May 2013 19:34:37 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id v6sm6823630wiy.11.2013.05.07.19.34.35 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:36 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, patches@linaro.org, ian.campbell@citrix.com, Julien Grall Subject: [PATCH V2 05/33] xen/arm: Fix early_panic when EARLY_PRINTK is disabled Date: Wed, 8 May 2013 03:33:25 +0100 Message-Id: <3ccbd17c1cafcd9a7479d43b5b46257ab03c3a6f.1367979526.git.julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQmrPVTJcPxY5HcvAQ6s+tpJ1hBsuoSlK8jG4J6ihp373tQT02JQ3NH6z54Ce3Xo3u6RkTGu X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 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