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 B61FAA04DB for ; Tue, 17 Nov 2020 12:16:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AD8C0F3E; Tue, 17 Nov 2020 12:16:38 +0100 (CET) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by dpdk.org (Postfix) with ESMTP id 1BDA5F3E for ; Tue, 17 Nov 2020 12:16:37 +0100 (CET) Received: by mail-wm1-f54.google.com with SMTP id 19so2864709wmf.1 for ; Tue, 17 Nov 2020 03:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AVs90hD47g3W14iOoTRGcD9L8G8F7Fxzx+IsYLT/oA4=; b=XC8nv38MWt1pgdCbiDFcwLwlp0bTRsgkhkfqXbxnXdGj1Kzsqacy6U0OqFX2E+LssS 6KYS1SPddB2hknA/aLyVK2vC2GFn4IdGjNtOD4HRN7rdcIdhg/0Od8DgeaezKQxPX/2z hK+t6rGbcQKeKAwy6mDLhWrTLN7HzICVgqmIHSYwlsddEFPBdZRMfWddUrp84FyitxK1 d9J3fjm0ItAM3gqdsiVblfPpd/RGaFzNy49RB49a9FKgLhpyx+lP46Pt4duimm8XY/Ag y5njUyQ13676o4f2USe/DoVv9ulIncc7JyUktZsfXx2VNU/KG4Yvq7os7UpYaldBVrQd 6JNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AVs90hD47g3W14iOoTRGcD9L8G8F7Fxzx+IsYLT/oA4=; b=P9Pyv7aGAwnzVi0Vxd9GqlOyuS5i2wvxtCaIE9Rjc3FoGa+grEPhcOeaqtX9fCBMD8 Yp5BKfKVEBTRCZozb6G1GmWXqOMVWBhRLxBQ2L+Qe1VssEWgvLAF0wb+76WYx0dMqR84 AJQwCM0aW/WSlqR0yq3CCEqUmgT4FkNn9LeM4gINp6xQzM4X25IeI0xk0H5iEvPrllor QSGLCyaVnHi9wzpyQhSWOqXYKBL0A+CYS9Klv6e3nfD+8OJPmWBzTMaZuZiUabiWO5Mo +XGvZnSHL++MUXsTJWjy1XqNUJ00gTZvn7cNNQW32KNhF4FGWd2aZBaw4PSEji9YR4D2 OWag== X-Gm-Message-State: AOAM530W/GflW9Dwz3tLpqkLPeqH8uS/waz9Fm08KiHSU17fn3z9CDUY YAPAH2iOwHaY0bpFK3JjzR0zwVFqcrDSKuhG X-Google-Smtp-Source: ABdhPJxD+iEhg3Ix4pXGza8+TO4JXt/huRYTvx0RvNhYEzTQBKd3uOtfXT/NxajBQJ85sf39ET9okw== X-Received: by 2002:a1c:f20e:: with SMTP id s14mr2855710wmc.126.1605611795886; Tue, 17 Nov 2020 03:16:35 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id z189sm3026600wme.23.2020.11.17.03.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 03:16:35 -0800 (PST) From: luca.boccassi@gmail.com To: David Marchand Cc: Bruce Richardson , dpdk stable Date: Tue, 17 Nov 2020 11:14:15 +0000 Message-Id: <20201117111416.1961049-41-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201117111416.1961049-1-luca.boccassi@gmail.com> References: <20201109185030.3478760-2-luca.boccassi@gmail.com> <20201117111416.1961049-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'examples/vhost_blk: fix build with pkg-config' has been queued to stable release 19.11.6 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/19/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/882655e21ef763cff199b8b411081dee999779fe Thanks. Luca Boccassi --- >From 882655e21ef763cff199b8b411081dee999779fe Mon Sep 17 00:00:00 2001 From: David Marchand Date: Sat, 14 Nov 2020 10:05:31 +0100 Subject: [PATCH] examples/vhost_blk: fix build with pkg-config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 9c3586a6436d4df4bc12ad01d1c5130d24b09bd6 ] vhost_blk.c: In function ‘ctrlr_worker’: vhost_blk.c:543:2: warning: implicit declaration of function ‘CPU_ZERO’ [-Wimplicit-function-declaration] 543 | CPU_ZERO(&cpuset); | ^~~~~~~~ vhost_blk.c:544:2: warning: implicit declaration of function ‘CPU_SET’ [-Wimplicit-function-declaration] 544 | CPU_SET(0, &cpuset); | ^~~~~~~ vhost_blk.c:545:2: warning: implicit declaration of function ‘pthread_setaffinity_np’ [-Wimplicit-function-declaration] 545 | pthread_setaffinity_np(thread, sizeof(cpu_set_t), &cpuset); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/cczpiMWH.o: in function `ctrlr_worker': vhost_blk.c:(.text+0x1076): undefined reference to `CPU_ZERO' /usr/bin/ld: vhost_blk.c:(.text+0x1082): undefined reference to `CPU_SET' collect2: error: ld returned 1 exit status gmake: *** [Makefile:34: build/vhost-blk-shared] Error 1 Explicitly pass _GNU_SOURCE and include missing headers (rather than rely on automagic inclusion from other system headers). Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample") Signed-off-by: David Marchand Acked-by: Bruce Richardson --- examples/vhost_blk/vhost_blk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c index 32c88628c4..d0c30a9c6f 100644 --- a/examples/vhost_blk/vhost_blk.c +++ b/examples/vhost_blk/vhost_blk.c @@ -2,6 +2,12 @@ * Copyright(c) 2010-2019 Intel Corporation */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif +#include +#include + #include #include #include -- 2.27.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-11-17 11:13:14.689168393 +0000 +++ 0041-examples-vhost_blk-fix-build-with-pkg-config.patch 2020-11-17 11:13:12.961117415 +0000 @@ -1 +1 @@ -From 9c3586a6436d4df4bc12ad01d1c5130d24b09bd6 Mon Sep 17 00:00:00 2001 +From 882655e21ef763cff199b8b411081dee999779fe Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit 9c3586a6436d4df4bc12ad01d1c5130d24b09bd6 ] + @@ -33 +34,0 @@ -Cc: stable@dpdk.org @@ -42 +43 @@ -index 8f5d61a589..bb293d492f 100644 +index 32c88628c4..d0c30a9c6f 100644