From: Mattias Rönnblom Date: Sun, 5 May 2019 18:12:16 +0000 (+0200) Subject: power: fix cache line alignment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=sidebyside;h=7727ad9107137ee3f4dea212ad77e35cd4f3e6bc;p=dpdk.git power: fix cache line alignment The ACPI and PState CPU frequency scaling drivers used the __rte_cache_aligned attribute without including rte_memory.h, which turns what looks as the declaration of a cache line-aligned struct into a non-aligned struct declaration and the definition of an instance of the struct. Fixes: e6c6dc0f96 ("power: add p-state driver compatibility") Fixes: 445c6528b5 ("power: common interface for guest and host") Cc: stable@dpdk.org Signed-off-by: Mattias Rönnblom --- diff --git a/lib/librte_power/power_acpi_cpufreq.c b/lib/librte_power/power_acpi_cpufreq.c index 5672c594e6..7c386f891e 100644 --- a/lib/librte_power/power_acpi_cpufreq.c +++ b/lib/librte_power/power_acpi_cpufreq.c @@ -12,9 +12,10 @@ #include #include -#include -#include #include +#include +#include +#include #include "power_acpi_cpufreq.h" #include "power_common.h" diff --git a/lib/librte_power/power_pstate_cpufreq.c b/lib/librte_power/power_pstate_cpufreq.c index 44a0b4a3fa..ecbcb3ac99 100644 --- a/lib/librte_power/power_pstate_cpufreq.c +++ b/lib/librte_power/power_pstate_cpufreq.c @@ -14,9 +14,10 @@ #include #include -#include -#include #include +#include +#include +#include #include "power_pstate_cpufreq.h" #include "power_common.h"