From patchwork Fri May 10 02:17:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16820 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 851E5238F7 for ; Fri, 10 May 2013 02:19:35 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id c13sf3580838eek.7 for ; Thu, 09 May 2013 19:19:10 -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=AmNFY0210wcIQlZGK0X6OrsKie47QeVTsS0OUVGO7Fk=; b=OCGU37tSIllyoRlDbp+WTmYSfTmp0M6Vj0ohcFmMWmua6/Wz81igOH6/XHWKOvZEDx vH1rJF19kAI70Hj7A9AtiCY5sDO5gDRbDfZ3H4z4FVhUSqBlUeqz8wyvyxMJMGl83SmD Kzwwf8DroU9kyvhH2k/lndQwIgbnJibYWEcl/CkbyUDAqzsQO6t8bhKJFZBERyQbPyJj sHR1ZWqk+/Uh6fNjS4HOL+xrIOwjDlg3+xfsK/RemtYi/MAI/pfA4havusUnCUrJo9cR R59p3sxGegUpR2XRgCoIjDsypoQFpxyA5JuQ7nVXQYESt46K92hF2Ky1p0N1zxkD9dOX KmCw== X-Received: by 10.180.76.76 with SMTP id i12mr119247wiw.6.1368152349913; Thu, 09 May 2013 19:19:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.100.1 with SMTP id eu1ls30353wib.27.gmail; Thu, 09 May 2013 19:19:09 -0700 (PDT) X-Received: by 10.181.12.14 with SMTP id em14mr715703wid.18.1368152349789; Thu, 09 May 2013 19:19:09 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id k4si161333wje.137.2013.05.09.19.19.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:09 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::229 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::229; Received: by mail-ve0-f169.google.com with SMTP id jz10so3434107veb.14 for ; Thu, 09 May 2013 19:19:08 -0700 (PDT) X-Received: by 10.58.144.231 with SMTP id sp7mr9816457veb.34.1368152348634; Thu, 09 May 2013 19:19:08 -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 hk15csp36205vcb; Thu, 9 May 2013 19:19:08 -0700 (PDT) X-Received: by 10.194.109.198 with SMTP id hu6mr21495249wjb.5.1368152347566; Thu, 09 May 2013 19:19:07 -0700 (PDT) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [2a00:1450:400c:c03::234]) by mx.google.com with ESMTPS id f12si154031wjs.205.2013.05.09.19.19.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:07 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::234 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c03::234; Received: by mail-we0-f180.google.com with SMTP id n5so3435626wev.39 for ; Thu, 09 May 2013 19:19:07 -0700 (PDT) X-Received: by 10.194.92.231 with SMTP id cp7mr21511535wjb.3.1368152347095; Thu, 09 May 2013 19:19:07 -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.19.05 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:06 -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 08/41] xen/arm: Export early_vprintk Date: Fri, 10 May 2013 03:17:54 +0100 Message-Id: <1368152307-598-9-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: ALoCoQmp41M1snlFamHUi5Cyw6l9jBFdQZSXLRp0j/Ma2sA/h5xMsmRo6voc5Hjb26nfqzzNe9yg X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::229 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: , Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/arch/arm/early_printk.c | 2 +- xen/include/asm-arm/early_printk.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/early_printk.c b/xen/arch/arm/early_printk.c index 0f99a43..65fa912 100644 --- a/xen/arch/arm/early_printk.c +++ b/xen/arch/arm/early_printk.c @@ -42,7 +42,7 @@ static void __init early_puts(const char *s) } } -static void __init early_vprintk(const char *fmt, va_list args) +void __init early_vprintk(const char *fmt, va_list args) { vsnprintf(buf, sizeof(buf), fmt, args); early_puts(buf); diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h index a0297a7..7083199 100644 --- a/xen/include/asm-arm/early_printk.h +++ b/xen/include/asm-arm/early_printk.h @@ -11,14 +11,18 @@ #define __ARM_EARLY_PRINTK_H__ #include +#include +#include #ifdef EARLY_UART_ADDRESS +void __init early_vprintk(const char *fmt, va_list args); void early_printk(const char *fmt, ...); void early_panic(const char *fmt, ...) __attribute__((noreturn)); #else +static inline void __init early_vprintk(const char *fmt, va_list args) {} static inline void early_printk(const char *fmt, ...) {} static inline void __attribute__((noreturn)) early_panic(const char *fmt, ...) {while(1);}