From: Dapeng Mi <dapeng1.mi@xxxxxxxxxxxxxxx> Hoist "idx" up in the pmu_counter_t structure so that the structure is naturally packed for 64-bit builds. Signed-off-by: Dapeng Mi <dapeng1.mi@xxxxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20240914101728.33148-5-dapeng1.mi@xxxxxxxxxxxxxxx [sean: rewrite changelog] Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- x86/pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/pmu.c b/x86/pmu.c index 60db8bdf..a0268db8 100644 --- a/x86/pmu.c +++ b/x86/pmu.c @@ -21,9 +21,9 @@ typedef struct { uint32_t ctr; + uint32_t idx; uint64_t config; uint64_t count; - int idx; } pmu_counter_t; struct pmu_event { -- 2.48.1.601.g30ceb7b040-goog