From patchwork Thu Mar 13 15:09:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 26204 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E55B206A0 for ; Thu, 13 Mar 2014 15:11:19 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf3908502ieb.5 for ; Thu, 13 Mar 2014 08:11:18 -0700 (PDT) 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=62NimViK6xkA+Iqye3HlwWgot5eZ09j653IGKbH65eI=; b=MPAF49WP9gzP4OJF3KnzkAzoQnhsiW/5aRpD7e6llEPwMG56xTyUgACOr7rQZe8d/E QvkzfnEmqSFiiTS5FH1a7Y9duIwpMF2OdfjPc9GHvX681I/1RB39oRB+zHVQmZ/ZhNEK dj9XacwyMJDvJQ+bspihqivCzYvR+yuV9NyzdPiF1cBs9T7WN7+cGRbLb3600QLM8rGu ZJLsQLsd+6TdJmoGRPUN2gXX4yk/LaAiFd9IqBFciDt5arj3tF4aPZGfC8p/x6yNDXzH mRDMmNFdNkvWx54LeejiOqrTro6zybUMeSHXg+G397SJsxTAL+xWFBqgN6hS1dgIBRIR XvFA== X-Gm-Message-State: ALoCoQlv7//ljRfAWeKzXWjT8HId1eEeTHkPts/tsnfWapCICck+Vwo6TM83Hu6CaFkfGEaRrndE X-Received: by 10.182.19.164 with SMTP id g4mr920329obe.21.1394723478781; Thu, 13 Mar 2014 08:11:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.101 with SMTP id a92ls299051qga.66.gmail; Thu, 13 Mar 2014 08:11:18 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr1901677vcm.11.1394723478666; Thu, 13 Mar 2014 08:11:18 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id be7si893964vcb.110.2014.03.13.08.11.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Mar 2014 08:11:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so1210161veb.40 for ; Thu, 13 Mar 2014 08:11:18 -0700 (PDT) X-Received: by 10.220.147.16 with SMTP id j16mr1539215vcv.28.1394723478584; Thu, 13 Mar 2014 08:11:18 -0700 (PDT) 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.78.9 with SMTP id i9csp374600vck; Thu, 13 Mar 2014 08:11:18 -0700 (PDT) X-Received: by 10.58.34.101 with SMTP id y5mr1943161vei.8.1394723477847; Thu, 13 Mar 2014 08:11:17 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id dl6si474096veb.95.2014.03.13.08.11.17 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 13 Mar 2014 08:11:17 -0700 (PDT) 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 1WO7GG-0001UI-9q; Thu, 13 Mar 2014 15:09:32 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WO7GF-0001Tr-0p for xen-devel@lists.xenproject.org; Thu, 13 Mar 2014 15:09:31 +0000 Received: from [85.158.139.211:54322] by server-3.bemta-5.messagelabs.com id 74/FD-28132-A2AC1235; Thu, 13 Mar 2014 15:09:30 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-12.tower-206.messagelabs.com!1394723369!846582!1 X-Originating-IP: [209.85.212.172] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4402 invoked from network); 13 Mar 2014 15:09:29 -0000 Received: from mail-wi0-f172.google.com (HELO mail-wi0-f172.google.com) (209.85.212.172) by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 13 Mar 2014 15:09:29 -0000 Received: by mail-wi0-f172.google.com with SMTP id hi5so4044287wib.17 for ; Thu, 13 Mar 2014 08:09:29 -0700 (PDT) X-Received: by 10.194.82.35 with SMTP id f3mr2206466wjy.36.1394723369502; Thu, 13 Mar 2014 08:09:29 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id d15sm6358675wjx.0.2014.03.13.08.09.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Mar 2014 08:09:28 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Thu, 13 Mar 2014 15:09:15 +0000 Message-Id: <1394723358-22845-3-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1394723358-22845-1-git-send-email-julien.grall@linaro.org> References: <1394723358-22845-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 v4 2/5] 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.181 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 b59ea2e..6b90998 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 8047141..100ae23 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 noreturn early_panic(const char *fmt, ...) @@ -31,6 +32,8 @@ void noreturn early_panic(const char *fmt, ...) #else +static inline void early_puts(const char *) {} + static inline __attribute__((format (printf, 1, 2))) void early_printk(const char *fmt, ...) {}