aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-04-17 03:57:10 -0400
committerThomas Gleixner <tglx@linutronix.de>2017-04-17 04:16:23 -0400
commita83827d04f081b1a73845553c7f60ab9cfd13767 (patch)
tree1cd72c81678f38e0bdd83a5dcf9c7a77d17d50a6
parentc238f2343441e3995d2d4e993de42b072d005f4a (diff)
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>
-rw-r--r--arch/x86/include/asm/intel_rdt.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86/include/asm/intel_rdt.h
index bd184e1fd207..597dc4995678 100644
--- a/arch/x86/include/asm/intel_rdt.h
+++ b/arch/x86/include/asm/intel_rdt.h
@@ -167,10 +167,8 @@ struct rdt_resource {
167 struct rdt_resource *r); 167 struct rdt_resource *r);
168 int data_width; 168 int data_width;
169 struct list_head domains; 169 struct list_head domains;
170 union { 170 struct rdt_cache cache;
171 struct rdt_cache cache; 171 struct rdt_membw membw;
172 struct rdt_membw membw;
173 };
174 struct rftype *info_files; 172 struct rftype *info_files;
175 int nr_info_files; 173 int nr_info_files;
176 const char *format_str; 174 const char *format_str;