arm64_cpu_capabilities: flatten struct
The midr_* part of the struct was never used, and confuses older gcc with partially uninitialized assignments that were not correct. Just flatten the struct Change-Id: I7a9cfe064ab97cdcd5ac50ce4fb713c4d7983bd3
This commit is contained in:
committed by
Dominique Martinet
parent
76a0cc71fc
commit
19b02cf4ed
@@ -67,21 +67,12 @@ struct arm64_cpu_capabilities {
|
|||||||
int def_scope;/* default scope */
|
int def_scope;/* default scope */
|
||||||
int (*matches)(const struct arm64_cpu_capabilities *caps, int scope);
|
int (*matches)(const struct arm64_cpu_capabilities *caps, int scope);
|
||||||
int (*enable)(void *);/* Called on all active CPUs */
|
int (*enable)(void *);/* Called on all active CPUs */
|
||||||
union {
|
uint32_t sys_reg;
|
||||||
struct {/* To be used for erratum handling only */
|
uint8_t field_pos;
|
||||||
uint32_t midr_model;
|
uint8_t min_field_value;
|
||||||
uint32_t midr_range_min, midr_range_max;
|
uint8_t hwcap_type;
|
||||||
};
|
int sign;
|
||||||
|
unsigned long hwcap;
|
||||||
struct {/* Feature register checking */
|
|
||||||
uint32_t sys_reg;
|
|
||||||
uint8_t field_pos;
|
|
||||||
uint8_t min_field_value;
|
|
||||||
uint8_t hwcap_type;
|
|
||||||
int sign;
|
|
||||||
unsigned long hwcap;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* @ref.impl include/linux/bitops.h */
|
/* @ref.impl include/linux/bitops.h */
|
||||||
|
|||||||
Reference in New Issue
Block a user