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:
Murai Takashi 2021-05-10 19:49:32 +09:00 committed by Jérôme Duval
parent aae4fc7974
commit d272f61263

View File

@ -48,7 +48,7 @@ typedef struct cpu_topology_node {
/* CPU local data structure */
typedef struct cpu_ent {
typedef struct CACHE_LINE_ALIGN cpu_ent {
int cpu_num;
// thread.c: used to force a reschedule at quantum expiration time
@ -85,7 +85,7 @@ typedef struct cpu_ent {
// arch-specific stuff
arch_cpu_info arch;
} cpu_ent CACHE_LINE_ALIGN;
} cpu_ent;
extern cpu_ent gCPU[];