From patchwork Thu May 16 22:34:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 17006 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1834C2391B for ; Thu, 16 May 2013 22:35:40 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z6sf4753919yhz.7 for ; Thu, 16 May 2013 15:35:00 -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 :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=zF7M3ZeA1749rVPnDe39QoL0T20KsD7NyqWPOwEglh8=; b=mCmnm4GPgLXAE2XsLa0XA4SXtTL4bsdbw8zGzuxDFQ7Lh/ef7q4Kve5Mc6cmibtlQV t1c8AKH7aU89CppxHLPyRECoK4cF55NWGYmPg+RxqJpWgxB0jF4Xs2K/Yd5mXjLzE4ns x+erG3DQHrp4tMmm1ZFDguX0+uQCnjsLgv4QCEknXNNfXYIXarj2v2uRmmwg7r38b9Dv KCXM503Rs4bMeGvJpCh50sBSz5zafP+Wd3XYHiaQaVMWYCPM0BOqfI140LFZvWzZmgB/ dl8N7j5e7vlCWN7bMWTKe3MmCWHhVx+0q7Mt0bkdTijMi95ped8aphccp+PBQShAwqSg WBdg== X-Received: by 10.224.165.130 with SMTP id i2mr26777081qay.2.1368743699846; Thu, 16 May 2013 15:34:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.130.73 with SMTP id oc9ls1558502qeb.85.gmail; Thu, 16 May 2013 15:34:59 -0700 (PDT) X-Received: by 10.58.180.196 with SMTP id dq4mr28958304vec.10.1368743699643; Thu, 16 May 2013 15:34:59 -0700 (PDT) Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [2607:f8b0:400c:c01::231]) by mx.google.com with ESMTPS id ad7si4678842vdc.146.2013.05.16.15.34.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 15:34:59 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::231 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::231; Received: by mail-ve0-f177.google.com with SMTP id ox1so3437770veb.8 for ; Thu, 16 May 2013 15:34:59 -0700 (PDT) X-Received: by 10.52.34.114 with SMTP id y18mr1625119vdi.56.1368743699417; Thu, 16 May 2013 15:34:59 -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.126.138 with SMTP id c10csp82678vcs; Thu, 16 May 2013 15:34:58 -0700 (PDT) X-Received: by 10.14.42.9 with SMTP id i9mr120920656eeb.18.1368743697784; Thu, 16 May 2013 15:34:57 -0700 (PDT) Received: from mail-ea0-x234.google.com (mail-ea0-x234.google.com [2a00:1450:4013:c01::234]) by mx.google.com with ESMTPS id k4si13060870eey.220.2013.05.16.15.34.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 15:34:57 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4013:c01::234 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:4013:c01::234; Received: by mail-ea0-f180.google.com with SMTP id g10so2070909eak.39 for ; Thu, 16 May 2013 15:34:57 -0700 (PDT) X-Received: by 10.14.87.9 with SMTP id x9mr106579123eee.3.1368743697041; Thu, 16 May 2013 15:34:57 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id t9sm13964835eeo.11.2013.05.16.15.34.55 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 15:34:56 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, andre.przywara@linaro.org, Julien Grall Subject: [PATCH] xen/arm: Remove leading +1 when hypervisor compat property is created Date: Thu, 16 May 2013 23:34:11 +0100 Message-Id: <1368743651-31492-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQnm4CQRmH0dNP4p1Yv2hCzIl6nHx02uNuw0gG4V9yGPmWOa+vBUdKWeS2DwvR/En04n2mOK X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::231 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: , When a static array with string is created, the size of this array contains the \0. This error was raised with gcc 4.7 because, the local variables are not always initialized to 0. Signed-off-by: Julien Grall Acked-by: Stefano Stabellini --- xen/arch/arm/domain_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 8369099..b92c64b 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -279,7 +279,7 @@ static void make_hypervisor_node(void *fdt, int addrcells, int sizecells) fdt_begin_node(fdt, "hypervisor"); /* Cannot use fdt_property_string due to embedded nulls */ - fdt_property(fdt, "compatible", compat, sizeof(compat) + 1); + fdt_property(fdt, "compatible", compat, sizeof(compat)); /* reg 0 is grant table space */ cell = ®[0];