From patchwork Mon Feb 24 14:52:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 25199 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B27AC2066C for ; Mon, 24 Feb 2014 14:53:56 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf22640565iec.2 for ; Mon, 24 Feb 2014 06:53:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=sf1ty0ac+YMUwVC5PS6e61f0OpCZIupmE5ILV26lZ44=; b=hMHEyEF+j+Cd+irCvi2VQhvnuKOTvR2Wr5LUoWRc0XzoX/iIp4cWyryeLP5amnUH49 De33IZQvVneme/b6D+zxfNa4t16TFvfwaRLuq4ysk6E0ObVUn0TQdxrkM5OvyadBrwQD AHY/YDgg/UDO7l9jS8GUmnBYHgMe9TwAlgvBWpzf5NvuRHf1EFkVFsWiQHyVdXq+UwPG +DRGD4nh1ydCJq1Z8LcJTtTFX30DEwfuKfvWVf33KyUjoOvprcFgU3/vkbZ+NlVT//aj 07/EkQoQbJriBH6HxmezjDZYdXWbJiDyzOAbwJFE00zB6vd4x6ZxDjt9nEcXgS+4DeFl V+sQ== X-Gm-Message-State: ALoCoQlrdBsr1Qm+naU+XxgfaLXKArdpOKRdHJ90GqlTuyEbjyxTmkd9xl83s+V/7Av7UL0htRlw X-Received: by 10.43.100.129 with SMTP id cw1mr9260713icc.30.1393253636214; Mon, 24 Feb 2014 06:53:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.72 with SMTP id e66ls1964828qge.67.gmail; Mon, 24 Feb 2014 06:53:56 -0800 (PST) X-Received: by 10.52.190.195 with SMTP id gs3mr319368vdc.67.1393253636064; Mon, 24 Feb 2014 06:53:56 -0800 (PST) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id sq4si5871857vdc.93.2014.02.24.06.53.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 06:53:56 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id oz11so1206326veb.2 for ; Mon, 24 Feb 2014 06:53:56 -0800 (PST) X-Received: by 10.220.110.210 with SMTP id o18mr584356vcp.49.1393253635990; Mon, 24 Feb 2014 06:53:55 -0800 (PST) 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.220.174.196 with SMTP id u4csp66745vcz; Mon, 24 Feb 2014 06:53:55 -0800 (PST) X-Received: by 10.220.92.135 with SMTP id r7mr12799411vcm.11.1393253635620; Mon, 24 Feb 2014 06:53:55 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id y7si5896205vcf.36.2014.02.24.06.53.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 24 Feb 2014 06:53:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WHwu7-00068s-Ml; Mon, 24 Feb 2014 14:53:11 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WHwu6-00067q-G8 for xen-devel@lists.xenproject.org; Mon, 24 Feb 2014 14:53:10 +0000 Received: from [85.158.139.211:5400] by server-3.bemta-5.messagelabs.com id 7A/31-13671-5DC5B035; Mon, 24 Feb 2014 14:53:09 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-12.tower-206.messagelabs.com!1393253588!5898034!1 X-Originating-IP: [209.85.215.172] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3373 invoked from network); 24 Feb 2014 14:53:09 -0000 Received: from mail-ea0-f172.google.com (HELO mail-ea0-f172.google.com) (209.85.215.172) by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 24 Feb 2014 14:53:09 -0000 Received: by mail-ea0-f172.google.com with SMTP id l9so3148910eaj.17 for ; Mon, 24 Feb 2014 06:53:08 -0800 (PST) X-Received: by 10.14.204.9 with SMTP id g9mr24750331eeo.82.1393253588735; Mon, 24 Feb 2014 06:53:08 -0800 (PST) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id x6sm64689130eew.20.2014.02.24.06.53.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Feb 2014 06:53:07 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 24 Feb 2014 14:52:48 +0000 Message-Id: <1393253572-7157-3-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1393253572-7157-1-git-send-email-julien.grall@linaro.org> References: <1393253572-7157-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v2 2/6] xen/arm: earlyprintk: export early_puts X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.171 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Signed-off-by: Julien Grall Acked-by: Ian Cambpell --- Changes in v2: - Fix coding style --- xen/arch/arm/early_printk.c | 2 +- xen/include/asm-arm/early_printk.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/early_printk.c b/xen/arch/arm/early_printk.c index 7143f9e..affe424 100644 --- a/xen/arch/arm/early_printk.c +++ b/xen/arch/arm/early_printk.c @@ -21,7 +21,7 @@ void early_flush(void); /* Early printk buffer */ static char __initdata buf[512]; -static void __init early_puts(const char *s) +void early_puts(const char *s) { while (*s != '\0') { if (*s == '\n') diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h index 707bbf7..27ac8ce 100644 --- a/xen/include/asm-arm/early_printk.h +++ b/xen/include/asm-arm/early_printk.h @@ -24,6 +24,7 @@ #ifdef EARLY_PRINTK +void early_puts(const char *s); void early_printk(const char *fmt, ...) __attribute__((format (printf, 1, 2))); void early_panic(const char *fmt, ...) __attribute__((noreturn)) @@ -31,6 +32,8 @@ void early_panic(const char *fmt, ...) __attribute__((noreturn)) #else +static inline void early_puts(const char *) {} + static inline __attribute__((format (printf, 1, 2))) void early_printk(const char *fmt, ...) {}