From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 514E2A0597; Fri, 17 Apr 2020 20:55:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 528811E9E9; Fri, 17 Apr 2020 20:55:40 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 620441E971 for ; Fri, 17 Apr 2020 20:55:38 +0200 (CEST) IronPort-SDR: 4MjEQjW7u9BmVQ8eHlDIqarsxX1iN073ELaVh7UYNWJq6GMZw1TO/fV0waWrGajqTer3zOkmIi NsxPFIurEYdA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2020 11:55:37 -0700 IronPort-SDR: Tn0kLkXBbhrnBKQzSo8V6yBhTmkG/SYyKRxhaavpOBfXvuiR+8HHsHbvJ1kHClID01T/SV1Liu 9B80hahFQbUg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,395,1580803200"; d="scan'208";a="428323327" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by orsmga005.jf.intel.com with ESMTP; 17 Apr 2020 11:55:36 -0700 From: Ferruh Yigit To: David Hunt , Thomas Monjalon Cc: dev@dpdk.org, Ferruh Yigit Date: Fri, 17 Apr 2020 19:55:34 +0100 Message-Id: <20200417185534.2285671-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] examples/vm_power_manager: fix build 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" Build fails because '__rte_unused' macro not defined in file, error produced by 'i686-native-linux-gcc config' but it seems generic issue. Build error: .../examples/vm_power_manager/oob_monitor_nop.c:11:13: error: expected ‘;’ before ‘static’ 11 | __rte_unused static float | ^~~~~~~ | ; .../examples/vm_power_manager/oob_monitor_nop.c:12:14: error: unknown type name ‘__rte_unused’ 12 | apply_policy(__rte_unused int core) | ^~~~~~~~~~~~ .../examples/vm_power_manager/oob_monitor_nop.c:18:21: error: unknown type name ‘__rte_unused’ 18 | add_core_to_monitor(__rte_unused int core) | ^~~~~~~~~~~~ .../examples/vm_power_manager/oob_monitor_nop.c:24:26: error: unknown type name ‘__rte_unused’ 24 | remove_core_from_monitor(__rte_unused int core) | ^~~~~~~~~~~~ Including 'rte_common.h' header which defines the macro for fix. Fixes: f2fc83b40f06 ("replace unused attributes") Signed-off-by: Ferruh Yigit --- Cc: thomas@monjalon.net --- examples/vm_power_manager/oob_monitor_nop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/vm_power_manager/oob_monitor_nop.c b/examples/vm_power_manager/oob_monitor_nop.c index fc73ce18e..08dc6a72d 100644 --- a/examples/vm_power_manager/oob_monitor_nop.c +++ b/examples/vm_power_manager/oob_monitor_nop.c @@ -2,6 +2,8 @@ * Copyright(c) 2010-2014 Intel Corporation */ +#include + #include "oob_monitor.h" void branch_monitor_exit(void) -- 2.25.2