mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
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: 05b93417ce
("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>
This commit is contained in:
parent
c238f23434
commit
a83827d04f
1 changed files with 2 additions and 4 deletions
|
@ -167,10 +167,8 @@ struct rdt_resource {
|
|||
struct rdt_resource *r);
|
||||
int data_width;
|
||||
struct list_head domains;
|
||||
union {
|
||||
struct rdt_cache cache;
|
||||
struct rdt_membw membw;
|
||||
};
|
||||
struct rdt_cache cache;
|
||||
struct rdt_membw membw;
|
||||
struct rftype *info_files;
|
||||
int nr_info_files;
|
||||
const char *format_str;
|
||||
|
|
Loading…
Reference in a new issue