From patchwork Mon Nov 12 11:57:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 1727971 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 4C905DFF38 for ; Mon, 12 Nov 2012 11:58:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064Ab2KLL6I (ORCPT ); Mon, 12 Nov 2012 06:58:08 -0500 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:55167 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918Ab2KLL5k (ORCPT ); Mon, 12 Nov 2012 06:57:40 -0500 Received: from mudshark.cambridge.arm.com (mudshark.cambridge.arm.com [10.1.79.58]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id qACBvYE7025849; Mon, 12 Nov 2012 11:57:34 GMT Received: by mudshark.cambridge.arm.com (Postfix, from userid 1000) id A4C48C2A93; Mon, 12 Nov 2012 11:57:33 +0000 (GMT) From: Will Deacon To: kvm@vger.kernel.org Cc: penberg@kernel.org, marc.zyngier@arm.com, c.dall@virtualopensystems.com, matt.evans@arm.com, peter.maydell@linaro.org, Will Deacon Subject: [RFC PATCH 06/16] kvm tools: don't pass -Wcast-align to the compiler Date: Mon, 12 Nov 2012 11:57:20 +0000 Message-Id: <1352721450-11340-7-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1352721450-11340-1-git-send-email-will.deacon@arm.com> References: <1352721450-11340-1-git-send-email-will.deacon@arm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org GCC 4.7 with -Wcast-align will warn for code like the following: bar = (struct foo *)(char *)(0); which is exactly the sort of code generated by container_of. In combination with -Werror, this breaks the build. This patch removes the option from the kvmtool Makefile. Signed-off-by: Will Deacon --- tools/kvm/Makefile | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index bb22587..c105de1 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -247,7 +247,6 @@ KVM_INCLUDE := include CFLAGS += $(CPPFLAGS) $(DEFINES) -I$(KVM_INCLUDE) -I$(ARCH_INCLUDE) -I$(KINCL_PATH)/include/uapi -I$(KINCL_PATH)/include -I$(KINCL_PATH)/arch/$(ARCH)/include/uapi -I$(KINCL_PATH)/arch/$(ARCH)/include/ -O2 -fno-strict-aliasing -g WARNINGS += -Wall -WARNINGS += -Wcast-align WARNINGS += -Wformat=2 WARNINGS += -Winit-self WARNINGS += -Wmissing-declarations