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 56975A00C5; Sun, 26 Apr 2020 12:47:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 027F61BF8C; Sun, 26 Apr 2020 12:47:42 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 5188D1BF88 for ; Sun, 26 Apr 2020 12:47:40 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B0DD55C00E9; Sun, 26 Apr 2020 06:47:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 26 Apr 2020 06:47:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=h8mnKiThSY+Kv+87MLkI+O0TY6 D/Z4IUNg8QXQkKP0I=; b=LIldxv9xiNUZYhJLpV+lP/SyHQzCc2BfLkaCAN54G6 SNOWP80Dqer6t0tSH5MVGh/PvwF9f2yPMpaZiMBZbYRqQm33ei08o/aC8GzoKOzz Uikt7vy50mlIYdt25lVgUyOqTk6xkzGY0ZdU/jmw5IfAHflwC/3AlUav5yfO1LBV eHPXVx1ovCzQ2sD9UDP/ug3Zdz7wfCWBC++Ye5ipX4+nmXrowbroFuE8RU082akI e2ipfSt0WGHxbg0OE1PfX8sNvfSPGa8EGLASRIXLy1ojzGdmClgsiVVKuF8Dixju H+r3EkmckkcxcRzewitRarOMl8UfGQhTc30zX5XdnKHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=h8mnKiThSY+Kv+87M LkI+O0TY6D/Z4IUNg8QXQkKP0I=; b=fAL3BO0SAzflxcuN3wU/W7WnTbQqnjO0a x5PV+V8QOf1gfYF8/R7FspUK1dOV3a6/RIaUAYkLCQZ3JuEeS56MpKqZvBP69ud+ s74cHHfpn8ef3dNmymclO+Ab6AWtRt+fEEMEuCoIs7wEEsNa5dYE7u/aHQymd9Ug Pha0dvj2t2cAb97ms64E0OwoFJk+Lzov3oxlsSjTVyy5cLnGeD9LuqCT2C6oqbTf rANi+Mr9AL7jdTqnV13abtLc5QXz8DRSwfG3YBI6mkCpfzhC52HmwoGofTPWi1Un YOy8Dqg22nHjCLIsjr62+9fC4p7rW83Y6Dniejf1kogVQyZjMmAEA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrheejgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghsucfo ohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkphepje ejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 31F0B3280059; Sun, 26 Apr 2020 06:47:38 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, Anatoly Burakov , Li Feng Date: Sun, 26 Apr 2020 12:47:25 +0200 Message-Id: <20200426104725.2809101-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] mem: 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" Some compilers (on RHEL7 and CentOS7) were getting this error: error: "RTE_EXEC_ENV_FREEBSD" is not defined [-Werror=undef] Existence of a macro must be checked with "#ifdef" or "#if defined". Fixes: d72e4042c5eb ("mem: exclude unused memory from core dump") Signed-off-by: Thomas Monjalon --- lib/librte_eal/common/eal_common_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_memory.c b/lib/librte_eal/common/eal_common_memory.c index 9a797a4fa3..4c897a13f1 100644 --- a/lib/librte_eal/common/eal_common_memory.c +++ b/lib/librte_eal/common/eal_common_memory.c @@ -42,7 +42,7 @@ static uint64_t system_page_sz; #ifdef RTE_EXEC_ENV_LINUX #define RTE_DONTDUMP MADV_DONTDUMP -#elif RTE_EXEC_ENV_FREEBSD +#elif defined RTE_EXEC_ENV_FREEBSD #define RTE_DONTDUMP MADV_NOCORE #else #error "madvise doesn't support this OS" -- 2.26.0