]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/include/asm/intel_rdt.h
x86/intel_rdt: Get rid of anon union
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Apr 2017 07:57:10 +0000 (09:57 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 Apr 2017 08:16:23 +0000 (10:16 +0200)
commita83827d04f081b1a73845553c7f60ab9cfd13767
tree1cd72c81678f38e0bdd83a5dcf9c7a77d17d50a6
parentc238f2343441e3995d2d4e993de42b072d005f4a
x86/intel_rdt: Get rid of anon union

gcc-4.4.3 fails to statically initialize members of a anon union.
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676

The storage saving is not really worth it and aside of that it will catch
usage of the cache member for bandwidth and vice versa easier.

Fixes: 05b93417ce5b ("x86/intel_rdt/mba: Add primary support for Memory Bandwidth Allocation (MBA)")
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/intel_rdt.h