From patchwork Fri Aug 30 22:59:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 19648 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E52D624694 for ; Fri, 30 Aug 2013 23:00:12 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l13sf2586765yen.6 for ; Fri, 30 Aug 2013 16:00:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=8i2SDMiIqAnRIIQEccvjP9RPKLB7AqI9Hx8AJAv0t2A=; b=iwquqqPFQ6+SQmWWUDqis+INzbgJqlcOK3cpYv1YPi+Gx60dwjTjfgZ8nIzq2hExMi B9ZmdbDNmgMKg9S/hB86R6yF81sOAN48HRxzE7OamCrMAEIwiDgn3/1bUMhuXcpmEPk0 rgmefq9kQfB/WlLlwrrVCqsJvAziHY4LDfquI8fCaRWPKlhe762CAtUVcik0kfWq8bFu 4q1IXeD8FzlQNyd77y56/56XCUCMw3ZD8h6yMCFYeRcX8idnaumLylMcJ0EeBOQ+sY2r 0ZCYVlVcdE2pOWIL7CI2Vave6QV3w0nuwLJ7FYFBRSitM9vAmhHRK1jCjMfZ/rn/xYh5 npVA== X-Received: by 10.236.172.34 with SMTP id s22mr4009392yhl.25.1377903612728; Fri, 30 Aug 2013 16:00:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.227 with SMTP id 3ls1580982qep.84.gmail; Fri, 30 Aug 2013 16:00:12 -0700 (PDT) X-Received: by 10.58.108.8 with SMTP id hg8mr9883336veb.6.1377903612646; Fri, 30 Aug 2013 16:00:12 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id sy3si67376vdc.145.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 16:00:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id w16so1728711vbf.35 for ; Fri, 30 Aug 2013 16:00:12 -0700 (PDT) X-Gm-Message-State: ALoCoQnmRNy9qqVzgxySOG4CQdaFoJzHoLPy6anBp5/e/o7GZRLhzdDZJp22ONl9Sxd5BNQe52E6 X-Received: by 10.58.155.37 with SMTP id vt5mr13430veb.41.1377903612549; Fri, 30 Aug 2013 16:00:12 -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.174.196 with SMTP id u4csp117368vcz; Fri, 30 Aug 2013 16:00:12 -0700 (PDT) X-Received: by 10.66.171.204 with SMTP id aw12mr13295658pac.7.1377903611658; Fri, 30 Aug 2013 16:00:11 -0700 (PDT) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx.google.com with ESMTPS id hi6si349375pac.142.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 16:00:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.54 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.220.54; Received: by mail-pa0-f54.google.com with SMTP id kx10so2899386pab.13 for ; Fri, 30 Aug 2013 16:00:11 -0700 (PDT) X-Received: by 10.66.138.74 with SMTP id qo10mr5809923pab.140.1377903611106; Fri, 30 Aug 2013 16:00:11 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id om2sm241835pbc.30.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 16:00:10 -0700 (PDT) From: Christoffer Dall To: Gleb Natapov , Paolo Bonzini Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, Christoffer Dall Subject: [PATCH 3/4] ARM: KVM: Work around older compiler bug Date: Fri, 30 Aug 2013 15:59:56 -0700 Message-Id: <1377903597-18704-4-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1377903597-18704-1-git-send-email-christoffer.dall@linaro.org> References: <1377903597-18704-1-git-send-email-christoffer.dall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 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: , Compilers before 4.6 do not behave well with unnamed fields in structure initializers and therefore produces build errors: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 By refering to the unnamed union using braces, both older and newer compilers produce the same result. Acked-by: Marc Zyngier Reported-by: Russell King Tested-by: Russell King Signed-off-by: Christoffer Dall --- arch/arm/kvm/reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kvm/reset.c b/arch/arm/kvm/reset.c index b7840e7..71e08ba 100644 --- a/arch/arm/kvm/reset.c +++ b/arch/arm/kvm/reset.c @@ -40,7 +40,7 @@ static struct kvm_regs a15_regs_reset = { }; static const struct kvm_irq_level a15_vtimer_irq = { - .irq = 27, + { .irq = 27 }, .level = 1, };