From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7D203A0096 for ; Sun, 5 May 2019 20:12:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E4332B94; Sun, 5 May 2019 20:12:25 +0200 (CEST) Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) by dpdk.org (Postfix) with ESMTP id D3AA1239 for ; Sun, 5 May 2019 20:12:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1557079943; x=1559671943; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xPGVHU+gj5Q5gWM025pFQOS9q75hBFWenRLWRmgqjj0=; b=QeCn48tyJljKeklAiEYrh1WWHXpyOdCdG8bN60ZR3xl4w1rfpBbglP0nfh9rMNyU /gXR22WH054o0aS/hf6RatbbIy0ejXZTaFW54iAV3gyWBg/0MApP9pDBx4WYRDKF DREALenzM8D0L8vV4BkxXATkfcIi4NZThesLeiAG0rI=; X-AuditID: c1b4fb30-6ddff70000001814-d6-5ccf27872d24 Received: from ESESSMB504.ericsson.se (Unknown_Domain [153.88.183.122]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id CF.80.06164.7872FCC5; Sun, 5 May 2019 20:12:23 +0200 (CEST) Received: from ESESSMB501.ericsson.se (153.88.183.162) by ESESSMB504.ericsson.se (153.88.183.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Sun, 5 May 2019 20:12:22 +0200 Received: from selio1a020.lmera.ericsson.se (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.189) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Sun, 5 May 2019 20:12:22 +0200 Received: from breslau.lmera.ericsson.se (breslau.lmera.ericsson.se [150.132.109.241]) by selio1a020.lmera.ericsson.se (8.15.1+Sun/8.15.1) with ESMTP id x45ICMOv020821; Sun, 5 May 2019 20:12:22 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: CC: , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Date: Sun, 5 May 2019 20:12:16 +0200 Message-ID: <20190505181216.30192-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsUyM2J7lW67+vkYgwnzBS36Jn1ksnj3aTuT A5PHrwVLWT0W73nJFMAUxWWTkpqTWZZapG+XwJUx79NbpoLFvBVH1x9nbWDcx93FyMkhIWAi 0flkAksXIxeHkMBRRonLa04wQzhfGSUOL33DCuFcYJRYvmobK0iLkMAlRonf5w1AbDYBT4nJ 77pZQGwRASGJpR8vs4PYzAKJEpsP7gCaxMEhLGAn0bE0FyTMIqAicXnCK7ASXgEnifPXvrNA XCEvsXrDAWaIuKDEyZlPWCDGaEq0bv8NNVJeonnrbGaIE7Qk7i/5wjyBUWAWkpZZSFpmIWlZ wMi8ilG0OLU4KTfdyEgvtSgzubg4P08vL7VkEyMwMA9u+W2wg/Hlc8dDjAIcjEo8vFyi52OE WBPLiitzDzFKcDArifAmPjsXI8SbklhZlVqUH19UmpNafIhRmoNFSZw3evWeGCGB9MSS1OzU 1ILUIpgsEwenVANjtlm8Xtdiw/p5TgnJB+5knn+nq/nA6l/araT/C06xRxYW8D08NOOFeei+ ybJ+s5niomcHrTq6JNQm0GvF61i1IgOXVgUl3/aq/7e1ucKv5U/Xtee+5ZDf62nWsaJQ11B5 80KBhV+aJ8bOuFCozf/av+W+6sXQ6R2fIhTd78hV5KuGLzSYd1yJpTgj0VCLuag4EQDIJDyn SAIAAA== Subject: [dpdk-dev] [PATCH] power: fix struct cache line-alignment issues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190505181216.FbB1wJ6MPttASrTIKfLEVgCaDdHEUEklSbZbpLeeBoQ@z> 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") Signed-off-by: Mattias Rönnblom --- lib/librte_power/power_acpi_cpufreq.c | 5 +++-- lib/librte_power/power_pstate_cpufreq.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/librte_power/power_acpi_cpufreq.c b/lib/librte_power/power_acpi_cpufreq.c index 5672c594e..7c386f891 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 c2c4e8e14..30727f04b 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" -- 2.17.1