cpu.h: Fix size of array element is not a multiple of its alignment
Pointed out by gcc11. Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1937076 Change-Id: Ia76204f759710651340bc09fa6bc163d776b2ab4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3902 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
aae4fc7974
commit
d272f61263
@ -48,7 +48,7 @@ typedef struct cpu_topology_node {
|
|||||||
|
|
||||||
/* CPU local data structure */
|
/* CPU local data structure */
|
||||||
|
|
||||||
typedef struct cpu_ent {
|
typedef struct CACHE_LINE_ALIGN cpu_ent {
|
||||||
int cpu_num;
|
int cpu_num;
|
||||||
|
|
||||||
// thread.c: used to force a reschedule at quantum expiration time
|
// thread.c: used to force a reschedule at quantum expiration time
|
||||||
@ -85,7 +85,7 @@ typedef struct cpu_ent {
|
|||||||
|
|
||||||
// arch-specific stuff
|
// arch-specific stuff
|
||||||
arch_cpu_info arch;
|
arch_cpu_info arch;
|
||||||
} cpu_ent CACHE_LINE_ALIGN;
|
} cpu_ent;
|
||||||
|
|
||||||
|
|
||||||
extern cpu_ent gCPU[];
|
extern cpu_ent gCPU[];
|
||||||
|
Loading…
Reference in New Issue
Block a user