From patchwork Thu Jun 24 11:53:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 94796 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70B07A0547; Thu, 24 Jun 2021 13:53:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0036B40040; Thu, 24 Jun 2021 13:53:40 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 6E9DA4003C for ; Thu, 24 Jun 2021 13:53:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624535618; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4JBVcRXKX9O9lN7NoHViqecM3fLJh8TYRI/cwGTWGLs=; b=dw7Ef7qnd7e7YrFwLonUYU+c3mBhumGmhxCsWfy3A4WMmzHsNZx6XlSKjTDpMSiY369D3R gfmY83RIbQj7r4vvhYiceb0ATJEb4HutBIkGRa2lZFonSyTXYZys83RUGExJm9JYXrpDZ8 SzOC0aVO4i+MvDtI0bIwXqetz7Muxd0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-495-2z2wcqC9P6C2EM1eFmw_Fw-1; Thu, 24 Jun 2021 07:53:35 -0400 X-MC-Unique: 2z2wcqC9P6C2EM1eFmw_Fw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B4A2383DD06; Thu, 24 Jun 2021 11:53:33 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id A2EAC6090F; Thu, 24 Jun 2021 11:53:30 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: bruce.richardson@intel.com, Anatoly Burakov , Ciara Power Date: Thu, 24 Jun 2021 13:53:19 +0200 Message-Id: <20210624115319.15809-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH] test: remove hack for private header inclusion X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" This hack was needed with the make build system. With meson, any private header from a library is visible as long as a dependency to this library is expressed. Signed-off-by: David Marchand Acked-by: Bruce Richardson Acked-by: Tyler Retzlaff Acked-by: Bruce Richardson Acked-by: Tyler Retzlaff --- app/test/test_eal_fs.c | 3 +-- app/test/test_memzone.c | 3 ++- app/test/test_telemetry_json.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/test/test_eal_fs.c b/app/test/test_eal_fs.c index bb93b82a43..39ac6961b3 100644 --- a/app/test/test_eal_fs.c +++ b/app/test/test_eal_fs.c @@ -8,8 +8,7 @@ #include #include -/* eal_filesystem.h is not a public header file, so use relative path */ -#include "../../lib/eal/common/eal_filesystem.h" +#include "eal_filesystem.h" static int test_parse_sysfs_value(void) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 03a9d1d3bb..27b8b52fcd 100644 --- a/app/test/test_memzone.c +++ b/app/test/test_memzone.c @@ -18,7 +18,8 @@ #include #include #include -#include "../../lib/eal/common/malloc_elem.h" + +#include "malloc_elem.h" #include "test.h" diff --git a/app/test/test_telemetry_json.c b/app/test/test_telemetry_json.c index 3171ab12ec..790181d316 100644 --- a/app/test/test_telemetry_json.c +++ b/app/test/test_telemetry_json.c @@ -4,7 +4,8 @@ #include -#include "../../lib/telemetry/telemetry_json.h" +#include "telemetry_json.h" + #include "test.h" static int