From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933099AbdDQILo (ORCPT ); Mon, 17 Apr 2017 04:11:44 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:47059 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932846AbdDQILm (ORCPT ); Mon, 17 Apr 2017 04:11:42 -0400 Date: Mon, 17 Apr 2017 10:11:30 +0200 (CEST) From: Thomas Gleixner To: Fengguang Wu cc: tipbuild@zytor.com, Vikas Shivappa , kbuild-all@01.org, LKML , "H. Peter Anvin" Subject: Re: [kbuild-all] [tip:x86/cpu 8/12] arch/x86/kernel/cpu/intel_rdt.c:63: error: unknown field 'cache' specified in initializer In-Reply-To: <20170417020050.chexrahs3xmayaft@wfg-t540p.sh.intel.com> Message-ID: References: <201704150543.9Nvkt4T4%fengguang.wu@intel.com> <20170417020050.chexrahs3xmayaft@wfg-t540p.sh.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Apr 2017, Fengguang Wu wrote: > > So the compiler fails to handle the anon union, which was introduced in > > 05b93417ce5b924. No idea why, but that concept is not new and widely used > > in the kernel already. > > It looks like a problem with gcc 4.4: > > Bug 42875 - gcc disallows named initializers for anonymous unions > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42875 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 > > gcc-4.4.3 lets you statically initialize named fields, and > lets you assign to anonymous union members, but you cannot > statically initialize a named member of an anonymous union. Bah. I'll fix it up. Thanks, tglx