From patchwork Tue Mar 25 16:55:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27060 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 BDB1D2057C for ; Tue, 25 Mar 2014 16:57:45 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf2604233ieb.1 for ; Tue, 25 Mar 2014 09:57:45 -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=SBOOEKu5UMDE8S26fjh+IcW1gInLdVbTYu3UZaj4ORk=; b=HTYwZQV45XxOzfkhLcCkK19gYM7QkwgW1gHjtF3rKFVmDU8yVus/KkuK7aBkSUcuA2 /+a/z9RaJMwP3RB26cF4rrqAD9SFphCgcQBMuoWg8LTFAlMIarQUVJjJpprEZsc6lEiB Ia8gyjWRDQE9Z5GZ1EunZZAIcApg3u2IO/nHo+2LChY1e/F40JvnA81ljmJoLMRnY6aC VeG2W2DBYGZuBnNdOD1e08v/YjdR0466G+FjArlpolLiLrB+osD5c70Xu4yQ8ZMcGMA8 0mOx+gX/XSfpPalCmaIAQxA3OtGXy+k2rqb1AVX6v9MBO5kp+jcsmkfbsjbCpnvMlJhN 91YQ== X-Gm-Message-State: ALoCoQnb0prJGQMsm3X3uqOpROhcsvH4713KSDobkEcMsVpYvlsk7yzZywZiM+x2Ja+csQ++p/Da X-Received: by 10.182.133.6 with SMTP id oy6mr15896193obb.31.1395766665206; Tue, 25 Mar 2014 09:57:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.165 with SMTP id 34ls323801qgb.30.gmail; Tue, 25 Mar 2014 09:57:45 -0700 (PDT) X-Received: by 10.58.238.35 with SMTP id vh3mr55579217vec.16.1395766665116; Tue, 25 Mar 2014 09:57:45 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id cx4si3809305vcb.113.2014.03.25.09.57.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so955867vcb.0 for ; Tue, 25 Mar 2014 09:57:42 -0700 (PDT) X-Received: by 10.58.91.101 with SMTP id cd5mr55180648veb.5.1395766662474; Tue, 25 Mar 2014 09:57:42 -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 i9csp320346vck; Tue, 25 Mar 2014 09:57:42 -0700 (PDT) X-Received: by 10.58.152.142 with SMTP id uy14mr23751172veb.4.1395766662156; Tue, 25 Mar 2014 09:57:42 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id dm2si3876002vec.3.2014.03.25.09.57.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:42 -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 1WSUdi-00089t-4H; Tue, 25 Mar 2014 16:55:50 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUdg-00089P-E8 for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:55:48 +0000 Received: from [85.158.139.211:8547] by server-8.bemta-5.messagelabs.com id 60/40-11310-315B1335; Tue, 25 Mar 2014 16:55:47 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-6.tower-206.messagelabs.com!1395766546!3293821!1 X-Originating-IP: [74.125.83.44] 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 19733 invoked from network); 25 Mar 2014 16:55:46 -0000 Received: from mail-ee0-f44.google.com (HELO mail-ee0-f44.google.com) (74.125.83.44) by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:55:46 -0000 Received: by mail-ee0-f44.google.com with SMTP id e49so682154eek.17 for ; Tue, 25 Mar 2014 09:55:46 -0700 (PDT) X-Received: by 10.14.108.137 with SMTP id q9mr25995290eeg.11.1395766546574; Tue, 25 Mar 2014 09:55:46 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.55.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:55:45 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:08 +0000 Message-Id: <1395766541-23979-2-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: Keir Fraser , ian.campbell@citrix.com, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, Jan Beulich Subject: [Xen-devel] [PATCH 01/34] xen: clang: Disable initializer-overrides warning 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.220.169 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: The commit 819c084 "x86/MTRR: optionally print boot time state" introduces use of the pattern of initializing an array with a range-based default entry. On clang it results as a compilation failure: generic.c:95:32: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides] [MTRR_TYPE_UNCACHABLE] = "uncachable", ^~~~~~~~~~~~ generic.c:94:32: note: previous initialization is here [0 ... MTRR_NUM_TYPES - 1] = "?", ^~~ Signed-off-by: Julien Grall Cc: Keir Fraser Cc: Jan Beulich --- xen/Rules.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/Rules.mk b/xen/Rules.mk index 42c713f..18fbd62 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -68,6 +68,8 @@ ifneq ($(max_phys_irqs),) CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs) endif +CFLAGS-$(clang) += -Wno-initializer-overrides + AFLAGS-y += -D__ASSEMBLY__ -include $(BASEDIR)/include/xen/config.h # Clang's built-in assembler can't handle .code16/.code32/.code64 yet