From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EFBC9A0C47 for ; Tue, 16 Nov 2021 21:51:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B69A940040; Tue, 16 Nov 2021 21:51:53 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id B309E40040 for ; Tue, 16 Nov 2021 21:51:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637095912; 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=c7ozuNczyTMfFUBd8aa3DNdR3Z197nJaYAqh+qJ6r5M=; b=Ceg86yceJ/RgLZeJWXY/dwvTSiBi7h762teQqNTVVu7moIUOruMhSJOATzCK+hua9/3Vn5 M0TH2TGwaK0kGsH9mT0TWmaU8nmaUjcKt7eB64wykuPDDGOpm1so+GQIe75TQocABPTAtj NljU5pmxDJRKL0PfA67GQL9AWIPYca4= 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-444-_ityPPayNeOXvWXnSNdlVw-1; Tue, 16 Nov 2021 15:51:50 -0500 X-MC-Unique: _ityPPayNeOXvWXnSNdlVw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B8633102CB2E; Tue, 16 Nov 2021 20:51:44 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48A50100763D; Tue, 16 Nov 2021 20:51:41 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, stable@dpdk.org, Jingjing Wu , Junfeng Guo , Xiaoyun Li Subject: [PATCH] examples/ntb: fix build dependency Date: Tue, 16 Nov 2021 21:51:35 +0100 Message-Id: <20211116205135.15846-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Caught while building with -Ddisable_drivers=*/*. This example requires raw/ntb specific API. Fix dependency to avoid a compilation error: FAILED: examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o ccache gcc -Iexamples/c590b3c@@dpdk-ntb@exe -Iexamples -I../examples -Iexamples/ntb -I../examples/ntb -I. -I../ -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/telemetry -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/rawdev -I../lib/rawdev -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Werror -O2 -g -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -march=corei7 -Wno-format-truncation -D_FILE_OFFSET_BITS=64 -DALLOW_EXPERIMENTAL_API -MD -MQ 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o' -MF 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o.d' -o 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o' -c ../examples/ntb/ntb_fwd.c ../examples/ntb/ntb_fwd.c:21:10: fatal error: rte_pmd_ntb.h: No such file or directory #include ^~~~~~~~~~~~~~~ compilation terminated. Fixes: 5194299d6ef5 ("examples/ntb: support more functions") Cc: stable@dpdk.org Signed-off-by: David Marchand --- examples/ntb/meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/ntb/meson.build b/examples/ntb/meson.build index 37899dfeb6..18eaffdf21 100644 --- a/examples/ntb/meson.build +++ b/examples/ntb/meson.build @@ -12,11 +12,8 @@ if not is_linux subdir_done() endif -deps += 'rawdev' +deps += ['rawdev', 'raw_ntb'] cflags += ['-D_FILE_OFFSET_BITS=64'] sources = files( 'ntb_fwd.c', ) -if dpdk_conf.has('RTE_RAW_NTB') - deps += 'raw_ntb' -endif -- 2.23.0